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

Unified Diff: chrome/common/extensions/docs/examples/api/desktopCapture/app.js

Issue 2446173002: Use RTCPeerConnection instead of webkitRTCPeerConnection (Closed)
Patch Set: rebase Created 4 years, 2 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 | « no previous file | chrome/test/data/extensions/api_test/tab_capture/end_to_end.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/examples/api/desktopCapture/app.js
diff --git a/chrome/common/extensions/docs/examples/api/desktopCapture/app.js b/chrome/common/extensions/docs/examples/api/desktopCapture/app.js
index a6d8e4717dbddaedddec07a92f605056b63fb86c..e7ae8bc3051d640acf5c5f4820cfe407b2aa6ac0 100644
--- a/chrome/common/extensions/docs/examples/api/desktopCapture/app.js
+++ b/chrome/common/extensions/docs/examples/api/desktopCapture/app.js
@@ -60,12 +60,11 @@ function gotStream(stream) {
video.src = URL.createObjectURL(stream);
stream.onended = function() { console.log('Ended'); };
- var servers = null;
- pc1 = new webkitRTCPeerConnection(servers);
+ pc1 = new RTCPeerConnection();
pc1.onicecandidate = function(event) {
onIceCandidate(pc1, event);
};
- pc2 = new webkitRTCPeerConnection(servers);
+ pc2 = new RTCPeerConnection();
pc2.onicecandidate = function(event) {
onIceCandidate(pc2, event);
};
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/tab_capture/end_to_end.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698