W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > May 2017

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

From: ShijunS via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 May 2017 16:04:06 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-302138343-1495037044-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:32 UTC