})
}
+ private hasNextVideo () {
+ if (this.playlist) {
+ return this.videoWatchPlaylist.hasNextVideo()
+ }
+
+ return true
+ }
+
private playNextVideoInAngularZone () {
if (this.playlist) {
this.zone.run(() => this.videoWatchPlaylist.navigateToNextPlaylistVideo())
autoplay: this.isAutoplay(),
p2pEnabled: isP2PEnabled(video, this.serverConfig, loggedInOrAnonymousUser.p2pEnabled),
+ hasNextVideo: () => this.hasNextVideo(),
nextVideo: () => this.playNextVideoInAngularZone(),
playerElement: this.playerElement,
// Only set this if we're in a playlist
if (this.playlist) {
+ options.common.hasPreviousVideo = () => this.videoWatchPlaylist.hasPreviousVideo()
+
options.common.previousVideo = () => {
this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo())
}