Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sorry did miss some of them

  • Loading branch information...
commit e40f50efc6b786f1416fb70fb90ee5ab4b148d1f 1 parent 6b0023f
Dennis Mårtensson authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 site/webrtc.io.js
View
5 site/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.