src: environment.apiUrl + c.captionPath
}))
- const playlistOptions = this.playlist
- ? {
- createComponent: false,
-
- playlist: this.playlist,
-
- getCurrentPosition: () => this.playlistPosition,
-
- embedUrl: this.playlist.embedUrl,
- embedTitle: this.playlist.displayName
- }
- : undefined
-
const options: PeertubePlayerManagerOptions = {
common: {
autoplay: this.isAutoplay(),
nextVideo: () => this.zone.run(() => this.autoplayNext()),
+ previousVideo: () => this.zone.run(() => {
+ // FIXME: Only show if this is a playlist
+ if (this.playlist) this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo())
+ }),
playerElement: this.playerElement,
onPlayerElementChange: (element: HTMLVideoElement) => this.playerElement = element,
videoCaptions: playerCaptions,
- videoUUID: video.uuid,
-
- playlist: playlistOptions
+ videoUUID: video.uuid
},
webtorrent: {