Comments (6)
Show demo, for example using codesandbox service and I will fix it.
from vue-youtube.
Hey @TitanFighter, i created an sample code (pages/index.vue
) here https://codesandbox.io/embed/codesandboxnuxt-gum2y
from vue-youtube.
You have such lines inside selectEdition
method:
// Play video after player loaded...
this.playVideo();
Change them to:
this.$nextTick(function() {
// Play video after player loaded...
this.playVideo();
});
from vue-youtube.
@TitanFighter, doesn't work. Maybe because the nextTick run before the video player load a new video.
Ideally, each time you load a video, the ready event is triggered, but today this event only fires when you load the first video.
from vue-youtube.
Here is the example. Without nextTick when you click for example 2017 just picture is changed (video does not start automatically), but with nextTick when you click any year, video is changed and started automatically. Is it not what you need? Does not work? What browser?
What does Play video asynchronously when changing video id
mean? Do you want to click all four years and hear all 4 videos simultaneously?
from vue-youtube.
Strange, I just tested again and it worked. What I noticed is that by clicking on a year, a small delay occurs between the player having loaded the video and it starts playing.
Thanks
from vue-youtube.
Related Issues (20)
- Option to use youtube embed with privacy enhanced mode (-nocookie youtube) HOT 3
- Not compatible with Vue 3 RC HOT 8
- event methods suddenly stopped working HOT 3
- Hide related videos HOT 1
- Modestbranding is not working
- If video is unavailable trigger the error function
- youtube 401 code error
- Add a prop for disabling controls on iframe HOT 1
- Missing @types/vue-youtube
- Youtube Api Key
- is there any way to remove ytp-pause-overlay ? HOT 1
- Add onApiChange event
- how to change height HOT 1
- Doesnt work with Vue 3.0 HOT 8
- Incorrect duration returned
- Trying to install it, I get the error: ERESOLVE unable to resolve dependency tree HOT 1
- Loading mixed (insecure) display content
- How to use YouTube video as the background?
- Missed Opportunity
- Failed to construct 'PresentationRequest': The document is sandboxed and lacks the 'allow-presentation' flag. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-youtube.