Player API issues after YouTube watch page displas a pre-roll ad -
Player API issues after YouTube watch page displas a pre-roll ad -
when surfing youtube page (for instance http://www.youtube.com/watch?feature=endscreen&nr=1&v=bfodwsiywoc) , got pre-roll advertisment (a video advertisement displayed before clip itself) entire player api screwed in regard original video.
for instance, player.getcurrenttime() & player.getduration() homecoming advertisement info when advertisement beingness displayed after video beingness switched desired video maintain returning 0 (the video beingness played correctly , video player show how much time played , how long clip). btw, behaviour not happen if there wasn't ad.
also, if during desired video phone call player.getvideourl() advertisement url , not video url (only if there pre-roll advertisement of course).
i tried reset in various ways (stop , load desired video, clone player , reset it, etc...) couldnt find working solution, got idea?
based on question, sounds you're attempting utilize youtube player api command playback on youtube.com watch page. (if that's not case, need edit question clarify you're doing.)
there no back upwards using player api command playback on youtube.com watch page. might possible hack part of browser extension, if do, expect breakage.
the player api meant command playback of embedded youtube players on third-party web pages.
youtube-api
Comments
Post a Comment