Bug 280337
| Summary: | [WPE][GTK] default currentTime is NaN | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Component: | Media | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Jean-Yves Avenard [:jya]
When a MediaPlayerPrivateGStreamer, the initial currentTime will be NaN.
This is a consequence of 193933@main
In `MediaTime MediaPlayerPrivateGStreamer::currentMediaTime() const` we have:
```
if (!m_pipeline || m_errorOccured)
return MediaTime::invalidTime();
```
m_pipeline may not be set until content has been fully retrieved.
Per spec, on creation a media element has its currentTime attribute set to 0, not NaN.
This causes assertion when you enable ManagedMediaSource which uses the currentTime value to determine what the readyState is going to be as we build TimeRanges containing currentTime
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jean-Yves Avenard [:jya]
Pull request: https://github.com/WebKit/WebKit/pull/34230
EWS
Committed 284322@main (32a477e91d09): <https://commits.webkit.org/284322@main>
Reviewed commits have been landed. Closing PR #34230 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/136787669>