@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/src/Call.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SfuEventKinds, SfuEventListener } from './rtc';
|
|
2
2
|
import { TrackType } from './gen/video/sfu/models/models';
|
|
3
3
|
import { CallState } from './store';
|
|
4
|
-
import { AcceptCallResponse, BlockUserResponse, EndCallResponse, GetCallResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveResponse, ListRecordingsResponse, MuteUsersResponse, PinRequest, PinResponse, QueryMembersRequest, QueryMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendEventResponse, SendReactionRequest, SendReactionResponse, StartBroadcastingResponse, StartRecordingResponse, StopBroadcastingResponse, StopLiveResponse, StopRecordingResponse, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from './gen/coordinator';
|
|
4
|
+
import { AcceptCallResponse, BlockUserResponse, EndCallResponse, GetCallResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListRecordingsResponse, MuteUsersResponse, PinRequest, PinResponse, QueryMembersRequest, QueryMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendEventResponse, SendReactionRequest, SendReactionResponse, StartBroadcastingResponse, StartRecordingResponse, StopBroadcastingResponse, StopLiveResponse, StopRecordingResponse, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from './gen/coordinator';
|
|
5
5
|
import { CallConstructor, CallLeaveOptions, DebounceType, JoinCallData, PublishOptions, SubscriptionChanges } from './types';
|
|
6
6
|
import { ViewportTracker } from './helpers/ViewportTracker';
|
|
7
7
|
import { PermissionsContext } from './permissions';
|
|
@@ -376,8 +376,11 @@ export declare class Call {
|
|
|
376
376
|
updateUserPermissions: (data: UpdateUserPermissionsRequest) => Promise<UpdateUserPermissionsResponse>;
|
|
377
377
|
/**
|
|
378
378
|
* Starts the livestreaming of the call.
|
|
379
|
+
*
|
|
380
|
+
* @param data the request data.
|
|
381
|
+
* @param params the request params.
|
|
379
382
|
*/
|
|
380
|
-
goLive: (params?: {
|
|
383
|
+
goLive: (data?: GoLiveRequest, params?: {
|
|
381
384
|
notify?: boolean;
|
|
382
385
|
}) => Promise<GoLiveResponse>;
|
|
383
386
|
/**
|
|
@@ -387,11 +390,11 @@ export declare class Call {
|
|
|
387
390
|
/**
|
|
388
391
|
* Starts the broadcasting of the call.
|
|
389
392
|
*/
|
|
390
|
-
|
|
393
|
+
startHLS: () => Promise<StartBroadcastingResponse>;
|
|
391
394
|
/**
|
|
392
395
|
* Stops the broadcasting of the call.
|
|
393
396
|
*/
|
|
394
|
-
|
|
397
|
+
stopHLS: () => Promise<StopBroadcastingResponse>;
|
|
395
398
|
/**
|
|
396
399
|
* Updates the call settings or custom data.
|
|
397
400
|
*
|
|
@@ -2429,6 +2429,31 @@ export interface GetOrCreateCallResponse {
|
|
|
2429
2429
|
*/
|
|
2430
2430
|
own_capabilities: Array<OwnCapability>;
|
|
2431
2431
|
}
|
|
2432
|
+
/**
|
|
2433
|
+
*
|
|
2434
|
+
* @export
|
|
2435
|
+
* @interface GoLiveRequest
|
|
2436
|
+
*/
|
|
2437
|
+
export interface GoLiveRequest {
|
|
2438
|
+
/**
|
|
2439
|
+
*
|
|
2440
|
+
* @type {boolean}
|
|
2441
|
+
* @memberof GoLiveRequest
|
|
2442
|
+
*/
|
|
2443
|
+
start_hls?: boolean;
|
|
2444
|
+
/**
|
|
2445
|
+
*
|
|
2446
|
+
* @type {boolean}
|
|
2447
|
+
* @memberof GoLiveRequest
|
|
2448
|
+
*/
|
|
2449
|
+
start_recording?: boolean;
|
|
2450
|
+
/**
|
|
2451
|
+
*
|
|
2452
|
+
* @type {boolean}
|
|
2453
|
+
* @memberof GoLiveRequest
|
|
2454
|
+
*/
|
|
2455
|
+
start_transcription?: boolean;
|
|
2456
|
+
}
|
|
2432
2457
|
/**
|
|
2433
2458
|
*
|
|
2434
2459
|
* @export
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.2.
|
|
1
|
+
export declare const version = "0.2.3";
|
package/package.json
CHANGED
package/src/Call.ts
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
GetCallResponse,
|
|
29
29
|
GetOrCreateCallRequest,
|
|
30
30
|
GetOrCreateCallResponse,
|
|
31
|
+
GoLiveRequest,
|
|
31
32
|
GoLiveResponse,
|
|
32
33
|
ListRecordingsResponse,
|
|
33
34
|
MuteUsersRequest,
|
|
@@ -1461,11 +1462,14 @@ export class Call {
|
|
|
1461
1462
|
|
|
1462
1463
|
/**
|
|
1463
1464
|
* Starts the livestreaming of the call.
|
|
1465
|
+
*
|
|
1466
|
+
* @param data the request data.
|
|
1467
|
+
* @param params the request params.
|
|
1464
1468
|
*/
|
|
1465
|
-
goLive = async (params?: { notify?: boolean }) => {
|
|
1466
|
-
return this.streamClient.post<GoLiveResponse>(
|
|
1469
|
+
goLive = async (data: GoLiveRequest = {}, params?: { notify?: boolean }) => {
|
|
1470
|
+
return this.streamClient.post<GoLiveResponse, GoLiveRequest>(
|
|
1467
1471
|
`${this.streamClientBasePath}/go_live`,
|
|
1468
|
-
|
|
1472
|
+
data,
|
|
1469
1473
|
params,
|
|
1470
1474
|
);
|
|
1471
1475
|
};
|
|
@@ -1483,7 +1487,7 @@ export class Call {
|
|
|
1483
1487
|
/**
|
|
1484
1488
|
* Starts the broadcasting of the call.
|
|
1485
1489
|
*/
|
|
1486
|
-
|
|
1490
|
+
startHLS = async () => {
|
|
1487
1491
|
return this.streamClient.post<StartBroadcastingResponse>(
|
|
1488
1492
|
`${this.streamClientBasePath}/start_broadcasting`,
|
|
1489
1493
|
{},
|
|
@@ -1493,7 +1497,7 @@ export class Call {
|
|
|
1493
1497
|
/**
|
|
1494
1498
|
* Stops the broadcasting of the call.
|
|
1495
1499
|
*/
|
|
1496
|
-
|
|
1500
|
+
stopHLS = async () => {
|
|
1497
1501
|
return this.streamClient.post<StopBroadcastingResponse>(
|
|
1498
1502
|
`${this.streamClientBasePath}/stop_broadcasting`,
|
|
1499
1503
|
{},
|
|
@@ -2412,6 +2412,31 @@ export interface GetOrCreateCallResponse {
|
|
|
2412
2412
|
*/
|
|
2413
2413
|
own_capabilities: Array<OwnCapability>;
|
|
2414
2414
|
}
|
|
2415
|
+
/**
|
|
2416
|
+
*
|
|
2417
|
+
* @export
|
|
2418
|
+
* @interface GoLiveRequest
|
|
2419
|
+
*/
|
|
2420
|
+
export interface GoLiveRequest {
|
|
2421
|
+
/**
|
|
2422
|
+
*
|
|
2423
|
+
* @type {boolean}
|
|
2424
|
+
* @memberof GoLiveRequest
|
|
2425
|
+
*/
|
|
2426
|
+
start_hls?: boolean;
|
|
2427
|
+
/**
|
|
2428
|
+
*
|
|
2429
|
+
* @type {boolean}
|
|
2430
|
+
* @memberof GoLiveRequest
|
|
2431
|
+
*/
|
|
2432
|
+
start_recording?: boolean;
|
|
2433
|
+
/**
|
|
2434
|
+
*
|
|
2435
|
+
* @type {boolean}
|
|
2436
|
+
* @memberof GoLiveRequest
|
|
2437
|
+
*/
|
|
2438
|
+
start_transcription?: boolean;
|
|
2439
|
+
}
|
|
2415
2440
|
/**
|
|
2416
2441
|
*
|
|
2417
2442
|
* @export
|