Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: content/test/data/media/peerconnection-call.html

Issue 121203002: Use window.URL instead of window.webkitURL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: window.URL -> URL in user_images_grid.js Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="webrtc_test_utilities.js"></script> 3 <script type="text/javascript" src="webrtc_test_utilities.js"></script>
4 <script type="text/javascript" src="webrtc_test_audio.js"></script> 4 <script type="text/javascript" src="webrtc_test_audio.js"></script>
5 <script type="text/javascript"> 5 <script type="text/javascript">
6 $ = function(id) { 6 $ = function(id) {
7 return document.getElementById(id); 7 return document.getElementById(id);
8 }; 8 };
9 9
10 var gFirstConnection = null; 10 var gFirstConnection = null;
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 495
496 function createConnection(constraints, remoteView) { 496 function createConnection(constraints, remoteView) {
497 var pc = new webkitRTCPeerConnection(null, constraints); 497 var pc = new webkitRTCPeerConnection(null, constraints);
498 pc.onaddstream = function(event) { 498 pc.onaddstream = function(event) {
499 onRemoteStream(event, remoteView); 499 onRemoteStream(event, remoteView);
500 } 500 }
501 return pc; 501 return pc;
502 } 502 }
503 503
504 function displayAndRemember(localStream) { 504 function displayAndRemember(localStream) {
505 var localStreamUrl = webkitURL.createObjectURL(localStream); 505 var localStreamUrl = URL.createObjectURL(localStream);
506 $('local-view').src = localStreamUrl; 506 $('local-view').src = localStreamUrl;
507 507
508 gLocalStream = localStream; 508 gLocalStream = localStream;
509 } 509 }
510 510
511 // Called if getUserMedia fails. 511 // Called if getUserMedia fails.
512 function printGetUserMediaError(error) { 512 function printGetUserMediaError(error) {
513 document.title = 'getUserMedia request failed:'; 513 document.title = 'getUserMedia request failed:';
514 if (error.constraintName) 514 if (error.constraintName)
515 document.title += ' could not satisfy constraint ' + error.constraintName; 515 document.title += ' could not satisfy constraint ' + error.constraintName;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 } 706 }
707 } 707 }
708 708
709 function onRemoteStream(e, target) { 709 function onRemoteStream(e, target) {
710 if (gTestWithoutMsid && e.stream.id != "default") { 710 if (gTestWithoutMsid && e.stream.id != "default") {
711 document.title = 'a default remote stream was expected but instead ' + 711 document.title = 'a default remote stream was expected but instead ' +
712 e.stream.id + ' was received.'; 712 e.stream.id + ' was received.';
713 return; 713 return;
714 } 714 }
715 gRemoteStreams[target] = e.stream; 715 gRemoteStreams[target] = e.stream;
716 var remoteStreamUrl = webkitURL.createObjectURL(e.stream); 716 var remoteStreamUrl = URL.createObjectURL(e.stream);
717 var remoteVideo = $(target); 717 var remoteVideo = $(target);
718 remoteVideo.src = remoteStreamUrl; 718 remoteVideo.src = remoteStreamUrl;
719 } 719 }
720 720
721 </script> 721 </script>
722 </head> 722 </head>
723 <body> 723 <body>
724 <table border="0"> 724 <table border="0">
725 <tr> 725 <tr>
726 <td>Local Preview</td> 726 <td>Local Preview</td>
(...skipping 19 matching lines...) Expand all
746 <td><canvas width="320" height="240" id="remote-view-2-canvas" 746 <td><canvas width="320" height="240" id="remote-view-2-canvas"
747 style="display:none"></canvas></td> 747 style="display:none"></canvas></td>
748 <td><canvas width="320" height="240" id="remote-view-3-canvas" 748 <td><canvas width="320" height="240" id="remote-view-3-canvas"
749 style="display:none"></canvas></td> 749 style="display:none"></canvas></td>
750 <td><canvas width="320" height="240" id="remote-view-4-canvas" 750 <td><canvas width="320" height="240" id="remote-view-4-canvas"
751 style="display:none"></canvas></td> 751 style="display:none"></canvas></td>
752 </tr> 752 </tr>
753 </table> 753 </table>
754 </body> 754 </body>
755 </html> 755 </html>
OLDNEW
« no previous file with comments | « content/test/data/media/getusermedia.html ('k') | ppapi/examples/video_effects/video_effects.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698