|
|
@@ -25,6 +25,10 @@
|
|
|
* - No RAM access of video data is possible
|
|
|
* - No explicit synchronization with audio
|
|
|
* - No loop count
|
|
|
+ *
|
|
|
+ * Unlike MovieTexture, this has an additional "muted" attribute which is true
|
|
|
+ * by default but can be set to false in order to play the video's audio via
|
|
|
+ * the browser interface. The "volume" property can configure the volume.
|
|
|
*/
|
|
|
class EXPCL_PANDA_GRUTIL HTMLVideoTexture : public Texture {
|
|
|
PUBLISHED:
|
|
|
@@ -47,6 +51,12 @@ PUBLISHED:
|
|
|
double get_play_rate() const;
|
|
|
bool is_playing() const;
|
|
|
|
|
|
+public:
|
|
|
+ bool is_muted() const;
|
|
|
+ void set_muted(bool muted);
|
|
|
+ double get_volume() const;
|
|
|
+ void set_volume(double volume);
|
|
|
+
|
|
|
PUBLISHED:
|
|
|
MAKE_PROPERTY(video_length, get_video_length);
|
|
|
MAKE_PROPERTY(video_width, get_video_width);
|
|
|
@@ -57,6 +67,9 @@ PUBLISHED:
|
|
|
MAKE_PROPERTY(play_rate, get_play_rate, set_play_rate);
|
|
|
MAKE_PROPERTY(playing, is_playing);
|
|
|
|
|
|
+ MAKE_PROPERTY(muted, is_muted, set_muted);
|
|
|
+ MAKE_PROPERTY(volume, get_volume, set_volume);
|
|
|
+
|
|
|
public:
|
|
|
static PT(Texture) make_texture();
|
|
|
|