aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-12-11 11:20:54 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-12-11 11:20:54 +0100
commited9f9f5fb04437b8dcf164fd0ae9c29b90826096 (patch)
tree7989b8b069b4741ed03d6707df790522ddd8c083 /client/src/assets
parent014ad87961cb9a632abdf2dfb5498058aac0dc2b (diff)
downloadPeerTube-ed9f9f5fb04437b8dcf164fd0ae9c29b90826096.tar.gz
PeerTube-ed9f9f5fb04437b8dcf164fd0ae9c29b90826096.tar.zst
PeerTube-ed9f9f5fb04437b8dcf164fd0ae9c29b90826096.zip
Fix changing video we are watching
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts
index 4ba37b7d9..4898c1efe 100644
--- a/client/src/assets/player/peertube-videojs-plugin.ts
+++ b/client/src/assets/player/peertube-videojs-plugin.ts
@@ -283,6 +283,12 @@ const peertubePlugin = function (options: PeertubePluginOptions) {
283 } 283 }
284 } 284 }
285 285
286 player.setVideoFiles = function (files: VideoFile[]) {
287 player.videoFiles = files
288
289 player.updateVideoFile(undefined, () => player.play())
290 }
291
286 player.ready(function () { 292 player.ready(function () {
287 const controlBar = player.controlBar 293 const controlBar = player.controlBar
288 294