NEW201216
Setting currentTime doesn't work on loadedmetadata event
https://bugs.webkit.org/show_bug.cgi?id=201216
Summary Setting currentTime doesn't work on loadedmetadata event
Damjan
Reported 2019-08-28 05:46:53 PDT
I want to implement functionality to play video from some time. Sometimes it's working, sometimes not. Browser: Safari 12.1.2 (14607.3.9) OS: macOS Mojave 10.14.6 (18G95) Video stream protocol: HLS Web player: Safari native player I implement that in a way that set HTMLMediaElement.currentTime when loadedmetadata event is triggered. Expected: Play video from setted currentTime. Actual: Sometimes video plays from beginning, sometimes video plays from setted time. Example could be found on link: https://codepen.io/index23-the-decoder/pen/ExYmGyd This example always works fine on other web players like video.js.
Attachments
Radar WebKit Bug Importer
Comment 1 2019-08-30 09:32:21 PDT
Jer Noble
Comment 2 2019-08-30 12:13:02 PDT
At the point where loadedmetadata is fired, we have an AVAsset but no AVPlayer or AVPlayerItem yet. I wonder if we're not correctly saving off the seek in order to apply it to the AVPlayerItem once it's created.
Damjan
Comment 3 2019-10-16 00:47:08 PDT
(In reply to Jer Noble from comment #2) > At the point where loadedmetadata is fired, we have an AVAsset but no > AVPlayer or AVPlayerItem yet. I wonder if we're not correctly saving off the > seek in order to apply it to the AVPlayerItem once it's created. Are there any new information about this issue?
Note You need to log in before you can comment on or make changes to this bug.