[Webkit-unassigned] [Bug 222225] 'Play' buttons for 'music playing' web app not working at all on iPhone 12 Pro running iOS 14.4

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 27 11:13:47 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=222225

--- Comment #11 from Jer Noble <jer.noble at apple.com> ---
The only situation where HTMLMediaElement::setReadyState() would enter with HaveEnoughData and leave with HAVE_CURRENT_DATA is if the media element thought there were non-loaded text tracks:

```
    if (tracksAreReady)
        m_readyState = newState;
    else {
        // If a media file has text tracks the readyState may not progress beyond HAVE_FUTURE_DATA until
        // the text tracks are ready, regardless of the state of the media file.
        if (newState <= HAVE_METADATA)
            m_readyState = newState;
        else
            m_readyState = HAVE_CURRENT_DATA;
    }
```

And indeed:

```
> $0.textTracks.length
< 1
> $0.textTracks[0]
< TextTrack {id: "", kind: "captions", label: "", language: "", inBandMetadataTrackDispatchType: "", …}
```

Somehow, this particular file is advertising that it has a captionsTrack!

```
> $0.currentSrc
< "https://sveltejs.github.io/assets/music/beethoven.mp3"
```

However, as an in-band text track, it should be fully loaded when the file itself is fully loaded, so that's not a complete explanation for this behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210227/4d7caf72/attachment.htm>


More information about the webkit-unassigned mailing list