aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/client.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/res/client.js b/res/client.js
index ca309a3..a6dae56 100644
--- a/res/client.js
+++ b/res/client.js
@@ -2173,9 +2173,15 @@ client_players_Raw.prototype = {
this.video.currentTime = time;
}
,getPlaybackRate: function() {
+ if(this.video == null) {
+ return 1;
+ }
return this.video.playbackRate;
}
,setPlaybackRate: function(rate) {
+ if(this.video == null) {
+ return;
+ }
this.video.playbackRate = rate;
}
};
@@ -2409,9 +2415,15 @@ client_players_Youtube.prototype = {
this.youtube.seekTo(time,true);
}
,getPlaybackRate: function() {
+ if(!this.isLoaded) {
+ return 1;
+ }
return this.youtube.getPlaybackRate();
}
,setPlaybackRate: function(rate) {
+ if(!this.isLoaded) {
+ return;
+ }
this.youtube.setPlaybackRate(rate);
}
};
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage