anteriovieira / vue-youtube

A simple component for a powerful API. vue-youtube provides a simple layer for you to use your imagination while over the YouTube IFrame Player API.
MIT License
341 stars 56 forks source link

event methods suddenly stopped working #62

Open thebilljustin opened 4 years ago

thebilljustin commented 4 years ago

Hello, i am developing an app using this package. i tested it yesterday and everything was working fine. when i worked on the app again, the player event method suddenly stopped working. other user defined methods is still working properly but the video defined methods just stopped working

Gkiokan commented 4 years ago

Nope. This is an issue with chrome. Check your console in the Issues tab. And also you can check that the events are working in firefox and safari as before.

Chrome has recently an update for strict blocking js scripts.... check this out. We must just specify the bookie attributes and voila.

image

Gkiokan commented 4 years ago

@thebilljustin but I've found a easy fix for that. Just use the nocookie parameter true and you are good.

Here is my working Component

        <youtube :video-id="id" :player-vars="options" :nocookie="true"
                  style="height: 100%; width: 100%; "
                  ref="youtube"
                  @error="error"
                  @playing="playing"
                  @ended="ended"
                  />
thebilljustin commented 4 years ago

yes it seems the issue came from google itself. their documentation released a late warning. everything is working fine now. thank you for the response

On Thu, Sep 17, 2020 at 2:02 AM Gkiokan Sali notifications@github.com wrote:

@thebilljustin https://github.com/thebilljustin but I've found a easy fix for that. Just use the nocookie parameter true and you are good.

Here is my working Component

    <youtube :video-id="id" :player-vars="options" :nocookie="true"
              style="height: 100%; width: 100%; "
              ref="youtube"
              @error="error"
              @playing="playing"
              @ended="ended"
              />

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/anteriovieira/vue-youtube/issues/62#issuecomment-693600211, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5PEH5FAOT2W3JFLBB4QATSGEDUBANCNFSM4ROMWBGQ .