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