summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/examples/video_effects/video_effects.html10
-rw-r--r--ppapi/tests/test_video_destination.cc2
-rw-r--r--ppapi/tests/test_video_source.cc2
3 files changed, 7 insertions, 7 deletions
diff --git a/ppapi/examples/video_effects/video_effects.html b/ppapi/examples/video_effects/video_effects.html
index 82d813f..f7dd0ce 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");
}
diff --git a/ppapi/tests/test_video_destination.cc b/ppapi/tests/test_video_destination.cc
index b06abcb..f3c4cf8 100644
--- a/ppapi/tests/test_video_destination.cc
+++ b/ppapi/tests/test_video_destination.cc
@@ -101,7 +101,7 @@ std::string TestVideoDestination::TestCreate() {
std::string TestVideoDestination::TestPutFrame() {
std::string js_code;
js_code += "var test_stream = new webkitMediaStream([]);"
- "var url = webkitURL.createObjectURL(test_stream);"
+ "var url = URL.createObjectURL(test_stream);"
"var plugin = document.getElementById('plugin');"
"plugin.postMessage(url);";
instance_->EvalScript(js_code);
diff --git a/ppapi/tests/test_video_source.cc b/ppapi/tests/test_video_source.cc
index b6587f8..a6b7299 100644
--- a/ppapi/tests/test_video_source.cc
+++ b/ppapi/tests/test_video_source.cc
@@ -94,7 +94,7 @@ std::string TestVideoSource::TestGetFrame() {
js_code += "var test_stream;"
"function gotStream(stream){"
" test_stream = stream;"
- " var url = webkitURL.createObjectURL(test_stream);"
+ " var url = URL.createObjectURL(test_stream);"
" var plugin = document.getElementById('plugin');"
" plugin.postMessage(url);"
"}"