@webex/plugin-meetings 3.0.0-beta.1 → 3.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +7 -0
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +8 -0
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +8 -0
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +7 -0
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +7 -0
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +7 -0
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +7 -0
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +7 -0
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js +5 -29
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +5 -2
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +3 -0
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/constants.js +15 -74
- package/dist/constants.js.map +1 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +43 -5
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +4 -0
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +12 -3
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js +71 -210
- package/dist/media/index.js.map +1 -1
- package/dist/media/internal-media-core-wrapper.js +22 -0
- package/dist/media/internal-media-core-wrapper.js.map +1 -0
- package/dist/media/properties.js +32 -25
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js +0 -27
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/effectsState.js +8 -1
- package/dist/meeting/effectsState.js.map +1 -1
- package/dist/meeting/index.js +1146 -602
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.js +6 -0
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +83 -24
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.js +5 -44
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +4 -1
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +5 -0
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +14 -2
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +3 -0
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +4 -1
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +136 -25
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js +4 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +24 -1
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +30 -7
- package/dist/member/index.js.map +1 -1
- package/dist/member/util.js +2 -1
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +1 -0
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +82 -1
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +19 -9
- package/dist/members/request.js.map +1 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +8 -0
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +133 -0
- package/dist/multistream/mediaRequestManager.js.map +1 -0
- package/dist/multistream/multistreamMedia.js +116 -0
- package/dist/multistream/multistreamMedia.js.map +1 -0
- package/dist/multistream/receiveSlot.js +209 -0
- package/dist/multistream/receiveSlot.js.map +1 -0
- package/dist/multistream/receiveSlotManager.js +195 -0
- package/dist/multistream/receiveSlotManager.js.map +1 -0
- package/dist/multistream/remoteMedia.js +289 -0
- package/dist/multistream/remoteMedia.js.map +1 -0
- package/dist/multistream/remoteMediaGroup.js +243 -0
- package/dist/multistream/remoteMediaGroup.js.map +1 -0
- package/dist/multistream/remoteMediaManager.js +1113 -0
- package/dist/multistream/remoteMediaManager.js.map +1 -0
- package/dist/networkQualityMonitor/index.js +10 -2
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/personal-meeting-room/index.js +11 -0
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +2 -1
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.js +17 -7
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.js +1 -0
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/reactions.js +111 -0
- package/dist/reactions/reactions.js.map +1 -0
- package/dist/reactions/reactions.type.js +40 -0
- package/dist/reactions/reactions.type.js.map +1 -0
- package/dist/reconnection-manager/index.js +130 -132
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/roap/index.js +58 -231
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +7 -116
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +20 -6
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/statsAnalyzer/global.js +2 -0
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.js +58 -37
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +9 -3
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +10 -3
- package/dist/transcription/index.js.map +1 -1
- package/package.json +21 -20
- package/src/common/{browser-detection.js → browser-detection.ts} +1 -1
- package/src/common/collection.ts +6 -6
- package/src/common/{config.js → config.ts} +1 -1
- package/src/common/errors/{captcha-error.js → captcha-error.ts} +5 -1
- package/src/common/errors/{intent-to-join.js → intent-to-join.ts} +6 -1
- package/src/common/errors/{join-meeting.js → join-meeting.ts} +6 -1
- package/src/common/errors/{media.js → media.ts} +5 -1
- package/src/common/errors/parameter.ts +3 -2
- package/src/common/errors/{password-error.js → password-error.ts} +5 -1
- package/src/common/errors/{permission.js → permission.ts} +5 -1
- package/src/common/errors/{reconnection-in-progress.js → reconnection-in-progress.ts} +0 -0
- package/src/common/errors/{reconnection.js → reconnection.ts} +5 -1
- package/src/common/errors/{stats.js → stats.ts} +5 -1
- package/src/common/errors/{webex-errors.js → webex-errors.ts} +1 -20
- package/src/common/errors/{webex-meetings-error.js → webex-meetings-error.ts} +3 -1
- package/src/common/events/{events-scope.js → events-scope.ts} +1 -1
- package/src/common/events/{events.js → events.ts} +0 -0
- package/src/common/events/{trigger-proxy.js → trigger-proxy.ts} +1 -2
- package/src/common/events/{util.js → util.ts} +1 -1
- package/src/common/logs/{logger-config.js → logger-config.ts} +1 -2
- package/src/common/logs/{logger-proxy.js → logger-proxy.ts} +1 -1
- package/src/common/logs/{request.js → request.ts} +12 -2
- package/src/common/queue.ts +1 -2
- package/src/{config.js → config.ts} +2 -0
- package/src/constants.ts +139 -179
- package/src/locus-info/{controlsUtils.js → controlsUtils.ts} +4 -4
- package/src/locus-info/{embeddedAppsUtils.js → embeddedAppsUtils.ts} +5 -6
- package/src/locus-info/{fullState.js → fullState.ts} +1 -1
- package/src/locus-info/{hostUtils.js → hostUtils.ts} +5 -5
- package/src/locus-info/{index.js → index.ts} +67 -32
- package/src/locus-info/{infoUtils.js → infoUtils.ts} +7 -4
- package/src/locus-info/{mediaSharesUtils.js → mediaSharesUtils.ts} +13 -13
- package/src/locus-info/{parser.js → parser.ts} +22 -12
- package/src/locus-info/{selfUtils.js → selfUtils.ts} +17 -19
- package/src/media/{index.js → index.ts} +130 -205
- package/src/media/internal-media-core-wrapper.ts +9 -0
- package/src/media/{properties.js → properties.ts} +35 -29
- package/src/media/util.ts +16 -0
- package/src/mediaQualityMetrics/{config.js → config.ts} +1 -1
- package/src/meeting/{effectsState.js → effectsState.ts} +12 -6
- package/src/meeting/{index.js → index.ts} +993 -474
- package/src/meeting/{muteState.js → muteState.ts} +16 -11
- package/src/meeting/{request.js → request.ts} +148 -36
- package/src/meeting/{state.js → state.ts} +6 -6
- package/src/meeting/{util.js → util.ts} +9 -51
- package/src/meeting-info/{collection.js → collection.ts} +4 -1
- package/src/meeting-info/{index.js → index.ts} +10 -6
- package/src/meeting-info/{meeting-info-v2.js → meeting-info-v2.ts} +28 -10
- package/src/meeting-info/{request.js → request.ts} +6 -2
- package/src/meeting-info/{util.js → util.ts} +6 -5
- package/src/meeting-info/{utilv2.js → utilv2.ts} +8 -7
- package/src/meetings/{collection.js → collection.ts} +5 -2
- package/src/meetings/{index.js → index.ts} +118 -22
- package/src/meetings/{request.js → request.ts} +6 -1
- package/src/meetings/{util.js → util.ts} +28 -5
- package/src/member/{index.js → index.ts} +46 -15
- package/src/member/{util.js → util.ts} +17 -16
- package/src/members/{collection.js → collection.ts} +2 -1
- package/src/members/{index.js → index.ts} +94 -26
- package/src/members/{request.js → request.ts} +16 -5
- package/src/members/{util.js → util.ts} +7 -7
- package/src/metrics/{config.js → config.ts} +0 -2
- package/src/metrics/{constants.js → constants.ts} +0 -0
- package/src/metrics/{index.js → index.ts} +27 -8
- package/src/multistream/mediaRequestManager.ts +166 -0
- package/src/multistream/multistreamMedia.ts +92 -0
- package/src/multistream/receiveSlot.ts +141 -0
- package/src/multistream/receiveSlotManager.ts +142 -0
- package/src/multistream/remoteMedia.ts +228 -0
- package/src/multistream/remoteMediaGroup.ts +224 -0
- package/src/multistream/remoteMediaManager.ts +911 -0
- package/src/networkQualityMonitor/{index.js → index.ts} +18 -3
- package/src/personal-meeting-room/{index.js → index.ts} +17 -4
- package/src/personal-meeting-room/{request.js → request.ts} +3 -1
- package/src/personal-meeting-room/{util.js → util.ts} +1 -1
- package/src/reachability/{index.js → index.ts} +28 -17
- package/src/reachability/request.ts +4 -2
- package/src/reactions/reactions.ts +104 -0
- package/src/reactions/reactions.type.ts +36 -0
- package/src/reconnection-manager/{index.js → index.ts} +81 -65
- package/src/roap/index.ts +229 -0
- package/src/roap/{request.js → request.ts} +15 -74
- package/src/roap/turnDiscovery.ts +26 -11
- package/src/statsAnalyzer/{global.js → global.ts} +2 -0
- package/src/statsAnalyzer/{index.js → index.ts} +66 -61
- package/src/statsAnalyzer/{mqaUtil.js → mqaUtil.ts} +6 -1
- package/src/transcription/{index.js → index.ts} +16 -11
- package/test/integration/spec/journey.js +1 -1
- package/test/integration/spec/space-meeting.js +1 -2
- package/test/unit/spec/locus-info/infoUtils.js +17 -1
- package/test/unit/spec/media/index.ts +207 -0
- package/test/unit/spec/media/properties.ts +73 -82
- package/test/unit/spec/meeting/effectsState.js +1 -3
- package/test/unit/spec/meeting/index.js +672 -245
- package/test/unit/spec/meeting/muteState.js +7 -0
- package/test/unit/spec/meeting/request.js +25 -1
- package/test/unit/spec/meeting/utils.js +63 -2
- package/test/unit/spec/meetings/index.js +0 -4
- package/test/unit/spec/members/index.js +164 -2
- package/test/unit/spec/multistream/mediaRequestManager.ts +515 -0
- package/test/unit/spec/multistream/receiveSlot.ts +104 -0
- package/test/unit/spec/multistream/receiveSlotManager.ts +173 -0
- package/test/unit/spec/multistream/remoteMedia.ts +225 -0
- package/test/unit/spec/multistream/remoteMediaGroup.ts +396 -0
- package/test/unit/spec/multistream/remoteMediaManager.ts +1309 -0
- package/test/unit/spec/reconnection-manager/index.js +68 -2
- package/test/unit/spec/roap/index.ts +63 -35
- package/test/unit/spec/stats-analyzer/index.js +19 -22
- package/dist/peer-connection-manager/index.js +0 -794
- package/dist/peer-connection-manager/index.js.map +0 -1
- package/dist/peer-connection-manager/util.js +0 -124
- package/dist/peer-connection-manager/util.js.map +0 -1
- package/dist/roap/collection.js +0 -73
- package/dist/roap/collection.js.map +0 -1
- package/dist/roap/handler.js +0 -337
- package/dist/roap/handler.js.map +0 -1
- package/dist/roap/state.js +0 -164
- package/dist/roap/state.js.map +0 -1
- package/dist/roap/util.js +0 -102
- package/dist/roap/util.js.map +0 -1
- package/src/media/util.js +0 -38
- package/src/peer-connection-manager/index.js +0 -723
- package/src/peer-connection-manager/util.ts +0 -117
- package/src/roap/collection.js +0 -63
- package/src/roap/handler.js +0 -252
- package/src/roap/index.js +0 -380
- package/src/roap/state.js +0 -149
- package/src/roap/util.js +0 -93
- package/test/unit/spec/peerconnection-manager/index.js +0 -188
- package/test/unit/spec/peerconnection-manager/utils.js +0 -48
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +0 -389
- package/test/unit/spec/roap/util.js +0 -30
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import 'jsdom-global/register';
|
|
2
|
-
import {assert} from '@webex/test-helper-chai';
|
|
3
|
-
import sinon from 'sinon';
|
|
4
|
-
|
|
5
|
-
import PeerConnectionManager from '@webex/plugin-meetings/src/peer-connection-manager/index';
|
|
6
|
-
import StaticConfig from '@webex/plugin-meetings/src/common/config';
|
|
7
|
-
import {InvalidSdpError} from '@webex/plugin-meetings/src/common/errors/webex-errors';
|
|
8
|
-
|
|
9
|
-
describe('Peerconnection Manager', () => {
|
|
10
|
-
describe('Methods', () => {
|
|
11
|
-
let peerConnection = null;
|
|
12
|
-
let sdp = null;
|
|
13
|
-
|
|
14
|
-
beforeEach(() => {
|
|
15
|
-
sdp = 'v=0\r\no=- 1026633665396855335 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1 2\r\nr\na=msid-semantic: WMS\r\nm=audio 40903 UDP/TLS/RTP/SAVPF 111 63 103 104 9 0 8 106 105 13 110 112 113 126\r\nb=TIAS:64000\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=candidate:602151403 1 udp 2122262783 2401:4900:2301:c2cb:5ea9:46d5:7321:2531 47974 typ host generation 0 network-id 2 network-cost 900\r\na=candidate:675071982 1 udp 2122197247 2401:4900:33fc:314c:ad57:3e1d:befe:34b7 41234 typ host generation 0 network-id 3 network-cost 900\r\na=candidate:1835525403 1 tcp 1518283007 2401:4900:2301:c2cb:5ea9:46d5:7321:2531 9 typ host tcptype active generation 0 network-id 2 network-cost 900\r\na=candidate:1723808542 1 tcp 1518217471 2401:4900:33fc:314c:ad57:3e1d:befe:34b7 9 typ host tcptype active generation 0 network-id 3 network-cost 900\r\na=ice-ufrag:zK3G\r\na=ice-pwd:e9xgQIGnRsJvaFpvTAenr5JQ\r\na=ice-options:trickle\r\nm=video 43875 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 122 121 127\r\nb=TIAS:4000000\r\nc=IN IP4 0.0.0.0\r\na=periodic-keyframes:20\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=candidate:602151403 1 udp 2122262783 2401:4900:2301:c2cb:5ea9:46d5:7321:2531 41619 typ host generation 0 network-id 2 network-cost 900\r\na=candidate:675071982 1 udp 2122197247 2401:4900:33fc:314c:ad57:3e1d:befe:34b7 47098 typ host generation 0 network-id 3 network-cost 900\r\na=candidate:1835525403 1 tcp 1518283007 2401:4900:2301:c2cb:5ea9:46d5:7321:2531 9 typ host tcptype active generation 0 network-id 2 network-cost 900\r\na=candidate:1723808542 1 tcp 1518217471 2401:4900:33fc:314c:ad57:3e1d:befe:34b7 9 typ host tcptype active generation 0 network-id 3 network-cost 900\r\na=ice-ufrag:zK3G\r\na=ice-pwd:e9xgQIGnRsJvaFpvTAenr5JQ\r\na=ice-options:trickle\r\na=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\nm=video 49298 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 122 121 127\r\nb=TIAS:4000000\r\nc=IN IP4 0.0.0.0\r\na=periodic-keyframes:20\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=candidate:602151403 1 udp 2122262783 2401:4900:2301:c2cb:5ea9:46d5:7321:2531 37670 typ host generation 0 network-id 2 network-cost 900\r\na=candidate:675071982 1 udp 2122197247 2401:4900:33fc:314c:ad57:3e1d:befe:34b7 37790 typ host generation 0 network-id 3 network-cost 900\r\na=candidate:1835525403 1 tcp 1518283007 2401:4900:2301:c2cb:5ea9:46d5:7321:2531 9 typ host tcptype active generation 0 network-id 2 network-cost 900\r\na=candidate:1723808542 1 tcp 1518217471 2401:4900:33fc:314c:ad57:3e1d:befe:34b7 9 typ host tcptype active generation 0 network-id 3 network-cost 900\r\na=ice-ufrag:zK3G\r\na=ice-pwd:e9xgQIGnRsJvaFpvTAenr5JQ\r\na=ice-options:trickle\r\na=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f;\r\na=content:slides\r\n';
|
|
16
|
-
|
|
17
|
-
peerConnection = {
|
|
18
|
-
iceGatheringState: 'new',
|
|
19
|
-
onicecandidate: null,
|
|
20
|
-
onicecandidateerror: null,
|
|
21
|
-
localDescription: {sdp}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
Object.defineProperty(global.window, 'RTCSessionDescription', {
|
|
25
|
-
writable: true,
|
|
26
|
-
value: class {
|
|
27
|
-
constructor(options) {
|
|
28
|
-
this.type = options.type;
|
|
29
|
-
this.sdp = options.sdp;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
describe('setRemoteSessionDetails', () => {
|
|
35
|
-
it('change the start bitrate on remoteSDP and remove extmap', async () => {
|
|
36
|
-
StaticConfig.set({bandwidth: {audio: 50, video: 500, startBitrate: 2000}});
|
|
37
|
-
let result = null;
|
|
38
|
-
const setRemoteDescription = sinon.stub().callsFake((args) => {
|
|
39
|
-
result = args;
|
|
40
|
-
|
|
41
|
-
return Promise.resolve();
|
|
42
|
-
});
|
|
43
|
-
const remoteSdp = 'v=0\r\n' +
|
|
44
|
-
'm=video 5004 UDP/TLS/RTP/SAVPF 102 127 97 99\r\n' +
|
|
45
|
-
'a=fmtp:102 profile-level-id=42e016;packetization-mode=1;max-mbps=244800;max-fs=8160;max-fps=3000;max-dpb=12240;max-rcmd-nalu-size=196608;level-asymmetry-allowed=1\r\n' +
|
|
46
|
-
'a=rtpmap:127 H264/90000\r\n' +
|
|
47
|
-
'a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\n' +
|
|
48
|
-
'a=fmtp:127 profile-level-id=42e016;max-mbps=244800;max-fs=8160;max-fps=3000;max-dpb=12240;max-rcmd-nalu-size=196608;level-asymmetry-allowed=1\r\n';
|
|
49
|
-
|
|
50
|
-
const resultSdp = 'v=0\r\n' +
|
|
51
|
-
'm=video 5004 UDP/TLS/RTP/SAVPF 102 127 97 99\r\n' +
|
|
52
|
-
'a=fmtp:102 profile-level-id=42e016;packetization-mode=1;max-mbps=244800;max-fs=8160;max-fps=3000;max-dpb=12240;max-rcmd-nalu-size=196608;level-asymmetry-allowed=1;x-google-start-bitrate=2000\r\n' +
|
|
53
|
-
'a=rtpmap:127 H264/90000\r\r\n' +
|
|
54
|
-
'a=fmtp:127 profile-level-id=42e016;max-mbps=244800;max-fs=8160;max-fps=3000;max-dpb=12240;max-rcmd-nalu-size=196608;level-asymmetry-allowed=1;x-google-start-bitrate=2000\r\n';
|
|
55
|
-
const peerConnection = {
|
|
56
|
-
signalingState: 'have-local-offer',
|
|
57
|
-
setRemoteDescription,
|
|
58
|
-
enableExtmap: false
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
await PeerConnectionManager.setRemoteSessionDetails(peerConnection, 'answer', remoteSdp, {});
|
|
62
|
-
|
|
63
|
-
assert.equal(result.sdp, resultSdp);
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
it('dont change the start bitrate on remoteSDP if default value is 0', async () => {
|
|
67
|
-
StaticConfig.set({bandwidth: {audio: 50, video: 500, startBitrate: 0}});
|
|
68
|
-
let result = null;
|
|
69
|
-
const setRemoteDescription = sinon.stub().callsFake((args) => {
|
|
70
|
-
result = args;
|
|
71
|
-
|
|
72
|
-
return Promise.resolve();
|
|
73
|
-
});
|
|
74
|
-
const remoteSdp = 'v=0\r\n' +
|
|
75
|
-
'm=video 5004 UDP/TLS/RTP/SAVPF 102 127 97 99\r\n' +
|
|
76
|
-
'a=fmtp:102 profile-level-id=42e016;packetization-mode=1;max-mbps=244800;max-fs=8160;max-fps=3000;max-dpb=12240;max-rcmd-nalu-size=196608;level-asymmetry-allowed=1\r\n' +
|
|
77
|
-
'a=rtpmap:127 H264/90000\r\n' +
|
|
78
|
-
'a=fmtp:127 profile-level-id=42e016;max-mbps=244800;max-fs=8160;max-fps=3000;max-dpb=12240;max-rcmd-nalu-size=196608;level-asymmetry-allowed=1\r\n';
|
|
79
|
-
|
|
80
|
-
const peerConnection = {
|
|
81
|
-
signalingState: 'have-local-offer',
|
|
82
|
-
setRemoteDescription
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
await PeerConnectionManager.setRemoteSessionDetails(peerConnection, 'answer', remoteSdp, {});
|
|
86
|
-
|
|
87
|
-
assert.equal(result.sdp, remoteSdp);
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
it('removes xTLS candidates from the remote sdp', async () => {
|
|
91
|
-
StaticConfig.set({bandwidth: {}});
|
|
92
|
-
|
|
93
|
-
const remoteSdpWithXtlsCandidates = 'v=0\r\n' +
|
|
94
|
-
'm=video 5004 UDP/TLS/RTP/SAVPF 102 127 97 99\r\n' +
|
|
95
|
-
'a=candidate:1 1 UDP 2130706175 18.206.82.54 9000 typ host\r\n' +
|
|
96
|
-
'a=candidate:2 1 TCP 1962934271 18.206.82.54 5004 typ host tcptype passive\r\n' +
|
|
97
|
-
'a=candidate:3 1 TCP 1962934015 18.206.82.54 9000 typ host tcptype passive\r\n' +
|
|
98
|
-
'a=candidate:4 1 xTLS 1795162111 external-media2.aintm-a-6.int.infra.webex.com 443 typ host tcptype passive fingerprint sha-1;55:B8:1D:94:BC:9D:B2:A5:5E:82:E7:84:C6:C8:10:AC:D3:FD:96:26\r\n' +
|
|
99
|
-
'a=rtpmap:127 H264/90000\r\n' +
|
|
100
|
-
'a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\n' +
|
|
101
|
-
'm=video 9000 UDP/TLS/RTP/SAVPF 102 127 97 99\r\n' +
|
|
102
|
-
'a=candidate:1 1 xTLS 1795162111 external-media2.aintm-a-6.int.infra.webex.com 443 typ host tcptype passive fingerprint sha-1;55:B8:1D:94:BC:9D:B2:A5:5E:82:E7:84:C6:C8:10:AC:D3:FD:96:26\r\n' +
|
|
103
|
-
'a=candidate:2 1 TCP 1962934271 18.206.82.54 5004 typ host tcptype passive\r\n' +
|
|
104
|
-
'a=fmtp:127 profile-level-id=42e016;max-mbps=244800;max-fs=8160;max-fps=3000;max-dpb=12240;max-rcmd-nalu-size=196608;level-asymmetry-allowed=1\r\n';
|
|
105
|
-
|
|
106
|
-
// same as remoteSdpWithXtlsCandidates but without the xtls candidates
|
|
107
|
-
const resultSdp = 'v=0\r\n' +
|
|
108
|
-
'm=video 5004 UDP/TLS/RTP/SAVPF 102 127 97 99\r\n' +
|
|
109
|
-
'a=candidate:1 1 UDP 2130706175 18.206.82.54 9000 typ host\r\n' +
|
|
110
|
-
'a=candidate:2 1 TCP 1962934271 18.206.82.54 5004 typ host tcptype passive\r\n' +
|
|
111
|
-
'a=candidate:3 1 TCP 1962934015 18.206.82.54 9000 typ host tcptype passive\r\n' +
|
|
112
|
-
'a=rtpmap:127 H264/90000\r\n' +
|
|
113
|
-
'a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\n' +
|
|
114
|
-
'm=video 9000 UDP/TLS/RTP/SAVPF 102 127 97 99\r\n' +
|
|
115
|
-
'a=candidate:2 1 TCP 1962934271 18.206.82.54 5004 typ host tcptype passive\r\n' +
|
|
116
|
-
'a=fmtp:127 profile-level-id=42e016;max-mbps=244800;max-fs=8160;max-fps=3000;max-dpb=12240;max-rcmd-nalu-size=196608;level-asymmetry-allowed=1\r\n';
|
|
117
|
-
|
|
118
|
-
const peerConnection = {
|
|
119
|
-
signalingState: 'have-local-offer',
|
|
120
|
-
setRemoteDescription: sinon.stub().resolves(),
|
|
121
|
-
enableExtmap: true
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
await PeerConnectionManager.setRemoteSessionDetails(peerConnection, 'answer', remoteSdpWithXtlsCandidates, '');
|
|
125
|
-
|
|
126
|
-
assert.calledWith(peerConnection.setRemoteDescription, new global.window.RTCSessionDescription({sdp: resultSdp, type: 'answer'}));
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
describe('iceCandidate', () => {
|
|
131
|
-
beforeEach(() => {
|
|
132
|
-
StaticConfig.set({bandwidth: {audio: 50, video: 500, startBitrate: 0}});
|
|
133
|
-
peerConnection.sdp = null;
|
|
134
|
-
});
|
|
135
|
-
it('ice gathering already completed', async () => {
|
|
136
|
-
peerConnection.iceGatheringState = 'complete';
|
|
137
|
-
|
|
138
|
-
await PeerConnectionManager.iceCandidate(peerConnection, {remoteQualityLevel: 'HIGH'});
|
|
139
|
-
console.error('Came her with sdp resolved');
|
|
140
|
-
assert(peerConnection.sdp.search('max-fs:8192'), true);
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
it('listen onIceCandidate,onicecandidateerror and onIceGatheringStateChange', async () => {
|
|
144
|
-
peerConnection.iceGatheringState = 'none';
|
|
145
|
-
setTimeout(() => {
|
|
146
|
-
peerConnection.onicecandidate({candidate: null});
|
|
147
|
-
}, 1000);
|
|
148
|
-
await PeerConnectionManager.iceCandidate(peerConnection, {remoteQualityLevel: 'HIGH'});
|
|
149
|
-
assert.isFunction(peerConnection.onIceGatheringStateChange);
|
|
150
|
-
assert.isFunction(peerConnection.onicecandidate);
|
|
151
|
-
assert.isFunction(peerConnection.onicecandidateerror);
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
it('generate sdp with iceGatheringstate is `complet`', async () => {
|
|
155
|
-
peerConnection.iceGatheringState = 'none';
|
|
156
|
-
setTimeout(() => {
|
|
157
|
-
peerConnection.iceGatheringState = 'complete';
|
|
158
|
-
peerConnection.onIceGatheringStateChange();
|
|
159
|
-
}, 1000);
|
|
160
|
-
await PeerConnectionManager.iceCandidate(peerConnection, {remoteQualityLevel: 'HIGH'})
|
|
161
|
-
.then(() => {
|
|
162
|
-
assert(peerConnection.sdp.search('max-fs:8192'), true);
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
it('should still generate sdp even if onicecandidateerror is called ', async () => {
|
|
167
|
-
peerConnection.iceGatheringState = 'none';
|
|
168
|
-
setTimeout(() => {
|
|
169
|
-
peerConnection.onicecandidateerror();
|
|
170
|
-
peerConnection.onicecandidate({candidate: null});
|
|
171
|
-
}, 1000);
|
|
172
|
-
await PeerConnectionManager.iceCandidate(peerConnection, {remoteQualityLevel: 'HIGH'})
|
|
173
|
-
.then(() => {
|
|
174
|
-
assert(peerConnection.sdp.search('max-fs:8192'), true);
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
it('should throw generated SDP does not have candidates ', async () => {
|
|
179
|
-
peerConnection.iceGatheringState = 'none';
|
|
180
|
-
peerConnection.localDescription.sdp = 'v=0\r\no=- 1026633665396855335 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1 2\r\nr\na=msid-semantic: WMS\r\nm=audio 40903 UDP/TLS/RTP/SAVPF 111 63 103 104 9 0 8 106 105 13 110 112 113 126\r\nb=TIAS:64000\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:zK3G\r\na=ice-pwd:e9xgQIGnRsJvaFpvTAenr5JQ\r\na=ice-options:trickle\r\nm=video 43875 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 122 121 127\r\nb=TIAS:4000000\r\nc=IN IP4 0.0.0.0\r\na=periodic-keyframes:20\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:zK3G\r\na=ice-pwd:e9xgQIGnRsJvaFpvTAenr5JQ\r\na=ice-options:trickle\r\na=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\nm=video 49298 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 122 121 127\r\nb=TIAS:4000000\r\nc=IN IP4 0.0.0.0\r\na=periodic-keyframes:20\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:zK3G\r\na=ice-pwd:e9xgQIGnRsJvaFpvTAenr5JQ\r\na=ice-options:trickle\r\na=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f;\r\na=content:slides\r\n';
|
|
181
|
-
setTimeout(() => {
|
|
182
|
-
peerConnection.onicecandidate({candidate: null});
|
|
183
|
-
}, 1000);
|
|
184
|
-
await assert.isRejected(PeerConnectionManager.iceCandidate(peerConnection, {remoteQualityLevel: 'HIGH'}), InvalidSdpError);
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
});
|
|
188
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {assert} from '@webex/test-helper-chai';
|
|
2
|
-
import PeerConnectionUtils from '@webex/plugin-meetings/src/peer-connection-manager/util';
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
SDP_MULTIPLE_VIDEO_CODECS,
|
|
6
|
-
SDP_MULTIPLE_VIDEO_CODECS_WITH_LOWERED_H264_PROFILE_LEVEL,
|
|
7
|
-
SDP_MULTIPLE_VIDEO_CODECS_WITH_MAX_FS
|
|
8
|
-
} from './utils.test-fixtures';
|
|
9
|
-
|
|
10
|
-
describe('Peerconnection Manager', () => {
|
|
11
|
-
describe('Utils', () => {
|
|
12
|
-
describe('convertCLineToIpv4', () => {
|
|
13
|
-
it('changes ipv6 to ipv4 default', () => {
|
|
14
|
-
const localSdp = 'v=0\r\n' +
|
|
15
|
-
'm=video 5004 UDP/TLS/RTP/SAVPF 102 127 97 99\r\n' +
|
|
16
|
-
'c=IN IP6 2607:fb90:d27c:b314:211a:32dd:c47f:ffe\r\n' +
|
|
17
|
-
'a=rtpmap:127 H264/90000\r\n';
|
|
18
|
-
const resultSdp = 'v=0\r\n' +
|
|
19
|
-
'm=video 5004 UDP/TLS/RTP/SAVPF 102 127 97 99\r\n' +
|
|
20
|
-
'c=IN IP4 0.0.0.0\r\n' +
|
|
21
|
-
'a=rtpmap:127 H264/90000\r\n';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const temp = PeerConnectionUtils.convertCLineToIpv4(localSdp);
|
|
25
|
-
|
|
26
|
-
assert.equal(temp, resultSdp);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
describe('adjustH264Profile', () => {
|
|
31
|
-
it('appends max-fs and max-mbps to h264 fmtp lines when h264MaxFs value is higher than the value from the profile', () => {
|
|
32
|
-
const modifiedSdp = PeerConnectionUtils.adjustH264Profile(SDP_MULTIPLE_VIDEO_CODECS, 8192);
|
|
33
|
-
|
|
34
|
-
assert.equal(modifiedSdp, SDP_MULTIPLE_VIDEO_CODECS_WITH_MAX_FS);
|
|
35
|
-
});
|
|
36
|
-
it('keeps fmtp lines the same when h264MaxFs value matches the value from the profile', () => {
|
|
37
|
-
const modifiedSdp = PeerConnectionUtils.adjustH264Profile(SDP_MULTIPLE_VIDEO_CODECS, 3600);
|
|
38
|
-
|
|
39
|
-
assert.equal(modifiedSdp, SDP_MULTIPLE_VIDEO_CODECS);
|
|
40
|
-
});
|
|
41
|
-
it('changes the profile level in h264 fmtp lines when h264MaxFs value is lower than the value from the profile', () => {
|
|
42
|
-
const modifiedSdp = PeerConnectionUtils.adjustH264Profile(SDP_MULTIPLE_VIDEO_CODECS, 1620);
|
|
43
|
-
|
|
44
|
-
assert.equal(modifiedSdp, SDP_MULTIPLE_VIDEO_CODECS_WITH_LOWERED_H264_PROFILE_LEVEL);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
});
|
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
// SDPs generated by browsers always have CRLF (\r\n) endings,
|
|
2
|
-
// here we're using tagged template literals to ensures that our SDP fixtures also have CRLF endings
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
-
const ensureCRLF = (strings: any, ...tags: string[]) => {
|
|
5
|
-
const stringsWithCRLF = strings.raw.map((str: string) => str.replace(/\n/g, '\r\n'));
|
|
6
|
-
|
|
7
|
-
// now construct the output the same way as it's done by default for template literals
|
|
8
|
-
let output = stringsWithCRLF[0];
|
|
9
|
-
|
|
10
|
-
tags.forEach((tag, index) => {
|
|
11
|
-
output += tag + stringsWithCRLF[index + 1];
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
return output;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
// example SDP that has an audio and 2 video m-lines, video contains multiple codecs
|
|
18
|
-
// it's basically a trimmed down version of an SDP example from Chrome
|
|
19
|
-
export const SDP_MULTIPLE_VIDEO_CODECS = ensureCRLF`v=0
|
|
20
|
-
o=- 3328550572590672467 2 IN IP4 127.0.0.1
|
|
21
|
-
s=-
|
|
22
|
-
t=0 0
|
|
23
|
-
a=group:BUNDLE 0 1 2
|
|
24
|
-
a=extmap-allow-mixed
|
|
25
|
-
a=msid-semantic: WMS 38872d1a-f4c3-4234-b162-bb47bc55ec57
|
|
26
|
-
m=audio 9 UDP/TLS/RTP/SAVPF 111 63 9 0 8 106
|
|
27
|
-
c=IN IP4 0.0.0.0
|
|
28
|
-
a=ice-ufrag:vPie
|
|
29
|
-
a=ice-pwd:QWp1jfvbc4iUBXfLVSxhDFIN
|
|
30
|
-
a=ice-options:trickle
|
|
31
|
-
a=candidate:1 1 udp 2130706431 10.50.173.46 56821 typ host
|
|
32
|
-
a=fingerprint:sha-256 60:00:B9:57:5D:EC:CE:C7:7D:57:EA:EF:AF:37:23:64:63:39:F7:F3:D5:01:C7:18:C7:6E:B9:B4:46:19:40:06
|
|
33
|
-
a=setup:actpass
|
|
34
|
-
a=mid:0
|
|
35
|
-
a=rtcp-mux
|
|
36
|
-
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
|
|
37
|
-
a=sendrecv
|
|
38
|
-
a=rtpmap:111 opus/48000/2
|
|
39
|
-
a=rtcp-fb:111 transport-cc
|
|
40
|
-
a=fmtp:111 minptime=10;useinbandfec=1
|
|
41
|
-
a=rtpmap:63 red/48000/2
|
|
42
|
-
a=fmtp:63 111/111
|
|
43
|
-
a=rtpmap:9 G722/8000
|
|
44
|
-
a=rtpmap:0 PCMU/8000
|
|
45
|
-
a=rtpmap:8 PCMA/8000
|
|
46
|
-
a=rtpmap:106 CN/32000
|
|
47
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
48
|
-
a=msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 0283c960-c78d-4164-a6f3-394342273ad4
|
|
49
|
-
a=ssrc:3693867886 cname:TGydLcYyPoQiRBlB
|
|
50
|
-
a=ssrc:3693867886 msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 0283c960-c78d-4164-a6f3-394342273ad4
|
|
51
|
-
m=video 9 UDP/TLS/RTP/SAVPF 100 101 127 121 114 115 116 117 118
|
|
52
|
-
c=IN IP4 0.0.0.0
|
|
53
|
-
a=ice-ufrag:vPie
|
|
54
|
-
a=ice-pwd:QWp1jfvbc4iUBXfLVSxhDFIN
|
|
55
|
-
a=ice-options:trickle
|
|
56
|
-
a=candidate:1 1 udp 2130706431 10.50.173.46 56821 typ host
|
|
57
|
-
a=fingerprint:sha-256 60:00:B9:57:5D:EC:CE:C7:7D:57:EA:EF:AF:37:23:64:63:39:F7:F3:D5:01:C7:18:C7:6E:B9:B4:46:19:40:06
|
|
58
|
-
a=setup:actpass
|
|
59
|
-
a=mid:1
|
|
60
|
-
a=rtcp-mux
|
|
61
|
-
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
|
62
|
-
a=sendrecv
|
|
63
|
-
a=rtpmap:100 VP9/90000
|
|
64
|
-
a=rtcp-fb:100 goog-remb
|
|
65
|
-
a=rtcp-fb:100 transport-cc
|
|
66
|
-
a=rtcp-fb:100 ccm fir
|
|
67
|
-
a=rtcp-fb:100 nack
|
|
68
|
-
a=rtcp-fb:100 nack pli
|
|
69
|
-
a=fmtp:100 profile-id=2
|
|
70
|
-
a=rtpmap:101 rtx/90000
|
|
71
|
-
a=fmtp:101 apt=100
|
|
72
|
-
a=rtpmap:127 H264/90000
|
|
73
|
-
a=rtcp-fb:127 goog-remb
|
|
74
|
-
a=rtcp-fb:127 transport-cc
|
|
75
|
-
a=rtcp-fb:127 ccm fir
|
|
76
|
-
a=rtcp-fb:127 nack
|
|
77
|
-
a=rtcp-fb:127 nack pli
|
|
78
|
-
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
|
|
79
|
-
a=rtpmap:121 rtx/90000
|
|
80
|
-
a=fmtp:121 apt=127
|
|
81
|
-
a=rtpmap:114 H264/90000
|
|
82
|
-
a=rtcp-fb:114 goog-remb
|
|
83
|
-
a=rtcp-fb:114 transport-cc
|
|
84
|
-
a=rtcp-fb:114 ccm fir
|
|
85
|
-
a=rtcp-fb:114 nack
|
|
86
|
-
a=rtcp-fb:114 nack pli
|
|
87
|
-
a=fmtp:114 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
|
|
88
|
-
a=rtpmap:115 rtx/90000
|
|
89
|
-
a=fmtp:115 apt=114
|
|
90
|
-
a=rtpmap:116 red/90000
|
|
91
|
-
a=rtpmap:117 rtx/90000
|
|
92
|
-
a=fmtp:117 apt=116
|
|
93
|
-
a=rtpmap:118 ulpfec/90000
|
|
94
|
-
a=rtcp-rsize
|
|
95
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
96
|
-
a=msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 c0ea0a74-c991-4005-ab6a-3a29f23e67b7
|
|
97
|
-
a=ssrc:597013044 cname:TGydLcYyPoQiRBlB
|
|
98
|
-
a=ssrc:597013044 msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 c0ea0a74-c991-4005-ab6a-3a29f23e67b7
|
|
99
|
-
m=video 9 UDP/TLS/RTP/SAVPF 102 122 127 121 108 109
|
|
100
|
-
c=IN IP4 0.0.0.0
|
|
101
|
-
a=ice-ufrag:vPie
|
|
102
|
-
a=ice-pwd:QWp1jfvbc4iUBXfLVSxhDFIN
|
|
103
|
-
a=ice-options:trickle
|
|
104
|
-
a=candidate:1 1 udp 2130706431 10.50.173.46 56821 typ host
|
|
105
|
-
a=fingerprint:sha-256 60:00:B9:57:5D:EC:CE:C7:7D:57:EA:EF:AF:37:23:64:63:39:F7:F3:D5:01:C7:18:C7:6E:B9:B4:46:19:40:06
|
|
106
|
-
a=setup:actpass
|
|
107
|
-
a=mid:2
|
|
108
|
-
a=rtcp-mux
|
|
109
|
-
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
|
110
|
-
a=recvonly
|
|
111
|
-
a=rtpmap:102 VP9/90000
|
|
112
|
-
a=rtcp-fb:102 goog-remb
|
|
113
|
-
a=rtcp-fb:102 transport-cc
|
|
114
|
-
a=rtcp-fb:102 ccm fir
|
|
115
|
-
a=rtcp-fb:102 nack
|
|
116
|
-
a=rtcp-fb:102 nack pli
|
|
117
|
-
a=fmtp:102 profile-id=1
|
|
118
|
-
a=rtpmap:122 rtx/90000
|
|
119
|
-
a=fmtp:122 apt=102
|
|
120
|
-
a=rtpmap:127 H264/90000
|
|
121
|
-
a=rtcp-fb:127 goog-remb
|
|
122
|
-
a=rtcp-fb:127 transport-cc
|
|
123
|
-
a=rtcp-fb:127 ccm fir
|
|
124
|
-
a=rtcp-fb:127 nack
|
|
125
|
-
a=rtcp-fb:127 nack pli
|
|
126
|
-
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
|
|
127
|
-
a=rtpmap:121 rtx/90000
|
|
128
|
-
a=fmtp:121 apt=127
|
|
129
|
-
a=rtpmap:108 H264/90000
|
|
130
|
-
a=rtcp-fb:108 goog-remb
|
|
131
|
-
a=rtcp-fb:108 transport-cc
|
|
132
|
-
a=rtcp-fb:108 ccm fir
|
|
133
|
-
a=rtcp-fb:108 nack
|
|
134
|
-
a=rtcp-fb:108 nack pli
|
|
135
|
-
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
|
|
136
|
-
a=rtpmap:109 rtx/90000
|
|
137
|
-
a=fmtp:109 apt=108
|
|
138
|
-
a=rtcp-rsize
|
|
139
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
140
|
-
`;
|
|
141
|
-
|
|
142
|
-
// same as SDP_MULTIPLE_VIDEO_CODECS but with h264 profile level changed from 3.1 to 3.0
|
|
143
|
-
export const SDP_MULTIPLE_VIDEO_CODECS_WITH_LOWERED_H264_PROFILE_LEVEL = ensureCRLF`v=0
|
|
144
|
-
o=- 3328550572590672467 2 IN IP4 127.0.0.1
|
|
145
|
-
s=-
|
|
146
|
-
t=0 0
|
|
147
|
-
a=group:BUNDLE 0 1 2
|
|
148
|
-
a=extmap-allow-mixed
|
|
149
|
-
a=msid-semantic: WMS 38872d1a-f4c3-4234-b162-bb47bc55ec57
|
|
150
|
-
m=audio 9 UDP/TLS/RTP/SAVPF 111 63 9 0 8 106
|
|
151
|
-
c=IN IP4 0.0.0.0
|
|
152
|
-
a=ice-ufrag:vPie
|
|
153
|
-
a=ice-pwd:QWp1jfvbc4iUBXfLVSxhDFIN
|
|
154
|
-
a=ice-options:trickle
|
|
155
|
-
a=candidate:1 1 udp 2130706431 10.50.173.46 56821 typ host
|
|
156
|
-
a=fingerprint:sha-256 60:00:B9:57:5D:EC:CE:C7:7D:57:EA:EF:AF:37:23:64:63:39:F7:F3:D5:01:C7:18:C7:6E:B9:B4:46:19:40:06
|
|
157
|
-
a=setup:actpass
|
|
158
|
-
a=mid:0
|
|
159
|
-
a=rtcp-mux
|
|
160
|
-
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
|
|
161
|
-
a=sendrecv
|
|
162
|
-
a=rtpmap:111 opus/48000/2
|
|
163
|
-
a=rtcp-fb:111 transport-cc
|
|
164
|
-
a=fmtp:111 minptime=10;useinbandfec=1
|
|
165
|
-
a=rtpmap:63 red/48000/2
|
|
166
|
-
a=fmtp:63 111/111
|
|
167
|
-
a=rtpmap:9 G722/8000
|
|
168
|
-
a=rtpmap:0 PCMU/8000
|
|
169
|
-
a=rtpmap:8 PCMA/8000
|
|
170
|
-
a=rtpmap:106 CN/32000
|
|
171
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
172
|
-
a=msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 0283c960-c78d-4164-a6f3-394342273ad4
|
|
173
|
-
a=ssrc:3693867886 cname:TGydLcYyPoQiRBlB
|
|
174
|
-
a=ssrc:3693867886 msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 0283c960-c78d-4164-a6f3-394342273ad4
|
|
175
|
-
m=video 9 UDP/TLS/RTP/SAVPF 100 101 127 121 114 115 116 117 118
|
|
176
|
-
c=IN IP4 0.0.0.0
|
|
177
|
-
a=ice-ufrag:vPie
|
|
178
|
-
a=ice-pwd:QWp1jfvbc4iUBXfLVSxhDFIN
|
|
179
|
-
a=ice-options:trickle
|
|
180
|
-
a=candidate:1 1 udp 2130706431 10.50.173.46 56821 typ host
|
|
181
|
-
a=fingerprint:sha-256 60:00:B9:57:5D:EC:CE:C7:7D:57:EA:EF:AF:37:23:64:63:39:F7:F3:D5:01:C7:18:C7:6E:B9:B4:46:19:40:06
|
|
182
|
-
a=setup:actpass
|
|
183
|
-
a=mid:1
|
|
184
|
-
a=rtcp-mux
|
|
185
|
-
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
|
186
|
-
a=sendrecv
|
|
187
|
-
a=rtpmap:100 VP9/90000
|
|
188
|
-
a=rtcp-fb:100 goog-remb
|
|
189
|
-
a=rtcp-fb:100 transport-cc
|
|
190
|
-
a=rtcp-fb:100 ccm fir
|
|
191
|
-
a=rtcp-fb:100 nack
|
|
192
|
-
a=rtcp-fb:100 nack pli
|
|
193
|
-
a=fmtp:100 profile-id=2
|
|
194
|
-
a=rtpmap:101 rtx/90000
|
|
195
|
-
a=fmtp:101 apt=100
|
|
196
|
-
a=rtpmap:127 H264/90000
|
|
197
|
-
a=rtcp-fb:127 goog-remb
|
|
198
|
-
a=rtcp-fb:127 transport-cc
|
|
199
|
-
a=rtcp-fb:127 ccm fir
|
|
200
|
-
a=rtcp-fb:127 nack
|
|
201
|
-
a=rtcp-fb:127 nack pli
|
|
202
|
-
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001e;max-mbps=48600
|
|
203
|
-
a=rtpmap:121 rtx/90000
|
|
204
|
-
a=fmtp:121 apt=127
|
|
205
|
-
a=rtpmap:114 H264/90000
|
|
206
|
-
a=rtcp-fb:114 goog-remb
|
|
207
|
-
a=rtcp-fb:114 transport-cc
|
|
208
|
-
a=rtcp-fb:114 ccm fir
|
|
209
|
-
a=rtcp-fb:114 nack
|
|
210
|
-
a=rtcp-fb:114 nack pli
|
|
211
|
-
a=fmtp:114 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001e;max-mbps=48600
|
|
212
|
-
a=rtpmap:115 rtx/90000
|
|
213
|
-
a=fmtp:115 apt=114
|
|
214
|
-
a=rtpmap:116 red/90000
|
|
215
|
-
a=rtpmap:117 rtx/90000
|
|
216
|
-
a=fmtp:117 apt=116
|
|
217
|
-
a=rtpmap:118 ulpfec/90000
|
|
218
|
-
a=rtcp-rsize
|
|
219
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
220
|
-
a=msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 c0ea0a74-c991-4005-ab6a-3a29f23e67b7
|
|
221
|
-
a=ssrc:597013044 cname:TGydLcYyPoQiRBlB
|
|
222
|
-
a=ssrc:597013044 msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 c0ea0a74-c991-4005-ab6a-3a29f23e67b7
|
|
223
|
-
m=video 9 UDP/TLS/RTP/SAVPF 102 122 127 121 108 109
|
|
224
|
-
c=IN IP4 0.0.0.0
|
|
225
|
-
a=ice-ufrag:vPie
|
|
226
|
-
a=ice-pwd:QWp1jfvbc4iUBXfLVSxhDFIN
|
|
227
|
-
a=ice-options:trickle
|
|
228
|
-
a=candidate:1 1 udp 2130706431 10.50.173.46 56821 typ host
|
|
229
|
-
a=fingerprint:sha-256 60:00:B9:57:5D:EC:CE:C7:7D:57:EA:EF:AF:37:23:64:63:39:F7:F3:D5:01:C7:18:C7:6E:B9:B4:46:19:40:06
|
|
230
|
-
a=setup:actpass
|
|
231
|
-
a=mid:2
|
|
232
|
-
a=rtcp-mux
|
|
233
|
-
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
|
234
|
-
a=recvonly
|
|
235
|
-
a=rtpmap:102 VP9/90000
|
|
236
|
-
a=rtcp-fb:102 goog-remb
|
|
237
|
-
a=rtcp-fb:102 transport-cc
|
|
238
|
-
a=rtcp-fb:102 ccm fir
|
|
239
|
-
a=rtcp-fb:102 nack
|
|
240
|
-
a=rtcp-fb:102 nack pli
|
|
241
|
-
a=fmtp:102 profile-id=1
|
|
242
|
-
a=rtpmap:122 rtx/90000
|
|
243
|
-
a=fmtp:122 apt=102
|
|
244
|
-
a=rtpmap:127 H264/90000
|
|
245
|
-
a=rtcp-fb:127 goog-remb
|
|
246
|
-
a=rtcp-fb:127 transport-cc
|
|
247
|
-
a=rtcp-fb:127 ccm fir
|
|
248
|
-
a=rtcp-fb:127 nack
|
|
249
|
-
a=rtcp-fb:127 nack pli
|
|
250
|
-
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001e;max-mbps=48600
|
|
251
|
-
a=rtpmap:121 rtx/90000
|
|
252
|
-
a=fmtp:121 apt=127
|
|
253
|
-
a=rtpmap:108 H264/90000
|
|
254
|
-
a=rtcp-fb:108 goog-remb
|
|
255
|
-
a=rtcp-fb:108 transport-cc
|
|
256
|
-
a=rtcp-fb:108 ccm fir
|
|
257
|
-
a=rtcp-fb:108 nack
|
|
258
|
-
a=rtcp-fb:108 nack pli
|
|
259
|
-
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01e;max-mbps=48600
|
|
260
|
-
a=rtpmap:109 rtx/90000
|
|
261
|
-
a=fmtp:109 apt=108
|
|
262
|
-
a=rtcp-rsize
|
|
263
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
264
|
-
`;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
// same as SDP_MULTIPLE_VIDEO_CODECS, but has max-fs appended to all H264 fmtp lines
|
|
268
|
-
export const SDP_MULTIPLE_VIDEO_CODECS_WITH_MAX_FS = ensureCRLF`v=0
|
|
269
|
-
o=- 3328550572590672467 2 IN IP4 127.0.0.1
|
|
270
|
-
s=-
|
|
271
|
-
t=0 0
|
|
272
|
-
a=group:BUNDLE 0 1 2
|
|
273
|
-
a=extmap-allow-mixed
|
|
274
|
-
a=msid-semantic: WMS 38872d1a-f4c3-4234-b162-bb47bc55ec57
|
|
275
|
-
m=audio 9 UDP/TLS/RTP/SAVPF 111 63 9 0 8 106
|
|
276
|
-
c=IN IP4 0.0.0.0
|
|
277
|
-
a=ice-ufrag:vPie
|
|
278
|
-
a=ice-pwd:QWp1jfvbc4iUBXfLVSxhDFIN
|
|
279
|
-
a=ice-options:trickle
|
|
280
|
-
a=candidate:1 1 udp 2130706431 10.50.173.46 56821 typ host
|
|
281
|
-
a=fingerprint:sha-256 60:00:B9:57:5D:EC:CE:C7:7D:57:EA:EF:AF:37:23:64:63:39:F7:F3:D5:01:C7:18:C7:6E:B9:B4:46:19:40:06
|
|
282
|
-
a=setup:actpass
|
|
283
|
-
a=mid:0
|
|
284
|
-
a=rtcp-mux
|
|
285
|
-
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
|
|
286
|
-
a=sendrecv
|
|
287
|
-
a=rtpmap:111 opus/48000/2
|
|
288
|
-
a=rtcp-fb:111 transport-cc
|
|
289
|
-
a=fmtp:111 minptime=10;useinbandfec=1
|
|
290
|
-
a=rtpmap:63 red/48000/2
|
|
291
|
-
a=fmtp:63 111/111
|
|
292
|
-
a=rtpmap:9 G722/8000
|
|
293
|
-
a=rtpmap:0 PCMU/8000
|
|
294
|
-
a=rtpmap:8 PCMA/8000
|
|
295
|
-
a=rtpmap:106 CN/32000
|
|
296
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
297
|
-
a=msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 0283c960-c78d-4164-a6f3-394342273ad4
|
|
298
|
-
a=ssrc:3693867886 cname:TGydLcYyPoQiRBlB
|
|
299
|
-
a=ssrc:3693867886 msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 0283c960-c78d-4164-a6f3-394342273ad4
|
|
300
|
-
m=video 9 UDP/TLS/RTP/SAVPF 100 101 127 121 114 115 116 117 118
|
|
301
|
-
c=IN IP4 0.0.0.0
|
|
302
|
-
a=ice-ufrag:vPie
|
|
303
|
-
a=ice-pwd:QWp1jfvbc4iUBXfLVSxhDFIN
|
|
304
|
-
a=ice-options:trickle
|
|
305
|
-
a=candidate:1 1 udp 2130706431 10.50.173.46 56821 typ host
|
|
306
|
-
a=fingerprint:sha-256 60:00:B9:57:5D:EC:CE:C7:7D:57:EA:EF:AF:37:23:64:63:39:F7:F3:D5:01:C7:18:C7:6E:B9:B4:46:19:40:06
|
|
307
|
-
a=setup:actpass
|
|
308
|
-
a=mid:1
|
|
309
|
-
a=rtcp-mux
|
|
310
|
-
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
|
311
|
-
a=sendrecv
|
|
312
|
-
a=rtpmap:100 VP9/90000
|
|
313
|
-
a=rtcp-fb:100 goog-remb
|
|
314
|
-
a=rtcp-fb:100 transport-cc
|
|
315
|
-
a=rtcp-fb:100 ccm fir
|
|
316
|
-
a=rtcp-fb:100 nack
|
|
317
|
-
a=rtcp-fb:100 nack pli
|
|
318
|
-
a=fmtp:100 profile-id=2
|
|
319
|
-
a=rtpmap:101 rtx/90000
|
|
320
|
-
a=fmtp:101 apt=100
|
|
321
|
-
a=rtpmap:127 H264/90000
|
|
322
|
-
a=rtcp-fb:127 goog-remb
|
|
323
|
-
a=rtcp-fb:127 transport-cc
|
|
324
|
-
a=rtcp-fb:127 ccm fir
|
|
325
|
-
a=rtcp-fb:127 nack
|
|
326
|
-
a=rtcp-fb:127 nack pli
|
|
327
|
-
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f;max-fs=8192;max-mbps=245760
|
|
328
|
-
a=rtpmap:121 rtx/90000
|
|
329
|
-
a=fmtp:121 apt=127
|
|
330
|
-
a=rtpmap:114 H264/90000
|
|
331
|
-
a=rtcp-fb:114 goog-remb
|
|
332
|
-
a=rtcp-fb:114 transport-cc
|
|
333
|
-
a=rtcp-fb:114 ccm fir
|
|
334
|
-
a=rtcp-fb:114 nack
|
|
335
|
-
a=rtcp-fb:114 nack pli
|
|
336
|
-
a=fmtp:114 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f;max-fs=8192;max-mbps=245760
|
|
337
|
-
a=rtpmap:115 rtx/90000
|
|
338
|
-
a=fmtp:115 apt=114
|
|
339
|
-
a=rtpmap:116 red/90000
|
|
340
|
-
a=rtpmap:117 rtx/90000
|
|
341
|
-
a=fmtp:117 apt=116
|
|
342
|
-
a=rtpmap:118 ulpfec/90000
|
|
343
|
-
a=rtcp-rsize
|
|
344
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
345
|
-
a=msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 c0ea0a74-c991-4005-ab6a-3a29f23e67b7
|
|
346
|
-
a=ssrc:597013044 cname:TGydLcYyPoQiRBlB
|
|
347
|
-
a=ssrc:597013044 msid:38872d1a-f4c3-4234-b162-bb47bc55ec57 c0ea0a74-c991-4005-ab6a-3a29f23e67b7
|
|
348
|
-
m=video 9 UDP/TLS/RTP/SAVPF 102 122 127 121 108 109
|
|
349
|
-
c=IN IP4 0.0.0.0
|
|
350
|
-
a=ice-ufrag:vPie
|
|
351
|
-
a=ice-pwd:QWp1jfvbc4iUBXfLVSxhDFIN
|
|
352
|
-
a=ice-options:trickle
|
|
353
|
-
a=candidate:1 1 udp 2130706431 10.50.173.46 56821 typ host
|
|
354
|
-
a=fingerprint:sha-256 60:00:B9:57:5D:EC:CE:C7:7D:57:EA:EF:AF:37:23:64:63:39:F7:F3:D5:01:C7:18:C7:6E:B9:B4:46:19:40:06
|
|
355
|
-
a=setup:actpass
|
|
356
|
-
a=mid:2
|
|
357
|
-
a=rtcp-mux
|
|
358
|
-
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
|
|
359
|
-
a=recvonly
|
|
360
|
-
a=rtpmap:102 VP9/90000
|
|
361
|
-
a=rtcp-fb:102 goog-remb
|
|
362
|
-
a=rtcp-fb:102 transport-cc
|
|
363
|
-
a=rtcp-fb:102 ccm fir
|
|
364
|
-
a=rtcp-fb:102 nack
|
|
365
|
-
a=rtcp-fb:102 nack pli
|
|
366
|
-
a=fmtp:102 profile-id=1
|
|
367
|
-
a=rtpmap:122 rtx/90000
|
|
368
|
-
a=fmtp:122 apt=102
|
|
369
|
-
a=rtpmap:127 H264/90000
|
|
370
|
-
a=rtcp-fb:127 goog-remb
|
|
371
|
-
a=rtcp-fb:127 transport-cc
|
|
372
|
-
a=rtcp-fb:127 ccm fir
|
|
373
|
-
a=rtcp-fb:127 nack
|
|
374
|
-
a=rtcp-fb:127 nack pli
|
|
375
|
-
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f;max-fs=8192;max-mbps=245760
|
|
376
|
-
a=rtpmap:121 rtx/90000
|
|
377
|
-
a=fmtp:121 apt=127
|
|
378
|
-
a=rtpmap:108 H264/90000
|
|
379
|
-
a=rtcp-fb:108 goog-remb
|
|
380
|
-
a=rtcp-fb:108 transport-cc
|
|
381
|
-
a=rtcp-fb:108 ccm fir
|
|
382
|
-
a=rtcp-fb:108 nack
|
|
383
|
-
a=rtcp-fb:108 nack pli
|
|
384
|
-
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f;max-fs=8192;max-mbps=245760
|
|
385
|
-
a=rtpmap:109 rtx/90000
|
|
386
|
-
a=fmtp:109 apt=108
|
|
387
|
-
a=rtcp-rsize
|
|
388
|
-
a=rtcp:9 IN IP4 0.0.0.0
|
|
389
|
-
`;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import 'jsdom-global/register';
|
|
2
|
-
import {assert} from '@webex/test-helper-chai';
|
|
3
|
-
import RoapUtil from '@webex/plugin-meetings/src/roap/util';
|
|
4
|
-
import PeerConnectionManager from '@webex/plugin-meetings/src/peer-connection-manager/index.js';
|
|
5
|
-
import sinon from 'sinon';
|
|
6
|
-
|
|
7
|
-
describe('RoapUtil', () => {
|
|
8
|
-
describe('updatePeerConnection', () => {
|
|
9
|
-
let meeting, session;
|
|
10
|
-
|
|
11
|
-
beforeEach('stub PeerConnectionManager', () => {
|
|
12
|
-
meeting = {
|
|
13
|
-
mediaProperties: {
|
|
14
|
-
peerConnection: {name: 'peer-connection'}
|
|
15
|
-
},
|
|
16
|
-
roap: {
|
|
17
|
-
lastRoapOffer: 'lastRoapOffer'
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
session = {OFFER: {sdps: ['sdp1', 'sdp2']}};
|
|
21
|
-
|
|
22
|
-
PeerConnectionManager.updatePeerConnection = sinon.stub().returns(Promise.resolve());
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
it('should just call PeerConnection.updatePeerConnection', async () => {
|
|
26
|
-
await RoapUtil.updatePeerConnection(meeting, session);
|
|
27
|
-
assert.calledOnce(PeerConnectionManager.updatePeerConnection);
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
});
|