diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-04 11:42:06 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-07 08:58:29 +0200 |
commit | 5abc96fca2496f33075796db208fccc3543e0f65 (patch) | |
tree | 72da3df83df172a7a66b9ecff9b136e171c830bf /client/src/standalone/videos/embed-api.ts | |
parent | a4ff3100d36f2fe9a4dfc00e8487c28a94433c4f (diff) | |
download | PeerTube-5abc96fca2496f33075796db208fccc3543e0f65.tar.gz PeerTube-5abc96fca2496f33075796db208fccc3543e0f65.tar.zst PeerTube-5abc96fca2496f33075796db208fccc3543e0f65.zip |
Add logic to handle playlist in embed
Diffstat (limited to 'client/src/standalone/videos/embed-api.ts')
-rw-r--r-- | client/src/standalone/videos/embed-api.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/standalone/videos/embed-api.ts b/client/src/standalone/videos/embed-api.ts index a9263555d..efc23a1fc 100644 --- a/client/src/standalone/videos/embed-api.ts +++ b/client/src/standalone/videos/embed-api.ts | |||
@@ -26,7 +26,7 @@ export class PeerTubeEmbedApi { | |||
26 | } | 26 | } |
27 | 27 | ||
28 | private get element () { | 28 | private get element () { |
29 | return this.embed.videoElement | 29 | return this.embed.playerElement |
30 | } | 30 | } |
31 | 31 | ||
32 | private constructChannel () { | 32 | private constructChannel () { |
@@ -108,7 +108,6 @@ export class PeerTubeEmbedApi { | |||
108 | setInterval(() => { | 108 | setInterval(() => { |
109 | const position = this.element.currentTime | 109 | const position = this.element.currentTime |
110 | const volume = this.element.volume | 110 | const volume = this.element.volume |
111 | const duration = this.element.duration | ||
112 | 111 | ||
113 | this.channel.notify({ | 112 | this.channel.notify({ |
114 | method: 'playbackStatusUpdate', | 113 | method: 'playbackStatusUpdate', |