This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22338 - Arbitrary changing of tracks
Summary: Arbitrary changing of tracks
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-12 16:53 UTC by Martin Thomson
Modified: 2014-01-07 10:34 UTC (History)
3 users (show)

See Also:


Attachments

Description Martin Thomson 2013-06-12 16:53:10 UTC
The spec permits a user or user agent to switch between tracks at any time:

Unless and until a new set of constraints is provided, the user agent MAY change its choice of track at any point, provided that 1) the new choice does not violate given user permissions, and 2) it notifies the application code by raising an event.

The event is undefined, but that's not the concern.  As a user, I don't want this to happen.  Therefore, as an application developer, I don't want this to happen.  If this is possible (it sounds like a bad idea to me), there needs to be a way to prevent it from happening.

sourceId constraints are not sufficient.
Comment 1 Stefan Hakansson LK 2013-11-07 07:24:36 UTC
Proposed change (by Martin T):

OLD:
Unless and until a new set of constraints is provided, the user agent
MAY change its choice of track at any point, provided that 1) the new
choice does not violate given user permissions, and 2) it notifies the
application code by raising an event. It may wish to do this, for
example, if the user interface or network congestion changes. Note
that no such change will have an effect on the presence or absence of
each type of track, merely the contents.

NEW:
Once selected, the source for a MediaStreamTrack MUST NOT change.
Comment 3 Stefan Hakansson LK 2014-01-07 10:34:39 UTC
Fixed in Ed's draft December 25th 2013: http://dev.w3.org/2011/webrtc/editor/archives/20131225/getusermedia.html