[Bug 25226] New: Retriving track using getTrackById in Examples is not proper.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25226

            Bug ID: 25226
           Summary: Retriving track using getTrackById in Examples is not
                    proper.
           Product: WebRTC Working Group
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Image Capture API
          Assignee: public-media-capture@w3.org
          Reporter: kiran.guduru@samsung.com
                CC: public-media-capture@w3.org

getTrackById() is used to retrieve a Track in Examples 1,2 of MediaStream Image
Capture spec [1]. This method returns a single MediaStreamTrack not a sequence
also, it requires mandatory "id" parameter to be passed to retrieve the track.

So the following line should be replaced

var videoDevice = mediaStream.getTrackById()[0];

by

var videoDevice = mediaStream.getVideoTracks()[0];

The comment line before this statement should also be modified accordingly.

[1]
https://dvcs.w3.org/hg/dap/raw-file/default/media-stream-capture/ImageCapture.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Received on Wednesday, 2 April 2014 04:34:47 UTC