@stormstreaming/stormstreamer 0.9.0-beta.8 → 0.9.0-beta.9
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/amd/index.js +24 -24
- package/dist/cjs/index.js +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/iife/index.js +3 -3
- package/dist/types/index.amd.d.ts +1 -0
- package/dist/types/index.cjs.d.ts +1 -0
- package/dist/types/index.esm.d.ts +1 -0
- package/dist/types/index.umd.d.ts +1 -0
- package/dist/umd/index.js +3 -3
- package/package.json +1 -1
package/dist/amd/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* contact@stormstreaming.com
|
|
5
5
|
* https://stormstreaming.com
|
|
6
6
|
*
|
|
7
|
-
* Version: 0.9.0-beta.
|
|
8
|
-
* Version: 1/7/2025, 3:
|
|
7
|
+
* Version: 0.9.0-beta.9
|
|
8
|
+
* Version: 1/7/2025, 3:11:23 PM
|
|
9
9
|
*
|
|
10
10
|
* LEGAL NOTICE:
|
|
11
11
|
* This software is subject to the terms and conditions defined in
|
|
@@ -2589,13 +2589,13 @@
|
|
|
2589
2589
|
StreamerState["UNKNOWN"] = "UNKNOWN";
|
|
2590
2590
|
})(exports.StreamerState || (exports.StreamerState = {}));
|
|
2591
2591
|
|
|
2592
|
-
|
|
2592
|
+
exports.DeviceState = void 0;
|
|
2593
2593
|
(function (DeviceState) {
|
|
2594
2594
|
DeviceState["NOT_INITIALIZED"] = "NOT_INITIALIZED";
|
|
2595
2595
|
DeviceState["ENABLED"] = "ENABLED";
|
|
2596
2596
|
DeviceState["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
2597
2597
|
DeviceState["NOT_FOUND"] = "NOT_FOUND";
|
|
2598
|
-
})(DeviceState || (DeviceState = {}));
|
|
2598
|
+
})(exports.DeviceState || (exports.DeviceState = {}));
|
|
2599
2599
|
|
|
2600
2600
|
class PlaybackController {
|
|
2601
2601
|
constructor(main) {
|
|
@@ -2630,8 +2630,8 @@
|
|
|
2630
2630
|
this._restartTimerMaxCount = 5;
|
|
2631
2631
|
this._publishState = exports.PublishState.NOT_INITIALIZED;
|
|
2632
2632
|
this._inputDeviceState = exports.StreamerState.NOT_INITIALIZED;
|
|
2633
|
-
this._cameraState = DeviceState.NOT_INITIALIZED;
|
|
2634
|
-
this._microphoneState = DeviceState.NOT_INITIALIZED;
|
|
2633
|
+
this._cameraState = exports.DeviceState.NOT_INITIALIZED;
|
|
2634
|
+
this._microphoneState = exports.DeviceState.NOT_INITIALIZED;
|
|
2635
2635
|
this.onServerDisconnect = () => {};
|
|
2636
2636
|
this.onStreamKeyTaken = () => {
|
|
2637
2637
|
if (this._restartTimer != null) {
|
|
@@ -3028,23 +3028,23 @@
|
|
|
3028
3028
|
this._main.dispatchEvent("cameraAccessDenied", {
|
|
3029
3029
|
ref: this._main
|
|
3030
3030
|
});
|
|
3031
|
-
this._cameraState = DeviceState.ACCESS_DENIED;
|
|
3031
|
+
this._cameraState = exports.DeviceState.ACCESS_DENIED;
|
|
3032
3032
|
} else if (!deviceAccess.camera.available) {
|
|
3033
3033
|
this._main.dispatchEvent("noCameraFound", {
|
|
3034
3034
|
ref: this._main
|
|
3035
3035
|
});
|
|
3036
|
-
this._cameraState = DeviceState.NOT_FOUND;
|
|
3036
|
+
this._cameraState = exports.DeviceState.NOT_FOUND;
|
|
3037
3037
|
}
|
|
3038
3038
|
if (!deviceAccess.microphone.allowed) {
|
|
3039
3039
|
this._main.dispatchEvent("microphoneAccessDenied", {
|
|
3040
3040
|
ref: this._main
|
|
3041
3041
|
});
|
|
3042
|
-
this._microphoneState = DeviceState.ACCESS_DENIED;
|
|
3042
|
+
this._microphoneState = exports.DeviceState.ACCESS_DENIED;
|
|
3043
3043
|
} else if (!deviceAccess.microphone.available) {
|
|
3044
3044
|
this._main.dispatchEvent("noMicrophoneFound", {
|
|
3045
3045
|
ref: this._main
|
|
3046
3046
|
});
|
|
3047
|
-
this._microphoneState = DeviceState.NOT_FOUND;
|
|
3047
|
+
this._microphoneState = exports.DeviceState.NOT_FOUND;
|
|
3048
3048
|
}
|
|
3049
3049
|
}
|
|
3050
3050
|
const devices = yield navigator.mediaDevices.enumerateDevices();
|
|
@@ -3100,7 +3100,7 @@
|
|
|
3100
3100
|
var _a, _b;
|
|
3101
3101
|
this._selectedCamera = null;
|
|
3102
3102
|
this.setInputDeviceState(exports.StreamerState.UPDATING);
|
|
3103
|
-
this._cameraState = DeviceState.NOT_INITIALIZED;
|
|
3103
|
+
this._cameraState = exports.DeviceState.NOT_INITIALIZED;
|
|
3104
3104
|
const streamKey = (_a = this._main.getConfigManager()) === null || _a === void 0 ? void 0 : _a.getStreamData().streamKey;
|
|
3105
3105
|
const wasPublished = this._publishState === exports.PublishState.PUBLISHED;
|
|
3106
3106
|
for (let i = 0; i < this._cameraList.getSize(); i++) {
|
|
@@ -3132,7 +3132,7 @@
|
|
|
3132
3132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3133
3133
|
this._selectedMicrophone = null;
|
|
3134
3134
|
this.setInputDeviceState(exports.StreamerState.UPDATING);
|
|
3135
|
-
this._microphoneState = DeviceState.NOT_INITIALIZED;
|
|
3135
|
+
this._microphoneState = exports.DeviceState.NOT_INITIALIZED;
|
|
3136
3136
|
this._logger.info(this, "Selecting microphone: " + micID);
|
|
3137
3137
|
const streamKey = (_a = this._main.getConfigManager()) === null || _a === void 0 ? void 0 : _a.getStreamData().streamKey;
|
|
3138
3138
|
const wasPublished = this._publishState === exports.PublishState.PUBLISHED;
|
|
@@ -3262,14 +3262,14 @@
|
|
|
3262
3262
|
if (this._cameraList.get(i).getID() === savedCameraID) {
|
|
3263
3263
|
this._selectedCamera = this._cameraList.get(i);
|
|
3264
3264
|
this._selectedCamera.setSelected(true);
|
|
3265
|
-
this._cameraState = DeviceState.ENABLED;
|
|
3265
|
+
this._cameraState = exports.DeviceState.ENABLED;
|
|
3266
3266
|
found = true;
|
|
3267
3267
|
this._constraints.video.deviceId = this._selectedCamera.getID();
|
|
3268
3268
|
break;
|
|
3269
3269
|
}
|
|
3270
3270
|
}
|
|
3271
3271
|
if (!found) {
|
|
3272
|
-
this._cameraState = DeviceState.NOT_FOUND;
|
|
3272
|
+
this._cameraState = exports.DeviceState.NOT_FOUND;
|
|
3273
3273
|
this._main.dispatchEvent("savedCameraNotFound", {
|
|
3274
3274
|
ref: this._main,
|
|
3275
3275
|
savedDeviceID: savedCameraID
|
|
@@ -3287,9 +3287,9 @@
|
|
|
3287
3287
|
this._selectedCamera.setSelected(true);
|
|
3288
3288
|
(_d = this._main.getStorageManager()) === null || _d === void 0 ? void 0 : _d.saveField("cameraID", this._selectedCamera.getID());
|
|
3289
3289
|
this._constraints.video.deviceId = this._selectedCamera.getID();
|
|
3290
|
-
this._cameraState = DeviceState.ENABLED;
|
|
3290
|
+
this._cameraState = exports.DeviceState.ENABLED;
|
|
3291
3291
|
} else {
|
|
3292
|
-
this._cameraState = DeviceState.NOT_FOUND;
|
|
3292
|
+
this._cameraState = exports.DeviceState.NOT_FOUND;
|
|
3293
3293
|
return null;
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
@@ -3314,7 +3314,7 @@
|
|
|
3314
3314
|
if (this._microphoneList.get(i).getID() === savedMicID) {
|
|
3315
3315
|
this._selectedMicrophone = this._microphoneList.get(i);
|
|
3316
3316
|
found = true;
|
|
3317
|
-
this._microphoneState = DeviceState.ENABLED;
|
|
3317
|
+
this._microphoneState = exports.DeviceState.ENABLED;
|
|
3318
3318
|
break;
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
@@ -3323,7 +3323,7 @@
|
|
|
3323
3323
|
ref: this._main,
|
|
3324
3324
|
savedDeviceID: savedMicID
|
|
3325
3325
|
});
|
|
3326
|
-
this._microphoneState = DeviceState.NOT_FOUND;
|
|
3326
|
+
this._microphoneState = exports.DeviceState.NOT_FOUND;
|
|
3327
3327
|
return null;
|
|
3328
3328
|
}
|
|
3329
3329
|
}
|
|
@@ -3334,10 +3334,10 @@
|
|
|
3334
3334
|
});
|
|
3335
3335
|
if ((_c = this._main.getConfigManager()) === null || _c === void 0 ? void 0 : _c.getSettingsData().getIfForceSelection()) {
|
|
3336
3336
|
this._selectedMicrophone = this._microphoneList.get(0);
|
|
3337
|
-
this._microphoneState = DeviceState.ENABLED;
|
|
3337
|
+
this._microphoneState = exports.DeviceState.ENABLED;
|
|
3338
3338
|
(_d = this._main.getStorageManager()) === null || _d === void 0 ? void 0 : _d.saveField("microphoneID", this._selectedMicrophone.getID());
|
|
3339
3339
|
} else {
|
|
3340
|
-
this._microphoneState = DeviceState.NOT_FOUND;
|
|
3340
|
+
this._microphoneState = exports.DeviceState.NOT_FOUND;
|
|
3341
3341
|
return null;
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
@@ -3850,8 +3850,8 @@
|
|
|
3850
3850
|
constructor(streamConfig, autoInitialize = false) {
|
|
3851
3851
|
super();
|
|
3852
3852
|
this.DEV_MODE = true;
|
|
3853
|
-
this.STREAMER_VERSION = "0.9.0-beta.
|
|
3854
|
-
this.COMPILE_DATE = "1/7/2025, 3:
|
|
3853
|
+
this.STREAMER_VERSION = "0.9.0-beta.9";
|
|
3854
|
+
this.COMPILE_DATE = "1/7/2025, 3:11:22 PM";
|
|
3855
3855
|
this.STREAMER_BRANCH = "Experimental";
|
|
3856
3856
|
this.STREAMER_PROTOCOL_VERSION = 1;
|
|
3857
3857
|
this._initialized = false;
|
|
@@ -4014,11 +4014,11 @@
|
|
|
4014
4014
|
}
|
|
4015
4015
|
getCamerState() {
|
|
4016
4016
|
var _a, _b;
|
|
4017
|
-
return (_b = (_a = this._playbackController) === null || _a === void 0 ? void 0 : _a.getCamerState()) !== null && _b !== void 0 ? _b : DeviceState.NOT_INITIALIZED;
|
|
4017
|
+
return (_b = (_a = this._playbackController) === null || _a === void 0 ? void 0 : _a.getCamerState()) !== null && _b !== void 0 ? _b : exports.DeviceState.NOT_INITIALIZED;
|
|
4018
4018
|
}
|
|
4019
4019
|
getMicrophoneState() {
|
|
4020
4020
|
var _a, _b;
|
|
4021
|
-
return (_b = (_a = this._playbackController) === null || _a === void 0 ? void 0 : _a.getMicrophoneState()) !== null && _b !== void 0 ? _b : DeviceState.NOT_INITIALIZED;
|
|
4021
|
+
return (_b = (_a = this._playbackController) === null || _a === void 0 ? void 0 : _a.getMicrophoneState()) !== null && _b !== void 0 ? _b : exports.DeviceState.NOT_INITIALIZED;
|
|
4022
4022
|
}
|
|
4023
4023
|
clearSavedDevices() {
|
|
4024
4024
|
var _a;
|