diff options
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', |