From 071c01e644d74dc57637dc3cb2c553ab2bbfd518 Mon Sep 17 00:00:00 2001 From: bgrozev Date: Wed, 12 Nov 2014 15:20:18 +0200 Subject: [PATCH] Fix the direction string. Used to return 'sendre' instead of 'sendrecv'. --- simulcast.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simulcast.js b/simulcast.js index 860b9fa43..ef050f828 100644 --- a/simulcast.js +++ b/simulcast.js @@ -137,7 +137,7 @@ SimulcastUtils.prototype.parseMedia = function (lines, mediatypes) { lines[i].substring(0, 'a=sendonly'.length) === 'a=sendonly' || lines[i].substring(0, 'a=inactive'.length) === 'a=inactive')) { - cur_media.direction = lines[i].substring('a='.length, 8); + cur_media.direction = lines[i].substring('a='.length); } } @@ -1254,4 +1254,4 @@ $(document).bind('startsimulcastlayer', function (event, simulcastLayer) { $(document).bind('stopsimulcastlayer', function (event, simulcastLayer) { var ssrc = simulcastLayer.primarySSRC; simulcast._setLocalVideoStreamEnabled(ssrc, false); -}); \ No newline at end of file +});