4 <script type=
"application/javascript" src=
"pc.js"></script>
8 <script type=
"application/javascript">
11 title:
"Multistream: Two video tracks in offerer stream"
15 runNetworkTest(function (options) {
16 test = new PeerConnectionTest(options);
17 test.chain.insertAfter(
"PC_REMOTE_GET_OFFER", [
18 function PC_REMOTE_OVERRIDE_STREAM_IDS_IN_OFFER(test) {
19 test._local_offer.sdp = test._local_offer.sdp.replace(
23 function PC_REMOTE_OVERRIDE_EXPECTED_STREAM_IDS(test) {
25 test.pcRemote.expectedRemoteTrackInfoById).forEach(trackId =
> {
26 test.pcRemote.expectedRemoteTrackInfoById[trackId].streamId =
"foo";
30 test.chain.insertAfter(
"PC_LOCAL_GET_ANSWER", [
31 function PC_LOCAL_OVERRIDE_STREAM_IDS_IN_ANSWER(test) {
32 test._remote_answer.sdp = test._remote_answer.sdp.replace(
36 function PC_LOCAL_OVERRIDE_EXPECTED_STREAM_IDS(test) {
38 test.pcLocal.expectedRemoteTrackInfoById).forEach(trackId =
> {
39 test.pcLocal.expectedRemoteTrackInfoById[trackId].streamId =
"foo";
43 test.setMediaConstraints([{video: true}, {video: true}],
44 [{video: true}, {video: true}]);