Giter VIP home page Giter VIP logo

Comments (6)

TitanFighter avatar TitanFighter commented on August 19, 2024

Show demo, for example using codesandbox service and I will fix it.

from vue-youtube.

leandromatos-hotmart avatar leandromatos-hotmart commented on August 19, 2024

Hey @TitanFighter, i created an sample code (pages/index.vue) here https://codesandbox.io/embed/codesandboxnuxt-gum2y

from vue-youtube.

TitanFighter avatar TitanFighter commented on August 19, 2024

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();
});

nextTick details.

from vue-youtube.

leandromatos-hotmart avatar leandromatos-hotmart commented on August 19, 2024

@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.

TitanFighter avatar TitanFighter commented on August 19, 2024

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.

leandromatos-hotmart avatar leandromatos-hotmart commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.