ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't autoplay in embed with waiting/ended live
Chocobozzzaeb112edbe85
diff --git a/client/src/standalone/videos/shared/player-manager-options.ts b/client/src/standalone/videos/shared/player-manager-options.tsindex 2eeb5ecac1..9cebdcd106 100644--- a/client/src/standalone/videos/shared/player-manager-options.ts+++ b/client/src/standalone/videos/shared/player-manager-options.ts@@ -6,6 +6,7 @@ import {VideoCaption,VideoDetails,VideoPlaylistElement,+ VideoState,VideoStreamingPlaylistType} from '../../../../../shared/models'import { P2PMediaLoaderOptions, PeertubePlayerManagerOptions, PlayerMode, VideoJSCaption } from '../../../assets/player'@@ -108,6 +109,10 @@ export class PlayerManagerOptions {const params = new URL(window.location.toString()).searchParamsthis.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)