VideoCaption,
VideoDetails,
VideoPlaylistElement,
+ VideoState,
VideoStreamingPlaylistType
} from '../../../../../shared/models'
import { P2PMediaLoaderOptions, PeertubePlayerManagerOptions, PlayerMode, VideoJSCaption } from '../../../assets/player'
const params = new URL(window.location.toString()).searchParams
this.autoplay = getParamToggle(params, 'autoplay', false)
+ // Disable auto play on live videos that are not streamed
+ if (video.state.id === VideoState.LIVE_ENDED || video.state.id === VideoState.WAITING_FOR_LIVE) {
+ this.autoplay = false
+ }
this.controls = getParamToggle(params, 'controls', true)
this.controlBar = getParamToggle(params, 'controlBar', true)