Chromium Code Reviews| Index: chrome/test/data/webrtc/webrtc-simulcast.html |
| diff --git a/chrome/test/data/webrtc/webrtc-simulcast.html b/chrome/test/data/webrtc/webrtc-simulcast.html |
| index de7c67a0b7b20561161d5f58d8eff00262ef3407..a5c49e7c7727e5b25d549b149e488f0ec25212b6 100644 |
| --- a/chrome/test/data/webrtc/webrtc-simulcast.html |
| +++ b/chrome/test/data/webrtc/webrtc-simulcast.html |
| @@ -166,7 +166,7 @@ function didntGetStream(err) { |
| function openCamera(width, height) { |
| if (localStream) { |
| pcClient.removeStream(localStream); |
| - localStream.getVideoTracks().stop(); |
| + localStream.getVideoTracks()[0].stop(); |
| localStream = null; |
| } |
| navigator.webkitGetUserMedia({ |
| @@ -203,15 +203,8 @@ function onServerAnswer(desc) { |
| } |
| function onServerGotStream(e) { |
| - trace('Received remote stream: ' + e.stream.label + |
| - '; looking up corresponding video tag.'); |
| - |
| - var remoteVideo = $(e.stream.label); |
| - if (!remoteVideo) { |
| - // All streams we receive must have a corresponding video tag defined in the |
| - // html, otherwise we can't detect video in it. |
| - throw 'Received video with unexpected id ' + e.stream.label; |
| - } |
| + trace('Received remote stream, looking up corresponding video tag.'); |
| + var remoteVideo = e.stream; |
|
philipj_slow
2015/09/22 09:08:09
I don't get this change, I think remoteVideo is no
shiva.jm
2015/09/23 03:29:51
Yes, right we need to use just e.stream.id instead
|
| remoteVideo.src = webkitURL.createObjectURL(e.stream); |
| } |