Re: [mediacapture-main] How to handle changes to the set of tracks in a MediaStream assigned to an element via the srcObject attribute

The MSE spec allows some [flexibility](https://w3c.github.io/media-source/#dom-mediasource-addsourcebuffer).

> For example, a user agent MAY throw a QuotaExceededError exception if the media element has reached the HAVE_METADATA readyState. This can occur if the user agent's media engine does not support adding more tracks during playback. 

In case user agent allows new SourceBuffer or track to be added/removed, it'd make sense for the user agent to go through the load algorithm and trigger corresponding events.  Apps can listen to the events and update the app UI accordingly.  This seems a good topic to bring to the MSE folks.  It'd be ideal for MSE and MediaStream objects to have consistent behavior rather than making separate assumptions.

-- 
GitHub Notification of comment by ShijunS
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/453#issuecomment-302138343 using your GitHub account

Received on Wednesday, 17 May 2017 16:04:13 UTC