@stream-io/video-client 0.2.1 → 0.2.3
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/CHANGELOG.md +14 -0
- package/dist/index.browser.es.js +8 -5
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +8 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -5
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +7 -4
- package/dist/src/gen/coordinator/index.d.ts +25 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/Call.ts +9 -5
- package/src/gen/coordinator/index.ts +25 -0
package/dist/index.cjs.js
CHANGED
|
@@ -10499,9 +10499,12 @@ class Call {
|
|
|
10499
10499
|
});
|
|
10500
10500
|
/**
|
|
10501
10501
|
* Starts the livestreaming of the call.
|
|
10502
|
+
*
|
|
10503
|
+
* @param data the request data.
|
|
10504
|
+
* @param params the request params.
|
|
10502
10505
|
*/
|
|
10503
|
-
this.goLive = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
10504
|
-
return this.streamClient.post(`${this.streamClientBasePath}/go_live`,
|
|
10506
|
+
this.goLive = (data = {}, params) => __awaiter(this, void 0, void 0, function* () {
|
|
10507
|
+
return this.streamClient.post(`${this.streamClientBasePath}/go_live`, data, params);
|
|
10505
10508
|
});
|
|
10506
10509
|
/**
|
|
10507
10510
|
* Stops the livestreaming of the call.
|
|
@@ -10512,13 +10515,13 @@ class Call {
|
|
|
10512
10515
|
/**
|
|
10513
10516
|
* Starts the broadcasting of the call.
|
|
10514
10517
|
*/
|
|
10515
|
-
this.
|
|
10518
|
+
this.startHLS = () => __awaiter(this, void 0, void 0, function* () {
|
|
10516
10519
|
return this.streamClient.post(`${this.streamClientBasePath}/start_broadcasting`, {});
|
|
10517
10520
|
});
|
|
10518
10521
|
/**
|
|
10519
10522
|
* Stops the broadcasting of the call.
|
|
10520
10523
|
*/
|
|
10521
|
-
this.
|
|
10524
|
+
this.stopHLS = () => __awaiter(this, void 0, void 0, function* () {
|
|
10522
10525
|
return this.streamClient.post(`${this.streamClientBasePath}/stop_broadcasting`, {});
|
|
10523
10526
|
});
|
|
10524
10527
|
/**
|
|
@@ -11901,7 +11904,7 @@ class WSConnectionFallback {
|
|
|
11901
11904
|
}
|
|
11902
11905
|
}
|
|
11903
11906
|
|
|
11904
|
-
const version = '0.2.
|
|
11907
|
+
const version = '0.2.3';
|
|
11905
11908
|
|
|
11906
11909
|
const logger = getLogger(['location']);
|
|
11907
11910
|
const HINT_URL = `https://hint.stream-io-video.com/`;
|