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 22264 - MediaStream.ended set to true on creation
Summary: MediaStream.ended set to true on creation
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 21618
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-04 16:50 UTC by Dominique Hazael-Massieux
Modified: 2013-10-17 11:32 UTC (History)
2 users (show)

See Also:


Attachments

Description Dominique Hazael-Massieux 2013-06-04 16:50:36 UTC
The description of the ended attribute for MediaStream states that:
"if [the MediaStream object] is being created using the MediaStream() constructor whose arguments are lists of MediaStreamTrack objects that are all ended, [...] the MediaStream object MUST be created with its ended attribute set to true."

* this should (also?) appear in the constructor algorithm at the starts of the MediaStream section
* the conformance requirement should presumably also apply in the case where the argument is a MediaStream object whose tracks are all ended
Comment 1 Dominique Hazael-Massieux 2013-09-02 09:44:43 UTC
(this depends on our general approach to ended state for mediastream)
Comment 2 Adam Bergkvist 2013-10-03 14:28:19 UTC
With the change from ended to inactive (for MediaStream) I replaced the text in the ended (now inactive) attribute description that dictated the behavior for the constructor with a more general text:

"When a MediaStream object is created, its inactive attribute MUST be set to false, unless stated otherwise (for example by the MediaStream() constructor algorithm)."

I've added text in the constructor algorithm to initialize the inactive attribute accordingly. Currently the constructor disregards from ended tracks used as input, but that's perhaps a separate discussion.

Proposed change:
https://github.com/fluffy/webrtc-w3c/commit/9ff8a5d160e3319825652ed8d135df6921817dd6
Comment 3 Adam Bergkvist 2013-10-17 11:32:21 UTC
Fixed in Editor's draft v20131017