- constructor (
- private screenService: ScreenService,
- private i18n: I18n
- ) {
- this.addToWatchLaterText = this.i18n('Add to watch later')
- this.addedToWatchLaterText = this.i18n('Remove from watch later')
+ constructor (private screenService: ScreenService) {
+ this.addToWatchLaterText = $localize`Add to watch later`
+ this.addedToWatchLaterText = $localize`Remove from watch later`
+ }
+
+ isLiveEnded () {
+ if (!this.video.state) return
+
+ return this.video.state.id === VideoState.LIVE_ENDED