javascript - Possible to use Youtube API to track user position? -


i have not been able find solution.

i have embeded youtube videos on site. want use youtube api know viewers in video. when @ 1:00 (1 minute), youtube api let me know can execute javascript command.

is possible? can youtube api communicate user status every second? there better solution?

thanks!

this example at

https://developers.google.com/youtube/iframe_api_reference#getting_started

does extremely similar. waits 6 seconds instead of 60, otherwise...

one problem aware of, though; despite documentation youtube saying can create yt.player instance against iframe written onto page, event listener stuff doesn't work dependably unless use javascript write out iframe code you. every few months seems break this, fix few weeks later. i'd built use of around having jquery write out appropriate iframe, , few days ago re-engineered use 'preferred' way youtube likes of having youtube write iframe.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -