videojs / video-js-swf

Custom Flash Player for VideoJS
http://videojs.com
Other
336 stars 312 forks source link

add callback to adjust current time for video provider #219

Closed mjneil closed 7 years ago

mjneil commented 7 years ago

In videojs-contrib-media-sources, when appending data to the swf, if the timestamp we want to start appending data at is not on a GOP boundary, the entire GOP the timestamp intersects instead of a partial GOP to avoid missing key frames. However, because of the way the swf reports currentTime and buffered ranges, the swf has no knowledge of the extra GOP data we are appending and incorrectly reports currentTime and buffered ranges. This callback allows the javascript to notify the swf of a new time offset it should use for reporting currentTime and buffered ranges to account for the extra GOP data we append.

gesinger commented 7 years ago

LGTM