diff options
Diffstat (limited to 'client/src/assets/player')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 6 |
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 | ||