Seek event for YouTube player iframe API

2019-05-21 11:32发布

问题:

Some context for the question:

  1. I know there is no event in the API to track seeking on the video.
  2. video.js is a very good player but there is no out of the box support for youtube. And I didn’t find a reliable enough plugin to use.
  3. I know it is possible to build custom player controls. This is what I plan to do. The problem is that you need to build, volume, play, pause, seek, speed, quality, closed caption, etc.

Given that context, I need to reliable track video seeking (from position a to b) if possible using YouTube controls. Any ideas? Some insight?

回答1:

FWIW, newer versions of chrome have a plethora of pause events that fire on seek now. I'd expect this will be fixed soon.