aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players/Raw.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-04-03 04:48:36 +0300
committerRblSb <msrblsb@gmail.com>2020-04-03 04:48:36 +0300
commit5f2a3b89eaa1199d9bc2ddd10622f9803cec983f (patch)
treeee9064ee7b683cfe2ac7b504ba81674b490367b6 /src/client/players/Raw.hx
parent62c9be74228549ff888b684a62f77fb056571470 (diff)
Sync playback rate
Diffstat (limited to 'src/client/players/Raw.hx')
-rw-r--r--src/client/players/Raw.hx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/players/Raw.hx b/src/client/players/Raw.hx
index c7fa980..cd01a42 100644
--- a/src/client/players/Raw.hx
+++ b/src/client/players/Raw.hx
@@ -67,6 +67,7 @@ class Raw implements IPlayer {
player.onPlay();
}
video.onpause = player.onPause;
+ video.onratechange = player.onRateChange;
playerEl.appendChild(video);
}
@@ -102,4 +103,12 @@ class Raw implements IPlayer {
video.currentTime = time;
}
+ public function getPlaybackRate():Float {
+ return video.playbackRate;
+ }
+
+ public function setPlaybackRate(rate:Float):Void {
+ video.playbackRate = rate;
+ }
+
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage