]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/standalone/videos/embed-api.ts
parseQueryStringFilter cleanup
[github/Chocobozzz/PeerTube.git] / client / src / standalone / videos / embed-api.ts
index c5fbe07fa56c851cf60f01fdb9380ed66affe460..194465d4a4bcba934cb651f83f23b1290e63ebd7 100644 (file)
@@ -85,12 +85,14 @@ export class PeerTubeEmbedApi {
     setInterval(() => {
       const position = this.element.currentTime
       const volume = this.element.volume
+      const duration = this.element.duration
 
       this.channel.notify({
         method: 'playbackStatusUpdate',
         params: {
           position,
           volume,
+          duration: this.embed.player.duration(),
           playbackState: currentState
         }
       })