Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work-in-progress: Refine srcObject's MediaSourceHandle behavior
Adds text intending to help prevent using one or more `MediaSourceHandle` for the same underlying `MediaSource` for simultaneous, concurrent attachments to media elements: * Updates `MediaSource.getHandle()` to succeed at most once per `MediaSource` instance. * Updates `MediaSourceHandle` transfer section to more clearly indicate that transferring a handle out of a context makes that handle unavailable for transferring again out of the same context (unless it is first transferred back to that context). * Updates the "attaching to a media element" text to indicate that a `MediaSourceHandle` can be attached successfully to at most one media element at a time, and with the previous 2 clarifications, ensures that the underlying worker context `MediaSource` can only be attached successfully to at most one media element at a time. Note that legacy MSE object URL attachments similarly already achieve the same intent in existing implementations. The switch to more clear `srcObject` usage for worker MSE attachment affords the spec an opportunity to be more clear about this intent. This refinement originates from discussion on the previous PR with @karlt: w3c#305
- Loading branch information