-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoplay feature? #6
Comments
Not able to add this feature :( but in the meantime, you can manualy call <script setup>
import { ref } from 'vue'
import LiteYouTubeEmbed from 'vue-lite-youtube-embed'
import 'vue-lite-youtube-embed/style.css'
const iframe = ref(null)
onMounted(() => {
iframe.value.warmConnections()
iframe.value.addIframe()
})
</script>
<template>
<LiteYouTubeEmbed
id="dQw4w9WgXcQ"
ref="iframe"
title="Rick Astley - Never Gonna Give You Up (Official Music Video)"
/>
</template> |
thanks!
…On Mon, Feb 6, 2023 at 5:20 PM Robert Soriano ***@***.***> wrote:
Not able to add this feature :( but in the meantime, you can manualy call
warmConnections and addIframe methods on your end:
<script setup>import { ref } from 'vue'import LiteYouTubeEmbed from 'vue-lite-youtube-embed'import 'vue-lite-youtube-embed/style.css'const iframe = ref(null)onMounted(() => { iframe.value.warmConnections() iframe.value.addIframe()})</script>
<template>
<LiteYouTubeEmbed
id="dQw4w9WgXcQ"
ref="iframe"
title="Rick Astley - Never Gonna Give You Up (Official Music Video)"
/>
</template>
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5E2WL5ELAWDCIRCQCU4PYLWWEQFXANCNFSM5MEINGLA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hey wobsoriano, I was looking for this feature too, the solution you provided works but when you say "Not able to add this feature" do you mean that its not possible code-side or that you don't have time to implement it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would you mind adding an autoplay feature?
We're considering using your component in a setting where autoplay is preferrable, but due to Chrome's (and most other browsers') new demands to not autoplay on pages where the user hasn't interacted, we'll need a nice-looking non-autoplay look as well. Yours seems to solve this.
The text was updated successfully, but these errors were encountered: