Updated PeerConnection samples so they run on FF.

R=braveyao@webrtc.org

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5340 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
vikasmarwaha@webrtc.org
2014-01-03 23:13:01 +00:00
parent f6d6ed0c66
commit 7bdaf837d4
7 changed files with 14 additions and 14 deletions

View File

@@ -95,10 +95,10 @@ var sdpConstraints = {'mandatory': {
refreshSources();
function refreshSources() {
if (webrtcDetectedVersion >= 30) {
if (webrtcDetectedBrowser === 'chrome' && webrtcDetectedVersion >= 30) {
MediaStreamTrack.getSources(gotSources);
} else {
alert('Make sure that you have Chrome M30 to test device enumeration api.');
alert('Failed to enumerate devices, you need Chrome version 30 or higher');
}
}
@@ -215,7 +215,7 @@ function maybeAddLineBreakToEnd(sdp) {
}
function createOffer(){
pc1.createOffer(gotDescription1,null,null);
pc1.createOffer(gotDescription1, null, sdpConstraints);
}
function setOffer(){