vime-js / vime

Customizable, extensible, accessible and framework agnostic media player. Modern alternative to Video.js and Plyr. Supports HTML5, HLS, Dash, YouTube, Vimeo, Dailymotion...
https://vimejs.com
MIT License
2.78k stars 152 forks source link

Embeds are automatically playing on the demo page without autoplay set to true #143

Closed mihar-22 closed 3 years ago

mihar-22 commented 3 years ago

The embeds (YouTube/Vimeo/Dailymotion) seem to autoplay even when it is set to false on the demo page. This might be related to the React integration and the fact that some properties are set late, since the React integration can't update properties until one tick later.

Amerlander commented 3 years ago

I have the same issue using svelte/sapper. Local MP4 is not autoplaying, but YouTube does:

<script>
    import { Player, Youtube, DefaultUi } from '@vime/svelte';
    export let data;
</script>

{#if (process.browser) }
    <Player>
    <Youtube videoId="{data}" />

    <DefaultUi />
    </Player>
{/if}
magicspon commented 3 years ago

I'm also seeing this when using with React.

silllli commented 3 years ago

I am also having this issue with Svelte / Sapper.

logan-jobzmall commented 3 years ago

Same here with Angular