Bug 201216
| Summary: | Setting currentTime doesn't work on loadedmetadata event | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Damjan <bursacdamjan> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | eric.carlson, jer.noble, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 12 | ||
| Hardware: | Mac | ||
| OS: | macOS 10.14 | ||
Damjan
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/54884831>
Jer Noble
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
(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?