Added new create-offer and ice-servers demos to test the exact output of createOffer and .onicecandidate.

Updated a few demos to work on Firefox.

R=dutton@google.com

Review URL: https://webrtc-codereview.appspot.com/1581006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5464 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
juberti@webrtc.org
2014-01-30 23:38:44 +00:00
parent bda5fa77af
commit 5db9a3f32a
9 changed files with 358 additions and 103 deletions

View File

@@ -33,6 +33,7 @@ if (navigator.mozGetUserMedia) {
// Get UserMedia (only difference is the prefix).
// Code from Adam Barth.
getUserMedia = navigator.mozGetUserMedia.bind(navigator);
navigator.getUserMedia = getUserMedia;
// Creates iceServer from the url for FF.
createIceServer = function(url, username, password) {
@@ -118,6 +119,7 @@ if (navigator.mozGetUserMedia) {
// Get UserMedia (only difference is the prefix).
// Code from Adam Barth.
getUserMedia = navigator.webkitGetUserMedia.bind(navigator);
navigator.getUserMedia = getUserMedia;
// Attach a media stream to an element.
attachMediaStream = function(element, stream) {