@reactoo/watchtogether-sdk-js 2.5.67 → 2.5.68
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @reactoo/watchtogether-sdk-js
|
|
3
|
-
* @version 2.5.
|
|
3
|
+
* @version 2.5.68
|
|
4
4
|
*/
|
|
5
5
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
6
6
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -9211,7 +9211,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _mod
|
|
|
9211
9211
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9212
9212
|
|
|
9213
9213
|
"use strict";
|
|
9214
|
-
eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n getUserStream() {\n let {\n hasVideo,\n isHd,\n aDeviceId,\n vDeviceId,\n lfps,\n autoGainControl = false,\n muteAudio = false,\n muteVideo = false\n } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let fullConstraints = {\n audio: { ...(aDeviceId && {\n deviceId: {\n exact: aDeviceId\n }\n }),\n autoGainControl,\n echoCancellation
|
|
9214
|
+
eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n getUserStream() {\n let {\n hasVideo,\n isHd,\n aDeviceId,\n vDeviceId,\n lfps,\n autoGainControl = false,\n echoCancellation = true,\n noiseSuppression = true,\n channelCount = 1,\n muteAudio = false,\n muteVideo = false\n } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let fullConstraints = {\n audio: { ...(aDeviceId && {\n deviceId: {\n exact: aDeviceId\n }\n }),\n autoGainControl,\n echoCancellation,\n noiseSuppression,\n channelCount\n },\n video: { ...(vDeviceId && {\n deviceId: {\n exact: vDeviceId\n }\n }),\n facingMode: {\n ideal: \"user\"\n },\n ...(lfps ? {\n frameRate: {\n ideal: 10,\n max: 30\n }\n } : {\n frameRate: {\n ideal: 24,\n max: 30\n }\n }),\n width: {\n ideal: isHd ? 1280 : 320\n },\n height: {\n ideal: isHd ? 720 : 240\n }\n }\n };\n let audioOnlyConstraints = {\n audio: { ...(aDeviceId && {\n deviceId: {\n exact: aDeviceId\n }\n }),\n autoGainControl,\n echoCancellation: true,\n noiseSuppression: true,\n channelCount: 1\n }\n };\n return navigator.mediaDevices.getUserMedia(hasVideo ? fullConstraints : audioOnlyConstraints).then(stream => {\n if (muteAudio) {\n stream.getAudioTracks().forEach(track => track.enabled = false);\n }\n\n if (muteVideo) {\n stream.getVideoTracks().forEach(track => track.enabled = false);\n }\n\n return stream;\n });\n }\n\n});\n\n//# sourceURL=webpack://WatchTogetherSDK/./src/models/utils.js?");
|
|
9215
9215
|
|
|
9216
9216
|
/***/ }),
|
|
9217
9217
|
|