Sunday, July 29, 2012

[YouTube-API] Target specific pause events with the YouTube API

It would appear to me that there is only one generic pause event that is passed anytime the video is paused for any reason. This is quite underwhelming if this is in fact the case because there is a distinct difference between a user clicking the actual pause button and the user moving to a different section of the video.

Specifically, I have a slider customized so that it will pause when a YouTube video is being played, and it will resume when the video is paused. The biggest issue is that YouTube uses that same generic pause event for say when the user clicks on the "More Info" tab at the top. This inevitably restarts the slider, even though the user clearly is not done viewing the video. This same type of thing occurs when the user moves to a different timestamp in the video (which is my biggest concern).

Does anyone know of any way to discern the type of pause event that is occurring with the current API? If not, can someone point me to where I can recommend it for a future version?

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/6oF78O5WJ7cJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment