| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 3 Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 4 | 4 |
| 5 Use of this source code is governed by a BSD-style license | 5 Use of this source code is governed by a BSD-style license |
| 6 that can be found in the LICENSE file in the root of the source | 6 that can be found in the LICENSE file in the root of the source |
| 7 tree. An additional intellectual property rights grant can be found | 7 tree. An additional intellectual property rights grant can be found |
| 8 in the file PATENTS. All contributing project authors may | 8 in the file PATENTS. All contributing project authors may |
| 9 be found in the AUTHORS file in the root of the source tree. | 9 be found in the AUTHORS file in the root of the source tree. |
| 10 --> | 10 --> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 function addRemoteView(elementName, peerNumber) { | 61 function addRemoteView(elementName, peerNumber) { |
| 62 var remoteViews = $('remote-views-' + peerNumber); | 62 var remoteViews = $('remote-views-' + peerNumber); |
| 63 remoteViews.innerHTML += | 63 remoteViews.innerHTML += |
| 64 '<tr><td><video width="320" height="240" id="' + elementName + '" ' + | 64 '<tr><td><video width="320" height="240" id="' + elementName + '" ' + |
| 65 'autoplay="autoplay"></video></td></tr>'; | 65 'autoplay="autoplay"></video></td></tr>'; |
| 66 } | 66 } |
| 67 | 67 |
| 68 function play(stream, videoElement) { | 68 function play(stream, videoElement) { |
| 69 var streamUrl = webkitURL.createObjectURL(stream); | 69 var streamUrl = URL.createObjectURL(stream); |
| 70 $(videoElement).src = streamUrl; | 70 $(videoElement).src = streamUrl; |
| 71 } | 71 } |
| 72 | 72 |
| 73 function getUserMediaFailedCallback(error) { | 73 function getUserMediaFailedCallback(error) { |
| 74 console.log('getUserMedia request failed with code ' + error.code); | 74 console.log('getUserMedia request failed with code ' + error.code); |
| 75 } | 75 } |
| 76 | 76 |
| 77 function call() { | 77 function call() { |
| 78 connection1 = new webkitRTCPeerConnection(null, | 78 connection1 = new webkitRTCPeerConnection(null, |
| 79 {optional:[{RtpDataChannels: true}]}); | 79 {optional:[{RtpDataChannels: true}]}); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 <table id="remote-views-2"> | 273 <table id="remote-views-2"> |
| 274 <tr> | 274 <tr> |
| 275 <td>Remote (Incoming to Peer 2)</td> | 275 <td>Remote (Incoming to Peer 2)</td> |
| 276 </tr> | 276 </tr> |
| 277 </table> | 277 </table> |
| 278 </td> | 278 </td> |
| 279 </tr> | 279 </tr> |
| 280 </table> | 280 </table> |
| 281 </body> | 281 </body> |
| 282 </html> | 282 </html> |
| OLD | NEW |