Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sorry did miss some problems

  • Loading branch information...
commit fc986cfd91bd28e9c4901d7a3a540e7983368784 1 parent 9cba669
Dennis Mårtensson authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/webrtc.io.js
View
5 lib/webrtc.io.js
@@ -474,10 +474,9 @@ if (navigator.webkitGetUserMedia) {
function preferOpus(sdp) {
var sdpLines = sdp.split('\r\n');
-
+ var mLineIndex = null;
// Search for m line.
for (var i = 0; i < sdpLines.length; i++) {
- var mLineIndex = null;
if (sdpLines[i].search('m=audio') !== -1) {
mLineIndex = i;
break;
@@ -508,7 +507,7 @@ function extractSdp(sdpLine, pattern) {
function setDefaultCodec(mLine, payload) {
var elements = mLine.split(' ');
- var newLine = new Array();
+ var newLine = [];
var index = 0;
for (var i = 0; i < elements.length; i++) {
if (index === 3) // Format of media starts from the fourth.
Please sign in to comment.
Something went wrong with that request. Please try again.