[media-source] Should endOfStream() set ManagedMediaSource streaming = false? (#367)

cprass has just created a new issue for https://github.com/w3c/media-source:

== Should endOfStream() set ManagedMediaSource streaming = false? ==
In Safari, using `ManagedMediaSource`, I have a setup with multiple media segments, where a dataloader appends to the buffer based on the `startstreaming` and `endstreaming` events.

Seeking to the end of the media element causes the dataloader to load the last segment and then call `endOfStream` if no more data is available. At this point the buffer contains a chunk in the start and a chunk in the end of the media.

Now the `endstreaming` event is not called and the `ManagedMediaSource` is still in streaming state.

When seeking back to the middle part of the media that doesn't have any buffered data the dataloader doesn't get triggered, because that's waiting for a `startstreaming` event which doesn't happen.

Shouldn't the spec define this additional step in the [end of stream algorithm?](https://www.w3.org/TR/media-source-2/#end-of-stream-algorithm)

```
If this is a ManagedMediaSource, then set streaming attribute to false.
```

Please view or discuss this issue at https://github.com/w3c/media-source/issues/367 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 24 July 2025 12:35:42 UTC