Commit 8370b406 authored by Philipp Hancke's avatar Philipp Hancke Committed by Commit Bot

wpt: remove weird pattern from webrtc simplecall-no-ssrcs

signal msid and prefer the event.streams[0] in ontrack. The previous
behaviour was probably done for backward-compability.

Bug: none
Change-Id: Ice7b1763fa8443469031c1555e1d51e473eadcd9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2116220Reviewed-by: default avatarHenrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Cr-Commit-Position: refs/heads/master@{#753593}
parent 062d5e29
......@@ -45,10 +45,9 @@
var onOfferCreated = test.step_func(function(offer) {
gFirstConnection.setLocalDescription(offer);
// remove all a=ssrc: lines, the msid-semantic line and any a=msid:.
// remove all a=ssrc: lines and the (obsolete) msid-semantic line.
var sdp = offer.sdp.replace(/^a=ssrc:.*$\r\n/gm, '')
.replace(/^a=msid-semantic.*$\r\n/gm, '')
.replace(/^a=msid:.*$\r\n/gm, '');
.replace(/^a=msid-semantic.*$\r\n/gm, '');
// This would normally go across the application's signaling solution.
// In our case, the "signaling" is to call this function.
......@@ -101,9 +100,9 @@
var onRemoteTrack = test.step_func(function(event) {
var videoTag = document.getElementById('remote-view');
if (!videoTag.srcObject)
videoTag.srcObject = new MediaStream();
videoTag.srcObject.addTrack(event.track);
if (!videoTag.srcObject) {
videoTag.srcObject = event.streams[0];
}
});
// Returns a suitable error callback.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment