camstreamerlib 4.0.0-beta.60 → 4.0.0-beta.61
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 +5 -5
- package/esm/CamSwitcherAPI.js +5 -5
- package/package.json +1 -1
package/cjs/CamSwitcherAPI.js
CHANGED
|
@@ -84,16 +84,16 @@ class CamSwitcherAPI {
|
|
|
84
84
|
return CamSwitcherAPI_1.trackerSaveLoadSchema.parse(res.data);
|
|
85
85
|
}
|
|
86
86
|
async setStreamSaveList(data, options) {
|
|
87
|
-
await this._post(`${BASE_PATH}/streams.cgi`, data, { action: 'set' }, options);
|
|
87
|
+
await this._post(`${BASE_PATH}/streams.cgi`, JSON.stringify(data), { action: 'set' }, options);
|
|
88
88
|
}
|
|
89
89
|
async setClipSaveList(data, options) {
|
|
90
|
-
await this._post(`${BASE_PATH}/clips.cgi`, data, { action: 'set' }, options);
|
|
90
|
+
await this._post(`${BASE_PATH}/clips.cgi`, JSON.stringify(data), { action: 'set' }, options);
|
|
91
91
|
}
|
|
92
92
|
async setPlaylistSaveList(data, options) {
|
|
93
|
-
await this._post(`${BASE_PATH}/playlists.cgi`, data, { action: 'set' }, options);
|
|
93
|
+
await this._post(`${BASE_PATH}/playlists.cgi`, JSON.stringify(data), { action: 'set' }, options);
|
|
94
94
|
}
|
|
95
95
|
async setTrackerSaveList(data, options) {
|
|
96
|
-
await this._post(`${BASE_PATH}/trackers.cgi`, data, { action: 'set' }, options);
|
|
96
|
+
await this._post(`${BASE_PATH}/trackers.cgi`, JSON.stringify(data), { action: 'set' }, options);
|
|
97
97
|
}
|
|
98
98
|
async playlistSwitch(playlistName, options) {
|
|
99
99
|
await this._getJson(`${BASE_PATH}/playlist_switch.cgi`, { playlist_name: playlistName }, options);
|
|
@@ -245,7 +245,7 @@ class CamSwitcherAPI {
|
|
|
245
245
|
type: res.type ?? 'NONE',
|
|
246
246
|
streamName: res.stream_name,
|
|
247
247
|
clipName: res.clip_name,
|
|
248
|
-
storage: res.storage,
|
|
248
|
+
storage: res.storage ?? 'SD_DISK',
|
|
249
249
|
secondaryAudioLevel: res.secondary_audio_level ?? 1,
|
|
250
250
|
masterAudioLevel: res.master_audio_level ?? 1,
|
|
251
251
|
};
|
package/esm/CamSwitcherAPI.js
CHANGED
|
@@ -81,16 +81,16 @@ export class CamSwitcherAPI {
|
|
|
81
81
|
return trackerSaveLoadSchema.parse(res.data);
|
|
82
82
|
}
|
|
83
83
|
async setStreamSaveList(data, options) {
|
|
84
|
-
await this._post(`${BASE_PATH}/streams.cgi`, data, { action: 'set' }, options);
|
|
84
|
+
await this._post(`${BASE_PATH}/streams.cgi`, JSON.stringify(data), { action: 'set' }, options);
|
|
85
85
|
}
|
|
86
86
|
async setClipSaveList(data, options) {
|
|
87
|
-
await this._post(`${BASE_PATH}/clips.cgi`, data, { action: 'set' }, options);
|
|
87
|
+
await this._post(`${BASE_PATH}/clips.cgi`, JSON.stringify(data), { action: 'set' }, options);
|
|
88
88
|
}
|
|
89
89
|
async setPlaylistSaveList(data, options) {
|
|
90
|
-
await this._post(`${BASE_PATH}/playlists.cgi`, data, { action: 'set' }, options);
|
|
90
|
+
await this._post(`${BASE_PATH}/playlists.cgi`, JSON.stringify(data), { action: 'set' }, options);
|
|
91
91
|
}
|
|
92
92
|
async setTrackerSaveList(data, options) {
|
|
93
|
-
await this._post(`${BASE_PATH}/trackers.cgi`, data, { action: 'set' }, options);
|
|
93
|
+
await this._post(`${BASE_PATH}/trackers.cgi`, JSON.stringify(data), { action: 'set' }, options);
|
|
94
94
|
}
|
|
95
95
|
async playlistSwitch(playlistName, options) {
|
|
96
96
|
await this._getJson(`${BASE_PATH}/playlist_switch.cgi`, { playlist_name: playlistName }, options);
|
|
@@ -242,7 +242,7 @@ export class CamSwitcherAPI {
|
|
|
242
242
|
type: res.type ?? 'NONE',
|
|
243
243
|
streamName: res.stream_name,
|
|
244
244
|
clipName: res.clip_name,
|
|
245
|
-
storage: res.storage,
|
|
245
|
+
storage: res.storage ?? 'SD_DISK',
|
|
246
246
|
secondaryAudioLevel: res.secondary_audio_level ?? 1,
|
|
247
247
|
masterAudioLevel: res.master_audio_level ?? 1,
|
|
248
248
|
};
|