From f0a3988066f72a28bb44520af072f18d91d77dde Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 Mar 2019 17:06:00 +0100 Subject: Add to playlist dropdown --- client/src/standalone/videos/embed.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src/standalone/videos') diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 32bf42e12..28c10c75c 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -168,6 +168,7 @@ class PeerTubeEmbed { subtitle: string enableApi = false startTime: number | string = 0 + stopTime: number | string mode: PlayerMode scope = 'peertube' @@ -262,6 +263,7 @@ class PeerTubeEmbed { this.scope = this.getParamString(params, 'scope', this.scope) this.subtitle = this.getParamString(params, 'subtitle') this.startTime = this.getParamString(params, 'start') + this.stopTime = this.getParamString(params, 'stop') this.mode = this.getParamString(params, 'mode') === 'p2p-media-loader' ? 'p2p-media-loader' : 'webtorrent' } catch (err) { @@ -306,6 +308,7 @@ class PeerTubeEmbed { loop: this.loop, captions: videoCaptions.length !== 0, startTime: this.startTime, + stopTime: this.stopTime, subtitle: this.subtitle, videoCaptions, -- cgit v1.2.3