return {
videoId: this.playlistElement.video.uuid,
start: this.playlistElement.startTimestamp,
- stop: this.playlistElement.stopTimestamp
+ stop: this.playlistElement.stopTimestamp,
+ resume: true
}
}
iconName="repeat"
[class.active]="loopPlaylist"
(click)="switchLoopPlaylist()"
- [ngbTooltip]="'Loop playlist videos'"
+ [ngbTooltip]="loopPlaylistSwitchText"
placement="bottom auto"
container="body"
></my-global-icon>
const { video, videoCaptions, urlOptions, user } = params
const getStartTime = () => {
const byUrl = urlOptions.startTime !== undefined
- const byHistory = video.userHistory && !this.playlist
+ const byHistory = video.userHistory && (!this.playlist || urlOptions.resume !== undefined)
if (byUrl) {
return timeToInt(urlOptions.startTime)
this.options_ = options
player.on('pause', (_: any) => {
- if (player.seeking()) return
+ if (player.seeking() || player.ended()) return
this.container.innerHTML = getPauseBezel()
this.showBezel()
})
muted?: boolean
loop?: boolean
subtitle?: string
+ resume?: string
peertubeLink: boolean
}
@include disable-default-a-behaviour;
&.active, &.title-page-single {
- font-weight: $font-bold;
margin-top: 30px;
margin-bottom: 25px;
}
&.active {
+ font-weight: $font-bold;
border-bottom: 2px solid var(--mainColor);
}