+
+ // ---------------------------------------------------------------------------
+
+ private correctlyHandleLiveEnding (translations: Translations) {
+ this.player.one('ended', () => {
+ // Display the live ended information
+ this.liveManager.displayInfo({ state: VideoState.LIVE_ENDED, translations })
+
+ this.disablePlayer()
+ })
+ }
+
+ private disablePlayer () {
+ if (this.player.isFullscreen()) {
+ this.player.exitFullscreen()
+ }
+
+ // Disable player
+ this.player.hasStarted(false)
+ this.player.removeClass('vjs-has-autoplay')
+ this.player.bigPlayButton.hide();
+
+ (this.player.el() as HTMLElement).style.pointerEvents = 'none'
+ }
+