vue-youtube icon indicating copy to clipboard operation
vue-youtube copied to clipboard

event methods suddenly stopped working

Open thebilljustin opened this issue 4 years ago • 3 comments

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

thebilljustin avatar Sep 16 '20 07:09 thebilljustin

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 avatar Sep 16 '20 18:09 Gkiokan

@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"
                  />

Gkiokan avatar Sep 16 '20 19:09 Gkiokan

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 [email protected] 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 .

thebilljustin avatar Sep 17 '20 13:09 thebilljustin