@techsee/techsee-media-service 999.19.6-nodejs20 → 999.19.50-alphagb2
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/README.md +28 -27
- package/lib/LocalStreamManager.d.ts +0 -1
- package/lib/LocalStreamManager.d.ts.map +1 -1
- package/lib/LocalStreamManager.js +84 -82
- package/lib/LocalStreamManager.js.map +1 -1
- package/lib/MediaConstants.d.ts +3 -20
- package/lib/MediaConstants.d.ts.map +1 -1
- package/lib/MediaConstants.js +13 -31
- package/lib/MediaConstants.js.map +1 -1
- package/lib/MediaContracts.d.ts +1 -7
- package/lib/MediaContracts.d.ts.map +1 -1
- package/lib/MediaContracts.js +4 -1
- package/lib/MediaContracts.js.map +1 -1
- package/lib/MediaPublisher.d.ts +0 -1
- package/lib/MediaPublisher.d.ts.map +1 -1
- package/lib/MediaPublisher.js +10 -7
- package/lib/MediaPublisher.js.map +1 -1
- package/lib/MediaServiceBase.d.ts +0 -1
- package/lib/MediaServiceBase.d.ts.map +1 -1
- package/lib/MediaServiceBase.js +198 -169
- package/lib/MediaServiceBase.js.map +1 -1
- package/lib/MediaSession/MediaServer.d.ts +0 -1
- package/lib/MediaSession/MediaServer.d.ts.map +1 -1
- package/lib/MediaSession/MediaServer.js +74 -62
- package/lib/MediaSession/MediaServer.js.map +1 -1
- package/lib/MediaSession/MediaSessionBase.d.ts +0 -1
- package/lib/MediaSession/MediaSessionBase.d.ts.map +1 -1
- package/lib/MediaSession/MediaSessionBase.js +23 -19
- package/lib/MediaSession/MediaSessionBase.js.map +1 -1
- package/lib/MediaSession/SessionOpentok.d.ts +0 -1
- package/lib/MediaSession/SessionOpentok.d.ts.map +1 -1
- package/lib/MediaSession/SessionOpentok.js +80 -51
- package/lib/MediaSession/SessionOpentok.js.map +1 -1
- package/lib/MediaSession/SessionTurn.d.ts +0 -1
- package/lib/MediaSession/SessionTurn.d.ts.map +1 -1
- package/lib/MediaSession/SessionTurn.js +151 -109
- package/lib/MediaSession/SessionTurn.js.map +1 -1
- package/lib/MediaSession/TurnConstants.d.ts +0 -1
- package/lib/MediaSession/TurnConstants.d.ts.map +1 -1
- package/lib/MediaSession/TurnConstants.js +16 -1
- package/lib/MediaSession/TurnConstants.js.map +1 -1
- package/lib/MediaSubscriber.d.ts +0 -1
- package/lib/MediaSubscriber.d.ts.map +1 -1
- package/lib/MediaSubscriber.js +43 -37
- package/lib/MediaSubscriber.js.map +1 -1
- package/lib/MediaUtils/Compatibility.d.ts +0 -3
- package/lib/MediaUtils/Compatibility.d.ts.map +1 -1
- package/lib/MediaUtils/Compatibility.js +34 -76
- package/lib/MediaUtils/Compatibility.js.map +1 -1
- package/lib/MediaUtils/MediaDomUtils.d.ts +3 -6
- package/lib/MediaUtils/MediaDomUtils.d.ts.map +1 -1
- package/lib/MediaUtils/MediaDomUtils.js +65 -70
- package/lib/MediaUtils/MediaDomUtils.js.map +1 -1
- package/lib/MediaUtils/MediaTracer.d.ts +0 -1
- package/lib/MediaUtils/MediaTracer.d.ts.map +1 -1
- package/lib/MediaUtils/MediaTracer.js +5 -2
- package/lib/MediaUtils/MediaTracer.js.map +1 -1
- package/lib/TechseeMediaStream.d.ts +0 -1
- package/lib/TechseeMediaStream.d.ts.map +1 -1
- package/lib/TechseeMediaStream.js +12 -9
- package/lib/TechseeMediaStream.js.map +1 -1
- package/lib/oldCode/constants.js +20 -0
- package/lib/oldCode/constants.js.map +1 -0
- package/lib/oldCode/event-emitter.js +39 -0
- package/lib/oldCode/event-emitter.js.map +1 -0
- package/lib/oldCode/index.js +64 -0
- package/lib/oldCode/index.js.map +1 -0
- package/lib/oldCode/opentok/session.js +310 -0
- package/lib/oldCode/opentok/session.js.map +1 -0
- package/lib/oldCode/opentok/stream.js +310 -0
- package/lib/oldCode/opentok/stream.js.map +1 -0
- package/lib/oldCode/publisher.js +143 -0
- package/lib/oldCode/publisher.js.map +1 -0
- package/lib/oldCode/service.js +395 -0
- package/lib/oldCode/service.js.map +1 -0
- package/lib/oldCode/session.js +110 -0
- package/lib/oldCode/session.js.map +1 -0
- package/lib/oldCode/stream.js +195 -0
- package/lib/oldCode/stream.js.map +1 -0
- package/lib/oldCode/subscriber.js +90 -0
- package/lib/oldCode/subscriber.js.map +1 -0
- package/lib/oldCode/tracer.d.ts +36 -0
- package/lib/oldCode/tracer.d.ts.map +1 -0
- package/lib/oldCode/tracer.js +161 -0
- package/lib/oldCode/tracer.js.map +1 -0
- package/lib/oldCode/utils/ImageFixer.d.ts +1 -0
- package/lib/oldCode/utils/ImageFixer.d.ts.map +1 -0
- package/lib/oldCode/utils/ImageFixer.js +59 -0
- package/lib/oldCode/utils/ImageFixer.js.map +1 -0
- package/lib/oldCode/webrtc/constants.js +114 -0
- package/lib/oldCode/webrtc/constants.js.map +1 -0
- package/lib/oldCode/webrtc/helper.js +173 -0
- package/lib/oldCode/webrtc/helper.js.map +1 -0
- package/lib/oldCode/webrtc/session-kms.js +558 -0
- package/lib/oldCode/webrtc/session-kms.js.map +1 -0
- package/lib/oldCode/webrtc/session-loopback.js +336 -0
- package/lib/oldCode/webrtc/session-loopback.js.map +1 -0
- package/lib/oldCode/webrtc/session-turn.js +880 -0
- package/lib/oldCode/webrtc/session-turn.js.map +1 -0
- package/lib/oldCode/webrtc/session-turn.v2.js +583 -0
- package/lib/oldCode/webrtc/session-turn.v2.js.map +1 -0
- package/lib/oldCode/webrtc/session.js +52 -0
- package/lib/oldCode/webrtc/session.js.map +1 -0
- package/lib/oldCode/webrtc/stream.js +674 -0
- package/lib/oldCode/webrtc/stream.js.map +1 -0
- package/lib/oldCode/webrtc/temasys/adapter-loader.js +12 -0
- package/lib/oldCode/webrtc/temasys/adapter-loader.js.map +1 -0
- package/lib/oldCode/webrtc/temasys/adapter.js +5862 -0
- package/lib/oldCode/webrtc/temasys/adapter.js.map +1 -0
- package/lib/oldCode/webrtc/webrtc-ie-shim.js +3007 -0
- package/lib/oldCode/webrtc/webrtc-ie-shim.js.map +1 -0
- package/lib/qos/raw-qos.js +145 -84
- package/lib/qos/raw-qos.js.map +1 -1
- package/lib/webrtc-ie-shim.js +2950 -1896
- package/lib/webrtc-ie-shim.js.map +1 -1
- package/package.json +58 -65
- package/lib/MediaUtils/index.d.ts +0 -2
- package/lib/MediaUtils/index.d.ts.map +0 -1
- package/lib/MediaUtils/index.js +0 -6
- package/lib/MediaUtils/index.js.map +0 -1
- package/lib/MultiParty/DetectWebRtcService.d.ts +0 -19
- package/lib/MultiParty/DetectWebRtcService.d.ts.map +0 -1
- package/lib/MultiParty/DetectWebRtcService.js +0 -107
- package/lib/MultiParty/DetectWebRtcService.js.map +0 -1
- package/lib/MultiParty/MediaCapabilitiesService.d.ts +0 -18
- package/lib/MultiParty/MediaCapabilitiesService.d.ts.map +0 -1
- package/lib/MultiParty/MediaCapabilitiesService.js +0 -158
- package/lib/MultiParty/MediaCapabilitiesService.js.map +0 -1
- package/lib/MultiParty/MediaCapabilitiesUtils.d.ts +0 -6
- package/lib/MultiParty/MediaCapabilitiesUtils.d.ts.map +0 -1
- package/lib/MultiParty/MediaCapabilitiesUtils.js +0 -123
- package/lib/MultiParty/MediaCapabilitiesUtils.js.map +0 -1
- package/lib/MultiParty/MediaTracer.d.ts +0 -4
- package/lib/MultiParty/MediaTracer.d.ts.map +0 -1
- package/lib/MultiParty/MediaTracer.js +0 -10
- package/lib/MultiParty/MediaTracer.js.map +0 -1
- package/lib/MultiParty/MultiPartyService.d.ts +0 -49
- package/lib/MultiParty/MultiPartyService.d.ts.map +0 -1
- package/lib/MultiParty/MultiPartyService.js +0 -30
- package/lib/MultiParty/MultiPartyService.js.map +0 -1
- package/lib/MultiParty/MultiPartyServiceFactory.d.ts +0 -4
- package/lib/MultiParty/MultiPartyServiceFactory.d.ts.map +0 -1
- package/lib/MultiParty/MultiPartyServiceFactory.js +0 -13
- package/lib/MultiParty/MultiPartyServiceFactory.js.map +0 -1
- package/lib/MultiParty/MultipartyServiceEventTypes.d.ts +0 -89
- package/lib/MultiParty/MultipartyServiceEventTypes.d.ts.map +0 -1
- package/lib/MultiParty/MultipartyServiceEventTypes.js +0 -16
- package/lib/MultiParty/MultipartyServiceEventTypes.js.map +0 -1
- package/lib/MultiParty/index.d.ts +0 -7
- package/lib/MultiParty/index.d.ts.map +0 -1
- package/lib/MultiParty/index.js +0 -25
- package/lib/MultiParty/index.js.map +0 -1
- package/lib/MultiParty/opentok/OpentokMultiPartyService.d.ts +0 -38
- package/lib/MultiParty/opentok/OpentokMultiPartyService.d.ts.map +0 -1
- package/lib/MultiParty/opentok/OpentokMultiPartyService.js +0 -492
- package/lib/MultiParty/opentok/OpentokMultiPartyService.js.map +0 -1
- package/lib/MultiParty/opentok/OpentokPublisher.d.ts +0 -34
- package/lib/MultiParty/opentok/OpentokPublisher.d.ts.map +0 -1
- package/lib/MultiParty/opentok/OpentokPublisher.js +0 -121
- package/lib/MultiParty/opentok/OpentokPublisher.js.map +0 -1
- package/lib/MultiParty/opentok/OpentokPublisherEventMapper.d.ts +0 -20
- package/lib/MultiParty/opentok/OpentokPublisherEventMapper.d.ts.map +0 -1
- package/lib/MultiParty/opentok/OpentokPublisherEventMapper.js +0 -49
- package/lib/MultiParty/opentok/OpentokPublisherEventMapper.js.map +0 -1
- package/lib/MultiParty/opentok/OpentokScreenPublisher.d.ts +0 -6
- package/lib/MultiParty/opentok/OpentokScreenPublisher.d.ts.map +0 -1
- package/lib/MultiParty/opentok/OpentokScreenPublisher.js +0 -48
- package/lib/MultiParty/opentok/OpentokScreenPublisher.js.map +0 -1
- package/lib/MultiParty/opentok/OpentokSubscriber.d.ts +0 -2
- package/lib/MultiParty/opentok/OpentokSubscriber.d.ts.map +0 -1
- package/lib/MultiParty/opentok/OpentokSubscriber.js +0 -26
- package/lib/MultiParty/opentok/OpentokSubscriber.js.map +0 -1
- package/lib/MultiParty/opentok/OpentokVideoPublisher.d.ts +0 -19
- package/lib/MultiParty/opentok/OpentokVideoPublisher.d.ts.map +0 -1
- package/lib/MultiParty/opentok/OpentokVideoPublisher.js +0 -182
- package/lib/MultiParty/opentok/OpentokVideoPublisher.js.map +0 -1
- package/lib/MultiParty/opentok/trace.d.ts +0 -3
- package/lib/MultiParty/opentok/trace.d.ts.map +0 -1
- package/lib/MultiParty/opentok/trace.js +0 -18
- package/lib/MultiParty/opentok/trace.js.map +0 -1
- package/lib/MultiParty/opentok.d.ts +0 -463
- package/lib/MultiParty/types.d.ts +0 -33
- package/lib/MultiParty/types.d.ts.map +0 -1
- package/lib/MultiParty/types.js +0 -3
- package/lib/MultiParty/types.js.map +0 -1
- package/lib/MultiParty/utils.d.ts +0 -10
- package/lib/MultiParty/utils.d.ts.map +0 -1
- package/lib/MultiParty/utils.js +0 -17
- package/lib/MultiParty/utils.js.map +0 -1
- package/lib/qos/raw-qos.d.ts +0 -29
- package/lib/qos/raw-qos.d.ts.map +0 -1
- package/lib/webrtc-ie-shim.d.ts +0 -4
- package/lib/webrtc-ie-shim.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,99 +1,92 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@techsee/techsee-media-service",
|
|
3
|
-
"version": "999.19.
|
|
4
|
-
"description": "Techsee Media Service",
|
|
3
|
+
"version": "999.19.50-alphagb2",
|
|
4
|
+
"description": "Techsee Media Service Client",
|
|
5
5
|
"author": "TechSee",
|
|
6
|
-
"license": "ISC",
|
|
7
6
|
"main": "lib/index.js",
|
|
8
7
|
"scripts": {
|
|
9
8
|
"preinstall": "npm update @techsee/techsee-common @techsee/openvidu-browser",
|
|
10
9
|
"prepublishOnly": "npm run build && npm run tag",
|
|
11
10
|
"postpublish": "npm run clean",
|
|
12
|
-
"build": "npm run
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"lint": "run-s lint:*",
|
|
17
|
-
"lint:prettier": "prettier --check \"./**/*.{js?(x),ts?(x),json,scss,md}\"",
|
|
18
|
-
"lint:eslint": "eslint \"./**/*.{js?(x),ts?(x)}\"",
|
|
19
|
-
"lint-staged": "lint-staged",
|
|
20
|
-
"lint-fix": "run-s lint-fix:*",
|
|
21
|
-
"lint-fix:prettier": "prettier --write \"./**/*.{js?(x),ts?(x),json,scss,md}\"",
|
|
22
|
-
"lint-fix:eslint": "eslint --fix --color \"./**/*.{js?(x),ts?(x)}\"",
|
|
23
|
-
"lint-test": "./node_modules/.bin/eslint . --fix-dry-run",
|
|
11
|
+
"build": "npm run lint-fix && npm run test && gulp --gulpfile ./.tools/build.js",
|
|
12
|
+
"clean": "gulp --gulpfile ./.tools/build.js --clean",
|
|
13
|
+
"lint": "./node_modules/.bin/eslint --ext .js --ext .jsx --ext .ts ./src ",
|
|
14
|
+
"lint-fix": "./node_modules/.bin/eslint --ext .js --ext .jsx --ext .ts ./src --fix",
|
|
24
15
|
"tag": "git tag v$npm_package_version -f | git push -f --tags",
|
|
25
|
-
"test": "jest --config=./jest.config.js",
|
|
26
16
|
"demo": "start-storybook -p 9003 -c .storybook -s ./ && open http://localhost:9003/",
|
|
27
|
-
"demo-build": "build-storybook -c .storybook -o demo-dist"
|
|
28
|
-
|
|
29
|
-
"lint-staged": {
|
|
30
|
-
"./**/*.{js?(x),ts?(x),json,scss,md}": "prettier --write",
|
|
31
|
-
"./**/*.{js?(x),ts?(x)}": "eslint --fix --color"
|
|
32
|
-
},
|
|
33
|
-
"repository": {
|
|
34
|
-
"type": "git",
|
|
35
|
-
"url": "git+https://github.com/TechSeeDev/techsee-media-service.git"
|
|
17
|
+
"demo-build": "build-storybook -c .storybook -o demo-dist",
|
|
18
|
+
"test": "jest --config=./jest.config.js"
|
|
36
19
|
},
|
|
37
20
|
"dependencies": {
|
|
21
|
+
"@techsee/kurento-utils-temasys-mod": "6.6.3-dev-3",
|
|
38
22
|
"@techsee/openvidu-browser": "~12.15.6",
|
|
39
|
-
"@techsee/techsee-common": "
|
|
23
|
+
"@techsee/techsee-common": "~0.23.0",
|
|
40
24
|
"bluebird": "~3.7.2",
|
|
41
|
-
"
|
|
25
|
+
"kurento-utils": "6.6.2",
|
|
26
|
+
"lodash": "4.17.20",
|
|
42
27
|
"socket.io-client": "2.1.1",
|
|
43
28
|
"webrtc-adapter": "7.7.1"
|
|
44
29
|
},
|
|
45
30
|
"devDependencies": {
|
|
46
|
-
"@storybook/addon-actions": "~
|
|
47
|
-
"@storybook/addon-
|
|
48
|
-
"@storybook/addon-
|
|
49
|
-
"@storybook/addon-
|
|
50
|
-
"@storybook/
|
|
51
|
-
"@storybook/
|
|
31
|
+
"@storybook/addon-actions": "~5.3.19",
|
|
32
|
+
"@storybook/addon-info": "~5.3.19",
|
|
33
|
+
"@storybook/addon-knobs": "~5.3.19",
|
|
34
|
+
"@storybook/addon-options": "~5.3.19",
|
|
35
|
+
"@storybook/addon-storysource": "~5.3.19",
|
|
36
|
+
"@storybook/addon-viewport": "~5.3.19",
|
|
37
|
+
"@storybook/react": "~5.3.19",
|
|
52
38
|
"@types/bluebird": "~3.5.29",
|
|
53
|
-
"@types/
|
|
54
|
-
"@types/
|
|
55
|
-
"@types/
|
|
39
|
+
"@types/babel__traverse": "7.0.12",
|
|
40
|
+
"@types/babel__core": "7.1.8",
|
|
41
|
+
"@types/jest": "~26.0.20",
|
|
42
|
+
"@types/lodash": "~4.14.168",
|
|
43
|
+
"@types/node": "~10.12.18",
|
|
56
44
|
"@types/socket.io-client": "~1.4.32",
|
|
57
45
|
"@types/storybook__addon-actions": "~5.2.1",
|
|
58
46
|
"@types/storybook__react": "~5.2.1",
|
|
59
|
-
"@
|
|
60
|
-
"@typescript-eslint/
|
|
61
|
-
"
|
|
62
|
-
"babel-loader": "~
|
|
63
|
-
"
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "~4.14.0",
|
|
48
|
+
"@typescript-eslint/parser": "~4.14.0",
|
|
49
|
+
"babel-core": "~6.26.3",
|
|
50
|
+
"babel-loader": "~7.1.5",
|
|
51
|
+
"babel-plugin-transform-class-properties": "~6.24.1",
|
|
52
|
+
"babel-plugin-transform-decorators-legacy": "~1.3.5",
|
|
53
|
+
"babel-plugin-transform-runtime": "~6.23.0",
|
|
54
|
+
"babel-preset-env": "~1.7.0",
|
|
55
|
+
"babel-preset-es2015": "~6.24.1",
|
|
56
|
+
"babel-preset-react": "~6.24.1",
|
|
57
|
+
"babel-preset-stage-3": "~6.24.1",
|
|
58
|
+
"babel-runtime": "~6.26.0",
|
|
64
59
|
"del": "~4.1.1",
|
|
65
|
-
"eslint": "
|
|
66
|
-
"eslint-config-airbnb": "
|
|
67
|
-
"eslint-config-
|
|
68
|
-
"eslint-
|
|
69
|
-
"eslint-plugin-
|
|
70
|
-
"eslint-plugin-
|
|
71
|
-
"eslint-plugin-
|
|
72
|
-
"eslint-plugin-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"jest
|
|
79
|
-
"lint-staged": "^14.0.1",
|
|
60
|
+
"eslint": "~7.18.0",
|
|
61
|
+
"eslint-config-airbnb": "~18.2.1",
|
|
62
|
+
"eslint-config-prettier": "~7.2.0",
|
|
63
|
+
"eslint-plugin-import": "~2.22.1",
|
|
64
|
+
"eslint-plugin-jest": "24.1.3",
|
|
65
|
+
"eslint-plugin-jsx-a11y": "~6.4.1",
|
|
66
|
+
"eslint-plugin-prettier": "~3.3.1",
|
|
67
|
+
"eslint-plugin-react": "~7.22.0",
|
|
68
|
+
"gulp": "~4.0.1",
|
|
69
|
+
"gulp-babel": "~7.0.1",
|
|
70
|
+
"gulp-sourcemaps": "~2.6.5",
|
|
71
|
+
"gulp-typescript": "~5.0.1",
|
|
72
|
+
"husky": "~4.3.8",
|
|
73
|
+
"jest": "~26.6.3",
|
|
80
74
|
"merge-stream": "~1.0.1",
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"react": "17.0.2",
|
|
84
|
-
"react-dom": "17.0.2",
|
|
75
|
+
"react": "17.0.1",
|
|
76
|
+
"react-dom": "17.0.1",
|
|
85
77
|
"socket.io": "~2.2.0",
|
|
86
|
-
"ts-jest": "
|
|
87
|
-
"ts-loader": "
|
|
88
|
-
"typescript": "~4.
|
|
78
|
+
"ts-jest": "~26.4.4",
|
|
79
|
+
"ts-loader": "~6.2.1",
|
|
80
|
+
"typescript": "~4.1.3"
|
|
89
81
|
},
|
|
90
82
|
"husky": {
|
|
91
83
|
"hooks": {
|
|
92
|
-
"pre-commit": "npm run lint
|
|
84
|
+
"pre-commit": "npm run lint && npm test",
|
|
93
85
|
"pre-push": "npm run lint && npm test"
|
|
94
86
|
}
|
|
95
87
|
},
|
|
88
|
+
"license": "ISC",
|
|
96
89
|
"files": [
|
|
97
|
-
"/
|
|
90
|
+
"lib/"
|
|
98
91
|
]
|
|
99
92
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MediaUtils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC"}
|
package/lib/MediaUtils/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMediaTracer = void 0;
|
|
4
|
-
var MediaTracer_1 = require("./MediaTracer");
|
|
5
|
-
Object.defineProperty(exports, "getMediaTracer", { enumerable: true, get: function () { return MediaTracer_1.getMediaTracer; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/MediaUtils/index.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAArC,6GAAA,cAAc,OAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ClientWebRtcInfo } from '@techsee/techsee-common/lib/data-contracts/ClientInfo';
|
|
2
|
-
export declare const DETECT_RTC_ADVISED_TIMEOUT = 20000;
|
|
3
|
-
export declare const defaultWebRtcResult: {
|
|
4
|
-
isWebRTCSupported: boolean;
|
|
5
|
-
isWebsiteHasWebcamPermissions: boolean;
|
|
6
|
-
isWebsiteHasMicrophonePermissions: boolean;
|
|
7
|
-
isGetUserMediaSupported: boolean;
|
|
8
|
-
isApplyConstraintsSupported: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare class DetectWebRtcService {
|
|
11
|
-
private static instance?;
|
|
12
|
-
private static initPromise;
|
|
13
|
-
private cachedResult;
|
|
14
|
-
private constructor();
|
|
15
|
-
static get: () => Promise<DetectWebRtcService>;
|
|
16
|
-
private init;
|
|
17
|
-
getWebRtcInfo: () => ClientWebRtcInfo;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=DetectWebRtcService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DetectWebRtcService.d.ts","sourceRoot":"","sources":["../../src/MultiParty/DetectWebRtcService.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uDAAuD,CAAC;AAEvF,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAEhD,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC;AAEF,qBAAa,mBAAmB;IAE5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAsB;IAC9C,OAAO,CAAC,MAAM,CAAC,WAAW,CAAoC;IAE9D,OAAO,CAAC,YAAY,CAAyC;IAE7D,OAAO;IAEP,OAAc,GAAG,QAAa,QAAQ,mBAAmB,CAAC,CAWxD;IAEF,OAAO,CAAC,IAAI,CAyBL;IAEA,aAAa,QAAO,gBAAgB,CAAsB;CACpE"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.DetectWebRtcService = exports.defaultWebRtcResult = exports.DETECT_RTC_ADVISED_TIMEOUT = void 0;
|
|
43
|
-
var detectrtc_js_1 = __importDefault(require("@techsee/techsee-common/lib/detectrtc.js"));
|
|
44
|
-
exports.DETECT_RTC_ADVISED_TIMEOUT = 20000;
|
|
45
|
-
exports.defaultWebRtcResult = {
|
|
46
|
-
isWebRTCSupported: false,
|
|
47
|
-
isWebsiteHasWebcamPermissions: false,
|
|
48
|
-
isWebsiteHasMicrophonePermissions: false,
|
|
49
|
-
isGetUserMediaSupported: false,
|
|
50
|
-
isApplyConstraintsSupported: false
|
|
51
|
-
};
|
|
52
|
-
var DetectWebRtcService = (function () {
|
|
53
|
-
function DetectWebRtcService() {
|
|
54
|
-
var _this = this;
|
|
55
|
-
this.cachedResult = exports.defaultWebRtcResult;
|
|
56
|
-
this.init = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
57
|
-
var _this = this;
|
|
58
|
-
return __generator(this, function (_b) {
|
|
59
|
-
return [2, new Promise(function (resolve, reject) {
|
|
60
|
-
var timeoutPtr = setTimeout(function () {
|
|
61
|
-
timeoutPtr = null;
|
|
62
|
-
_this.cachedResult = exports.defaultWebRtcResult;
|
|
63
|
-
reject();
|
|
64
|
-
}, exports.DETECT_RTC_ADVISED_TIMEOUT);
|
|
65
|
-
detectrtc_js_1.default.load(function () {
|
|
66
|
-
if (timeoutPtr === null) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
clearTimeout(timeoutPtr);
|
|
70
|
-
_this.cachedResult = {
|
|
71
|
-
isWebRTCSupported: detectrtc_js_1.default.isWebRTCSupported,
|
|
72
|
-
isWebsiteHasWebcamPermissions: detectrtc_js_1.default.isWebsiteHasWebcamPermissions,
|
|
73
|
-
isWebsiteHasMicrophonePermissions: detectrtc_js_1.default.isWebsiteHasMicrophonePermissions,
|
|
74
|
-
isGetUserMediaSupported: detectrtc_js_1.default.isGetUserMediaSupported,
|
|
75
|
-
isApplyConstraintsSupported: detectrtc_js_1.default.isApplyConstraintsSupported
|
|
76
|
-
};
|
|
77
|
-
resolve();
|
|
78
|
-
});
|
|
79
|
-
})];
|
|
80
|
-
});
|
|
81
|
-
}); };
|
|
82
|
-
this.getWebRtcInfo = function () { return _this.cachedResult; };
|
|
83
|
-
}
|
|
84
|
-
var _a;
|
|
85
|
-
_a = DetectWebRtcService;
|
|
86
|
-
DetectWebRtcService.initPromise = Promise.resolve();
|
|
87
|
-
DetectWebRtcService.get = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
88
|
-
return __generator(_a, function (_b) {
|
|
89
|
-
switch (_b.label) {
|
|
90
|
-
case 0: return [4, DetectWebRtcService.initPromise];
|
|
91
|
-
case 1:
|
|
92
|
-
_b.sent();
|
|
93
|
-
if (!!DetectWebRtcService.instance) return [3, 3];
|
|
94
|
-
DetectWebRtcService.instance = new DetectWebRtcService();
|
|
95
|
-
DetectWebRtcService.initPromise = DetectWebRtcService.instance.init();
|
|
96
|
-
return [4, DetectWebRtcService.initPromise];
|
|
97
|
-
case 2:
|
|
98
|
-
_b.sent();
|
|
99
|
-
_b.label = 3;
|
|
100
|
-
case 3: return [2, DetectWebRtcService.instance];
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}); };
|
|
104
|
-
return DetectWebRtcService;
|
|
105
|
-
}());
|
|
106
|
-
exports.DetectWebRtcService = DetectWebRtcService;
|
|
107
|
-
//# sourceMappingURL=DetectWebRtcService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DetectWebRtcService.js","sourceRoot":"","sources":["../../src/MultiParty/DetectWebRtcService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0FAAiE;AAGpD,QAAA,0BAA0B,GAAG,KAAK,CAAC;AAEnC,QAAA,mBAAmB,GAAG;IAC/B,iBAAiB,EAAE,KAAK;IACxB,6BAA6B,EAAE,KAAK;IACpC,iCAAiC,EAAE,KAAK;IACxC,uBAAuB,EAAE,KAAK;IAC9B,2BAA2B,EAAE,KAAK;CACrC,CAAC;AAEF;IAOI;QAAA,iBAAwB;QAFhB,iBAAY,GAAqB,2BAAmB,CAAC;QAiBrD,SAAI,GAAG;;;gBACX,WAAA,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;wBACxB,IAAI,UAAU,GAA0B,UAAU,CAAC;4BAC/C,UAAU,GAAG,IAAI,CAAC;4BAClB,KAAI,CAAC,YAAY,GAAG,2BAAmB,CAAC;4BACxC,MAAM,EAAE,CAAC;wBACb,CAAC,EAAE,kCAA0B,CAAC,CAAC;wBAE/B,sBAAS,CAAC,IAAI,CAAC;4BACX,IAAI,UAAU,KAAK,IAAI,EAAE;gCACrB,OAAO;6BACV;4BAED,YAAY,CAAC,UAAU,CAAC,CAAC;4BAEzB,KAAI,CAAC,YAAY,GAAG;gCAChB,iBAAiB,EAAE,sBAAS,CAAC,iBAAiB;gCAC9C,6BAA6B,EAAE,sBAAS,CAAC,6BAA6B;gCACtE,iCAAiC,EAAE,sBAAS,CAAC,iCAAiC;gCAC9E,uBAAuB,EAAE,sBAAS,CAAC,uBAAuB;gCAC1D,2BAA2B,EAAE,sBAAS,CAAC,2BAA2B;6BACrE,CAAC;4BAEF,OAAO,EAAE,CAAC;wBACd,CAAC,CAAC,CAAC;oBACP,CAAC,CAAC,EAAA;;aAAA,CAAC;QAEA,kBAAa,GAAG,cAAwB,OAAA,KAAI,CAAC,YAAY,EAAjB,CAAiB,CAAC;IA1C1C,CAAC;;;IAJT,+BAAW,GAAkB,OAAO,CAAC,OAAO,EAAE,CAAC;IAMhD,uBAAG,GAAG;;;wBAChB,WAAM,mBAAmB,CAAC,WAAW,EAAA;;oBAArC,SAAqC,CAAC;yBAElC,CAAC,mBAAmB,CAAC,QAAQ,EAA7B,cAA6B;oBAC7B,mBAAmB,CAAC,QAAQ,GAAG,IAAI,mBAAmB,EAAE,CAAC;oBACzD,mBAAmB,CAAC,WAAW,GAAG,mBAAmB,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;oBAEtE,WAAM,mBAAmB,CAAC,WAAW,EAAA;;oBAArC,SAAqC,CAAC;;wBAG1C,WAAO,mBAAmB,CAAC,QAAQ,EAAC;;;SACvC,CAAC;IA8BN,0BAAC;CAAA,AAlDD,IAkDC;AAlDY,kDAAmB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare class MediaCapabilitiesService {
|
|
2
|
-
private static instance;
|
|
3
|
-
private static initPromise;
|
|
4
|
-
private webRtcSupportInfo;
|
|
5
|
-
private devicesList;
|
|
6
|
-
private environmentService;
|
|
7
|
-
private constructor();
|
|
8
|
-
static getInstance(): Promise<MediaCapabilitiesService>;
|
|
9
|
-
private init;
|
|
10
|
-
hasCamera(): boolean;
|
|
11
|
-
hasMicrophone(): boolean;
|
|
12
|
-
hasWebRTC(): boolean;
|
|
13
|
-
updateDevicesList(reverse?: boolean): Promise<void>;
|
|
14
|
-
get supportSwitchCamera(): boolean;
|
|
15
|
-
get backCameraDeviceId(): string;
|
|
16
|
-
get frontCameraDeviceId(): string;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=MediaCapabilitiesService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediaCapabilitiesService.d.ts","sourceRoot":"","sources":["../../src/MultiParty/MediaCapabilitiesService.ts"],"names":[],"mappings":"AAYA,qBAAa,wBAAwB;IAEjC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA2B;IAClD,OAAO,CAAC,MAAM,CAAC,WAAW,CAAoC;IAE9D,OAAO,CAAC,iBAAiB,CAAyC;IAElE,OAAO,CAAC,WAAW,CAGjB;IAEF,OAAO,CAAC,kBAAkB,CAA6B;IAEvD,OAAO;WAEa,WAAW,IAAI,OAAO,CAAC,wBAAwB,CAAC;YAatD,IAAI;IAUX,SAAS,IAAI,OAAO;IAIpB,aAAa,IAAI,OAAO;IAQxB,SAAS,IAAI,OAAO;IAId,iBAAiB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAchE,IAAW,mBAAmB,IAAI,OAAO,CAExC;IAED,IAAW,kBAAkB,IAAI,MAAM,CAEtC;IAED,IAAW,mBAAmB,IAAI,MAAM,CAEvC;CACJ"}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.MediaCapabilitiesService = void 0;
|
|
40
|
-
var ts_environment_detect_1 = require("@techsee/techsee-common/lib/helpers/ts-environment-detect");
|
|
41
|
-
var MediaTracer_1 = require("./MediaTracer");
|
|
42
|
-
var DetectWebRtcService_1 = require("./DetectWebRtcService");
|
|
43
|
-
var trace = (0, MediaTracer_1.getMediaTracer)('MediaCapabilitiesService');
|
|
44
|
-
var MediaCapabilitiesService = (function () {
|
|
45
|
-
function MediaCapabilitiesService() {
|
|
46
|
-
this.webRtcSupportInfo = DetectWebRtcService_1.defaultWebRtcResult;
|
|
47
|
-
this.devicesList = {
|
|
48
|
-
video: [],
|
|
49
|
-
audio: []
|
|
50
|
-
};
|
|
51
|
-
this.environmentService = new ts_environment_detect_1.TsEnvironmentDetect();
|
|
52
|
-
}
|
|
53
|
-
MediaCapabilitiesService.getInstance = function () {
|
|
54
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
55
|
-
return __generator(this, function (_a) {
|
|
56
|
-
switch (_a.label) {
|
|
57
|
-
case 0: return [4, this.initPromise];
|
|
58
|
-
case 1:
|
|
59
|
-
_a.sent();
|
|
60
|
-
if (!!this.instance) return [3, 3];
|
|
61
|
-
this.instance = new MediaCapabilitiesService();
|
|
62
|
-
this.initPromise = this.instance.init();
|
|
63
|
-
return [4, this.initPromise];
|
|
64
|
-
case 2:
|
|
65
|
-
_a.sent();
|
|
66
|
-
_a.label = 3;
|
|
67
|
-
case 3: return [2, this.instance];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
MediaCapabilitiesService.prototype.init = function () {
|
|
73
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
74
|
-
var detectWebRtcService;
|
|
75
|
-
return __generator(this, function (_a) {
|
|
76
|
-
switch (_a.label) {
|
|
77
|
-
case 0: return [4, DetectWebRtcService_1.DetectWebRtcService.get()];
|
|
78
|
-
case 1:
|
|
79
|
-
detectWebRtcService = _a.sent();
|
|
80
|
-
this.webRtcSupportInfo = detectWebRtcService.getWebRtcInfo();
|
|
81
|
-
return [4, this.updateDevicesList()];
|
|
82
|
-
case 2:
|
|
83
|
-
_a.sent();
|
|
84
|
-
trace.info('initialize media capabilities helper successfully');
|
|
85
|
-
return [2];
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
MediaCapabilitiesService.prototype.hasCamera = function () {
|
|
91
|
-
return this.devicesList.video.length > 0 && this.webRtcSupportInfo.isGetUserMediaSupported;
|
|
92
|
-
};
|
|
93
|
-
MediaCapabilitiesService.prototype.hasMicrophone = function () {
|
|
94
|
-
var userMediaSupported = this.webRtcSupportInfo.isGetUserMediaSupported;
|
|
95
|
-
return this.environmentService.isIOS()
|
|
96
|
-
? userMediaSupported
|
|
97
|
-
: this.devicesList.audio.length > 0 && userMediaSupported;
|
|
98
|
-
};
|
|
99
|
-
MediaCapabilitiesService.prototype.hasWebRTC = function () {
|
|
100
|
-
return this.webRtcSupportInfo.isWebRTCSupported;
|
|
101
|
-
};
|
|
102
|
-
MediaCapabilitiesService.prototype.updateDevicesList = function (reverse) {
|
|
103
|
-
var _a;
|
|
104
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
105
|
-
var localDevicesList, _b;
|
|
106
|
-
return __generator(this, function (_c) {
|
|
107
|
-
switch (_c.label) {
|
|
108
|
-
case 0:
|
|
109
|
-
if (!this.webRtcSupportInfo.isWebRTCSupported) return [3, 2];
|
|
110
|
-
return [4, ((_a = navigator === null || navigator === void 0 ? void 0 : navigator.mediaDevices) === null || _a === void 0 ? void 0 : _a.enumerateDevices())];
|
|
111
|
-
case 1:
|
|
112
|
-
_b = (_c.sent()) || [];
|
|
113
|
-
return [3, 3];
|
|
114
|
-
case 2:
|
|
115
|
-
_b = [];
|
|
116
|
-
_c.label = 3;
|
|
117
|
-
case 3:
|
|
118
|
-
localDevicesList = _b;
|
|
119
|
-
this.devicesList = {
|
|
120
|
-
video: localDevicesList.filter(function (device) { return device.kind.toLowerCase() === 'videoinput'; }),
|
|
121
|
-
audio: localDevicesList.filter(function (device) { return device.kind.toLowerCase() === 'audioinput'; })
|
|
122
|
-
};
|
|
123
|
-
if (reverse) {
|
|
124
|
-
this.devicesList.video.reverse();
|
|
125
|
-
}
|
|
126
|
-
return [2];
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
Object.defineProperty(MediaCapabilitiesService.prototype, "supportSwitchCamera", {
|
|
132
|
-
get: function () {
|
|
133
|
-
return this.devicesList.video.length > 1 && !this.environmentService.isDesktop();
|
|
134
|
-
},
|
|
135
|
-
enumerable: false,
|
|
136
|
-
configurable: true
|
|
137
|
-
});
|
|
138
|
-
Object.defineProperty(MediaCapabilitiesService.prototype, "backCameraDeviceId", {
|
|
139
|
-
get: function () {
|
|
140
|
-
var _a;
|
|
141
|
-
return ((_a = this.devicesList.video[this.devicesList.video.length - 1]) === null || _a === void 0 ? void 0 : _a.deviceId) || '';
|
|
142
|
-
},
|
|
143
|
-
enumerable: false,
|
|
144
|
-
configurable: true
|
|
145
|
-
});
|
|
146
|
-
Object.defineProperty(MediaCapabilitiesService.prototype, "frontCameraDeviceId", {
|
|
147
|
-
get: function () {
|
|
148
|
-
var _a;
|
|
149
|
-
return ((_a = this.devicesList.video[0]) === null || _a === void 0 ? void 0 : _a.deviceId) || '';
|
|
150
|
-
},
|
|
151
|
-
enumerable: false,
|
|
152
|
-
configurable: true
|
|
153
|
-
});
|
|
154
|
-
MediaCapabilitiesService.initPromise = Promise.resolve();
|
|
155
|
-
return MediaCapabilitiesService;
|
|
156
|
-
}());
|
|
157
|
-
exports.MediaCapabilitiesService = MediaCapabilitiesService;
|
|
158
|
-
//# sourceMappingURL=MediaCapabilitiesService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediaCapabilitiesService.js","sourceRoot":"","sources":["../../src/MultiParty/MediaCapabilitiesService.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const checkIsMobile: () => boolean;
|
|
2
|
-
export declare const checkWebRtc: () => Promise<boolean>;
|
|
3
|
-
export declare function checkVideoCapabilities(): Promise<boolean>;
|
|
4
|
-
export declare function checkAudioCapabilities(): Promise<boolean>;
|
|
5
|
-
export declare function checkSupportSwitchCamera(): Promise<boolean>;
|
|
6
|
-
//# sourceMappingURL=MediaCapabilitiesUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediaCapabilitiesUtils.d.ts","sourceRoot":"","sources":["../../src/MultiParty/MediaCapabilitiesUtils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,QAAO,OAIhC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAa,QAAQ,OAAO,CAQnD,CAAC;AAEF,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,OAAO,CAAC,CAQ/D;AAED,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,OAAO,CAAC,CAQ/D;AAED,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,OAAO,CAAC,CAQjE"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.checkSupportSwitchCamera = exports.checkAudioCapabilities = exports.checkVideoCapabilities = exports.checkWebRtc = exports.checkIsMobile = void 0;
|
|
40
|
-
var ts_environment_detect_1 = require("@techsee/techsee-common/lib/helpers/ts-environment-detect");
|
|
41
|
-
var MediaTracer_1 = require("./MediaTracer");
|
|
42
|
-
var MediaCapabilitiesService_1 = require("./MediaCapabilitiesService");
|
|
43
|
-
var trace = (0, MediaTracer_1.getMediaTracer)('MediaCapabilitiesUtils');
|
|
44
|
-
var checkIsMobile = function () {
|
|
45
|
-
var environmentService = new ts_environment_detect_1.TsEnvironmentDetect();
|
|
46
|
-
return environmentService.isMobile();
|
|
47
|
-
};
|
|
48
|
-
exports.checkIsMobile = checkIsMobile;
|
|
49
|
-
var checkWebRtc = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
|
-
var err_1;
|
|
51
|
-
return __generator(this, function (_a) {
|
|
52
|
-
switch (_a.label) {
|
|
53
|
-
case 0:
|
|
54
|
-
_a.trys.push([0, 2, , 3]);
|
|
55
|
-
return [4, MediaCapabilitiesService_1.MediaCapabilitiesService.getInstance()];
|
|
56
|
-
case 1: return [2, (_a.sent()).hasWebRTC()];
|
|
57
|
-
case 2:
|
|
58
|
-
err_1 = _a.sent();
|
|
59
|
-
trace.error(JSON.stringify(err_1));
|
|
60
|
-
return [3, 3];
|
|
61
|
-
case 3: return [2, false];
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}); };
|
|
65
|
-
exports.checkWebRtc = checkWebRtc;
|
|
66
|
-
function checkVideoCapabilities() {
|
|
67
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
-
var err_2;
|
|
69
|
-
return __generator(this, function (_a) {
|
|
70
|
-
switch (_a.label) {
|
|
71
|
-
case 0:
|
|
72
|
-
_a.trys.push([0, 2, , 3]);
|
|
73
|
-
return [4, MediaCapabilitiesService_1.MediaCapabilitiesService.getInstance()];
|
|
74
|
-
case 1: return [2, (_a.sent()).hasCamera()];
|
|
75
|
-
case 2:
|
|
76
|
-
err_2 = _a.sent();
|
|
77
|
-
trace.error(JSON.stringify(err_2));
|
|
78
|
-
return [3, 3];
|
|
79
|
-
case 3: return [2, false];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
exports.checkVideoCapabilities = checkVideoCapabilities;
|
|
85
|
-
function checkAudioCapabilities() {
|
|
86
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
-
var err_3;
|
|
88
|
-
return __generator(this, function (_a) {
|
|
89
|
-
switch (_a.label) {
|
|
90
|
-
case 0:
|
|
91
|
-
_a.trys.push([0, 2, , 3]);
|
|
92
|
-
return [4, MediaCapabilitiesService_1.MediaCapabilitiesService.getInstance()];
|
|
93
|
-
case 1: return [2, (_a.sent()).hasMicrophone()];
|
|
94
|
-
case 2:
|
|
95
|
-
err_3 = _a.sent();
|
|
96
|
-
trace.error(JSON.stringify(err_3));
|
|
97
|
-
return [3, 3];
|
|
98
|
-
case 3: return [2, false];
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
exports.checkAudioCapabilities = checkAudioCapabilities;
|
|
104
|
-
function checkSupportSwitchCamera() {
|
|
105
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
-
var err_4;
|
|
107
|
-
return __generator(this, function (_a) {
|
|
108
|
-
switch (_a.label) {
|
|
109
|
-
case 0:
|
|
110
|
-
_a.trys.push([0, 2, , 3]);
|
|
111
|
-
return [4, MediaCapabilitiesService_1.MediaCapabilitiesService.getInstance()];
|
|
112
|
-
case 1: return [2, (_a.sent()).supportSwitchCamera];
|
|
113
|
-
case 2:
|
|
114
|
-
err_4 = _a.sent();
|
|
115
|
-
trace.error(JSON.stringify(err_4));
|
|
116
|
-
return [3, 3];
|
|
117
|
-
case 3: return [2, false];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
exports.checkSupportSwitchCamera = checkSupportSwitchCamera;
|
|
123
|
-
//# sourceMappingURL=MediaCapabilitiesUtils.js.map
|