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

Unified Diff: ppapi/examples/video_effects/video_effects.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/data/media/peerconnection-call.html ('k') | ppapi/tests/test_video_destination.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/video_effects/video_effects.html
diff --git a/ppapi/examples/video_effects/video_effects.html b/ppapi/examples/video_effects/video_effects.html
index 82d813fad883f9de934e152a73580bcee84f9738..f7dd0ce0abdf91b31b20d4322611448c59433f41 100644
--- a/ppapi/examples/video_effects/video_effects.html
+++ b/ppapi/examples/video_effects/video_effects.html
@@ -52,7 +52,7 @@ textarea {
var RTCPeerConnection = webkitRTCPeerConnection;
var getUserMedia = navigator.webkitGetUserMedia.bind(navigator);
var attachMediaStream = function(element, stream) {
- element.src = webkitURL.createObjectURL(stream);
+ element.src = URL.createObjectURL(stream);
};
var startButton = document.getElementById('startButton');
var toggleEffectButton = document.getElementById('toggleEffectButton');
@@ -95,7 +95,7 @@ function start() {
}
function onRegisterStreamDone() {
- vidprocessedlocal.src = webkitURL.createObjectURL(processedLocalstream);
+ vidprocessedlocal.src = URL.createObjectURL(processedLocalstream);
toggleEffectButton.disabled = false;
}
@@ -110,9 +110,9 @@ function HandleMessage(message_event) {
}
function initEffect() {
- var url = webkitURL.createObjectURL(localstream);
+ var url = URL.createObjectURL(localstream);
processedLocalstream = new webkitMediaStream([]);
- var processedStreamUrl = webkitURL.createObjectURL(processedLocalstream);
+ var processedStreamUrl = URL.createObjectURL(processedLocalstream);
effectsPlugin.postMessage(
'registerStream' + ' ' + url + ' ' + processedStreamUrl);
}
@@ -177,7 +177,7 @@ function hangup() {
}
function gotRemoteStream(e){
- vidremote.src = webkitURL.createObjectURL(e.stream);
+ vidremote.src = URL.createObjectURL(e.stream);
trace("Received remote stream");
}
« no previous file with comments | « content/test/data/media/peerconnection-call.html ('k') | ppapi/tests/test_video_destination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698