Getting search queries from YouTube api?

I am adding a YouTube video to my page and can detect when the user clicks the Play and Pause button on the video.

I also need to be able to detect when a user searches / jumps to a specific part of the video (as opposed to letting him just play with that point). How to do it?

I am using Youtube iframe api: https://developers.google.com/youtube/iframe_api_reference

I can crack this by starting a timer and checking every second if the video plays for more than a second, and if that counts as its search. However, there seems to be an easier way to do this.

+7
youtube-api youtube-javascript-api
source share

No one has answered this question yet.

See related questions:

2263
How to get a thumbnail of a YouTube video using the YouTube API?
8
YouTube API - iframe events onStateChange
3
How to distinguish β€œsearch” from β€œpause” using the YouTube Player IFrame API
2
Youtube API event distinguishes pause from search / buffer
one
YouTube API launches video
0
How to get a list of available subtitles for a specific video from youtube api?
0
iPhone - Unable to search video using javascript iframe API in ionic
0
Youtube iframe - click to switch play / pause without working on tablets
0
having problems with youtube player api
-3
How to search for youtube videos on youtube.com?

All Articles