This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
As per Sec. 4.2.3 of the latest Editor's Draft (dated 07 May 2014), there are two methods on the MediaStream for kind-specific retrieval of tracks - getAudioTracks() and getVideoTracks. However, since the specification still allows for creation of MediaStreams from files, it is possible to have tracks that are neither audio nor video. Another option is to eliminate the possibility to create MediaStreams from any sources other than local or remote capture devices. If the group goes in that direction, then there will be only two kinds of tracks - video and audio.
We're considering adding a getTracks() method along side the specific getter methods that gives you all tracks. That would make this redundant. Let's continue the discussion in [1]. Closing as WONTFIX. [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=25860
*** This bug has been marked as a duplicate of bug 25860 ***