diff options
| author | RblSb <msrblsb@gmail.com> | 2025-01-12 19:35:56 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-01-12 22:35:22 +0300 |
| commit | f84fdc40ba817b6a2d907484b1e1500197ceeafe (patch) | |
| tree | 73a5b81e082d0ac1741c24742db12e6c2bd54249 /src/client/IPlayer.hx | |
| parent | 25b7ecb45d43018235c6a8eb5b4ce833f2dec668 (diff) | |
External audiotrack support
This works as voice over if video also has audio, changing video volume to 0.3.
Also improve autoplay by playing videos muted and unmute on first page click.
There is no mute if you use Firefox and allow autoplay on page (navigator.getAutoplayPolicy check).
Diffstat (limited to 'src/client/IPlayer.hx')
| -rw-r--r-- | src/client/IPlayer.hx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/IPlayer.hx b/src/client/IPlayer.hx index 903902e..032ac97 100644 --- a/src/client/IPlayer.hx +++ b/src/client/IPlayer.hx @@ -12,8 +12,12 @@ interface IPlayer { function isVideoLoaded():Bool; function play():Void; function pause():Void; + function isPaused():Bool; function getTime():Float; function setTime(time:Float):Void; function getPlaybackRate():Float; function setPlaybackRate(rate:Float):Void; + function getVolume():Float; + function setVolume(volume:Float):Void; + function unmute():Void; } |
