Bug 253295 - Implement ManagedMediaSource startstreaming/endstreaming event
Summary: Implement ManagedMediaSource startstreaming/endstreaming event
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-02 22:47 PST by Jean-Yves Avenard [:jya]
Modified: 2023-03-04 14:44 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.