import { AuthService, Notifier, ServerService } from '@app/core'
import { Video } from '@app/shared/shared-main'
import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap'
import { AuthService, Notifier, ServerService } from '@app/core'
import { Video } from '@app/shared/shared-main'
import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap'
import { ServerConfig, VideoPlaylistElementType, VideoPlaylistElementUpdate } from '@shared/models'
import { secondsToTime } from '../../../assets/player/utils'
import { VideoPlaylistElement } from './video-playlist-element.model'
import { ServerConfig, VideoPlaylistElementType, VideoPlaylistElementUpdate } from '@shared/models'
import { secondsToTime } from '../../../assets/player/utils'
import { VideoPlaylistElement } from './video-playlist-element.model'
private authService: AuthService,
private serverService: ServerService,
private notifier: Notifier,
private authService: AuthService,
private serverService: ServerService,
private notifier: Notifier,
private videoPlaylistService: VideoPlaylistService,
private cdr: ChangeDetectorRef
) {}
private videoPlaylistService: VideoPlaylistService,
private cdr: ChangeDetectorRef
) {}
start: this.playlistElement.startTimestamp,
stop: this.playlistElement.stopTimestamp,
resume: true
start: this.playlistElement.startTimestamp,
stop: this.playlistElement.stopTimestamp,
resume: true
this.videoPlaylistService.updateVideoOfPlaylist(this.playlist.id, playlistElement.id, body, this.playlistElement.video.id)
.subscribe(
() => {
this.videoPlaylistService.updateVideoOfPlaylist(this.playlist.id, playlistElement.id, body, this.playlistElement.video.id)
.subscribe(
() => {
playlistElement.startTimestamp = body.startTimestamp
playlistElement.stopTimestamp = body.stopTimestamp
playlistElement.startTimestamp = body.startTimestamp
playlistElement.stopTimestamp = body.stopTimestamp
- if (start !== null && stop === null) return this.i18n('Starts at ') + startFormatted
- if (start === null && stop !== null) return this.i18n('Stops at ') + stopFormatted
+ if (start !== null && stop === null) return $localize`Starts at ` + startFormatted
+ if (start === null && stop !== null) return $localize`Stops at ` + stopFormatted