camstreamerlib 4.0.31-a6e0db8 → 4.0.31-e0ed433
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/cjs/CamSwitcherAPI.js +4 -4
- package/esm/CamSwitcherAPI.js +4 -4
- package/package.json +1 -1
package/cjs/CamSwitcherAPI.js
CHANGED
|
@@ -205,14 +205,14 @@ class CamSwitcherAPI extends BasicAPI_1.BasicAPI {
|
|
|
205
205
|
const saveData = await this.getParamFromCameraAndJSONParse(CSW_PARAM_NAMES.SETTINGS, options);
|
|
206
206
|
if ((0, utils_1.isNullish)(saveData.video)) {
|
|
207
207
|
return CamSwitcherAPI_1.cameraOptionsSchema.parse({
|
|
208
|
-
audioSampleRate: saveData.audio
|
|
209
|
-
audioChannelCount: saveData.audio
|
|
208
|
+
audioSampleRate: saveData.audio?.sampleRate,
|
|
209
|
+
audioChannelCount: saveData.audio?.channelCount,
|
|
210
210
|
keyboard: saveData.keyboard,
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
const settings = {
|
|
214
|
-
audioSampleRate: saveData.audio
|
|
215
|
-
audioChannelCount: saveData.audio
|
|
214
|
+
audioSampleRate: saveData.audio?.sampleRate,
|
|
215
|
+
audioChannelCount: saveData.audio?.channelCount,
|
|
216
216
|
keyboard: saveData.keyboard,
|
|
217
217
|
fps: saveData.video.fps,
|
|
218
218
|
resolution: saveData.video.resolution,
|
package/esm/CamSwitcherAPI.js
CHANGED
|
@@ -202,14 +202,14 @@ export class CamSwitcherAPI extends BasicAPI {
|
|
|
202
202
|
const saveData = await this.getParamFromCameraAndJSONParse(CSW_PARAM_NAMES.SETTINGS, options);
|
|
203
203
|
if (isNullish(saveData.video)) {
|
|
204
204
|
return cameraOptionsSchema.parse({
|
|
205
|
-
audioSampleRate: saveData.audio
|
|
206
|
-
audioChannelCount: saveData.audio
|
|
205
|
+
audioSampleRate: saveData.audio?.sampleRate,
|
|
206
|
+
audioChannelCount: saveData.audio?.channelCount,
|
|
207
207
|
keyboard: saveData.keyboard,
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
const settings = {
|
|
211
|
-
audioSampleRate: saveData.audio
|
|
212
|
-
audioChannelCount: saveData.audio
|
|
211
|
+
audioSampleRate: saveData.audio?.sampleRate,
|
|
212
|
+
audioChannelCount: saveData.audio?.channelCount,
|
|
213
213
|
keyboard: saveData.keyboard,
|
|
214
214
|
fps: saveData.video.fps,
|
|
215
215
|
resolution: saveData.video.resolution,
|