Fixes simulcast layers ordering.

This commit is contained in:
George Politis 2014-09-12 13:37:57 +02:00
parent ffaa9a62b8
commit 745e4a6a87
1 changed files with 5 additions and 1 deletions

View File

@ -633,8 +633,12 @@ function Simulcast() {
navigator.webkitGetUserMedia(lqConstraints, function (lqStream) {
// NOTE(gp) The specification says Array.forEach() will visit
// the array elements in numeric order, and that it doesn't
// visit elements that don't exist.
// add lq trackid to local map
localMaps.msids.push(lqStream.getVideoTracks()[0].id);
localMaps.msids.splice(0, 0, lqStream.getVideoTracks()[0].id);
hqStream.addTrack(lqStream.getVideoTracks()[0]);
success(hqStream);