aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/standalone')
-rw-r--r--client/src/standalone/videos/embed.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index 786d749a4..f12b8c9ac 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -441,11 +441,13 @@ export class PeerTubeEmbed {
441 controls: this.controls, 441 controls: this.controls,
442 muted: this.muted, 442 muted: this.muted,
443 loop: this.loop, 443 loop: this.loop,
444
444 captions: videoCaptions.length !== 0, 445 captions: videoCaptions.length !== 0,
445 startTime: this.startTime,
446 stopTime: this.stopTime,
447 subtitle: this.subtitle, 446 subtitle: this.subtitle,
448 447
448 startTime: this.playlist ? this.currentPlaylistElement.startTimestamp : this.startTime,
449 stopTime: this.playlist ? this.currentPlaylistElement.stopTimestamp : this.stopTime,
450
449 nextVideo: this.playlist ? () => this.playNextVideo() : undefined, 451 nextVideo: this.playlist ? () => this.playNextVideo() : undefined,
450 hasNextVideo: this.playlist ? () => !!this.getNextPlaylistElement() : undefined, 452 hasNextVideo: this.playlist ? () => !!this.getNextPlaylistElement() : undefined,
451 453
@@ -506,7 +508,12 @@ export class PeerTubeEmbed {
506 508
507 if (this.isPlaylistEmbed()) { 509 if (this.isPlaylistEmbed()) {
508 await this.buildPlaylistManager() 510 await this.buildPlaylistManager()
511
509 this.player.playlist().updateSelected() 512 this.player.playlist().updateSelected()
513
514 this.player.on('stopped', () => {
515 this.playNextVideo()
516 })
510 } 517 }
511 } 518 }
512 519