aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-07 15:56:17 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-02-11 09:13:02 +0100
commit597a9266d426aa04c2f229168e4285a76bea2c12 (patch)
tree2a6fe84ae7651a8a943939192697e2fdbe9f0b43 /client/src/standalone/videos/embed.ts
parent4c280004ce62bf11ddb091854c28f1e1d54a54d6 (diff)
downloadPeerTube-597a9266d426aa04c2f229168e4285a76bea2c12.tar.gz
PeerTube-597a9266d426aa04c2f229168e4285a76bea2c12.tar.zst
PeerTube-597a9266d426aa04c2f229168e4285a76bea2c12.zip
Add player mode in watch/embed urls
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r--client/src/standalone/videos/embed.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index c5c46d0c5..32bf42e12 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -263,7 +263,7 @@ class PeerTubeEmbed {
263 this.subtitle = this.getParamString(params, 'subtitle') 263 this.subtitle = this.getParamString(params, 'subtitle')
264 this.startTime = this.getParamString(params, 'start') 264 this.startTime = this.getParamString(params, 'start')
265 265
266 this.mode = this.getParamToggle(params, 'p2p-media-loader') ? 'p2p-media-loader' : 'webtorrent' 266 this.mode = this.getParamString(params, 'mode') === 'p2p-media-loader' ? 'p2p-media-loader' : 'webtorrent'
267 } catch (err) { 267 } catch (err) {
268 console.error('Cannot get params from URL.', err) 268 console.error('Cannot get params from URL.', err)
269 } 269 }