Bug 253295

Summary: Implement ManagedMediaSource startstreaming/endstreaming event
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: 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: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=253297

Description Jean-Yves Avenard [:jya] 2023-03-02 22:47:23 PST
With a ManagedMediaSource, it can indicate to the JS Player when to start appending content and when to stop.

The initial ManagedMediaSource implementation will emit `startstreaming` when there's less than 10s of buffered content ahead of currentTime and will emit `endstreaming` when 30s have been buffered.

When we get to 10s left again, `startstreaming` will be refired until 30s more is appended to the ManagedMediaSource
Comment 1 Radar WebKit Bug Importer 2023-03-02 22:47:42 PST
<rdar://problem/106182027>
Comment 2 Jean-Yves Avenard [:jya] 2023-03-03 22:16:43 PST
Pull request: https://github.com/WebKit/WebKit/pull/11060
Comment 3 EWS 2023-03-04 14:44:51 PST
Committed 261232@main (77fc3174bf28): <https://commits.webkit.org/261232@main>

Reviewed commits have been landed. Closing PR #11060 and removing active labels.