aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-03-07 17:06:00 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-03-18 11:17:59 +0100
commitf0a3988066f72a28bb44520af072f18d91d77dde (patch)
treedfa3a92102557b567530c5dd014c90866621140a /client/src/standalone
parent830b4faff15fb9c81d88e8e69fcdf94aad32bef8 (diff)
downloadPeerTube-f0a3988066f72a28bb44520af072f18d91d77dde.tar.gz
PeerTube-f0a3988066f72a28bb44520af072f18d91d77dde.tar.zst
PeerTube-f0a3988066f72a28bb44520af072f18d91d77dde.zip
Add to playlist dropdown
Diffstat (limited to 'client/src/standalone')
-rw-r--r--client/src/standalone/videos/embed.ts3
1 files changed, 3 insertions, 0 deletions
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 {
168 subtitle: string 168 subtitle: string
169 enableApi = false 169 enableApi = false
170 startTime: number | string = 0 170 startTime: number | string = 0
171 stopTime: number | string
171 mode: PlayerMode 172 mode: PlayerMode
172 scope = 'peertube' 173 scope = 'peertube'
173 174
@@ -262,6 +263,7 @@ class PeerTubeEmbed {
262 this.scope = this.getParamString(params, 'scope', this.scope) 263 this.scope = this.getParamString(params, 'scope', this.scope)
263 this.subtitle = this.getParamString(params, 'subtitle') 264 this.subtitle = this.getParamString(params, 'subtitle')
264 this.startTime = this.getParamString(params, 'start') 265 this.startTime = this.getParamString(params, 'start')
266 this.stopTime = this.getParamString(params, 'stop')
265 267
266 this.mode = this.getParamString(params, 'mode') === 'p2p-media-loader' ? 'p2p-media-loader' : 'webtorrent' 268 this.mode = this.getParamString(params, 'mode') === 'p2p-media-loader' ? 'p2p-media-loader' : 'webtorrent'
267 } catch (err) { 269 } catch (err) {
@@ -306,6 +308,7 @@ class PeerTubeEmbed {
306 loop: this.loop, 308 loop: this.loop,
307 captions: videoCaptions.length !== 0, 309 captions: videoCaptions.length !== 0,
308 startTime: this.startTime, 310 startTime: this.startTime,
311 stopTime: this.stopTime,
309 subtitle: this.subtitle, 312 subtitle: this.subtitle,
310 313
311 videoCaptions, 314 videoCaptions,