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 25605 - Definition of MediaStreamTrackEvent is not complete
Summary: Definition of MediaStreamTrackEvent is not complete
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-08 14:54 UTC by Shijun Sun
Modified: 2014-07-02 11:54 UTC (History)
3 users (show)

See Also:


Attachments

Description Shijun Sun 2014-05-08 14:54:53 UTC
Section 4.4 (MediaStreamTrackEvent) still has a couple TODO's.  Meanwhile, it is not clear what it leads to when the "track" in constructor dictionary (section 4.4.3) is null.

As suggested by Stefan, I'm opening a new bug to track this.
Comment 1 Harald Alvestrand 2014-06-30 13:25:08 UTC
Suggested resolution:

- Remove "nullable" from the "track" member of the MediaStreamTrackEventInit. Passing in explicit NULL makes no sense.

- State in prose in section 4.4.3 (the dictionary) that the track MUST be present.
Comment 2 Adam Bergkvist 2014-07-02 11:54:20 UTC
Removed nullable from MediaStreamTrackEventInit track member. I noticed that other Event constructors have their *EventInit arguments as optional. We should look into if that is common practice. 

Proposed fix: https://github.com/fluffy/webrtc-w3c/commit/15c1efb47fd96b3225e97ad6ba5a7b02ad444a05