tusx / better-mobile-youtube

GNU General Public License v3.0
2 stars 1 forks source link

on_video_played not detecting when player started #12

Open tusx opened 4 months ago

tusx commented 4 months ago

on_video_played for some reason does not detect when the player is started for the first time. the function detects correctly when the video is paused and then payed again.

samolukadjo commented 4 months ago

This has me stumped. YouTube has to play the video. Perhaps they do it before the event listener is set?

tusx commented 3 months ago

what im thinking is to check if the youtube play button is visible. click it to make video play. and then set the playback speed.

in earlier versions i was just waiting 1 sec and then clicking the play button. this way it bypass.

I'm not sure how will this work when the video is autoplayed by youtube.

i will try some hacks to see if something can be done

samolukadjo commented 3 months ago

Alright! It's just weird that the current implementation doesn't work