@stream-io/video-client 0.0.27 → 0.0.28
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 +7 -0
- package/dist/index.browser.es.js +4 -4
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +5 -5
- package/package.json +1 -1
- package/src/Call.ts +3 -5
package/dist/src/Call.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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, QueryMembersRequest, QueryMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse,
|
|
4
|
+
import { AcceptCallResponse, BlockUserResponse, EndCallResponse, GetCallResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveResponse, ListRecordingsResponse, MuteUsersResponse, QueryMembersRequest, QueryMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendEventResponse, SendReactionRequest, SendReactionResponse, StartBroadcastingResponse, StartRecordingResponse, StopBroadcastingResponse, StopLiveResponse, StopRecordingResponse, UnblockUserResponse, 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';
|
|
8
|
-
import { CallEventHandler, CallEventTypes, Logger
|
|
8
|
+
import { CallEventHandler, CallEventTypes, Logger } from './coordinator/connection/types';
|
|
9
9
|
/**
|
|
10
10
|
* An object representation of a `Call`.
|
|
11
11
|
*/
|
|
@@ -432,11 +432,11 @@ export declare class Call {
|
|
|
432
432
|
*/
|
|
433
433
|
queryRecordings: (callSessionId?: string) => Promise<ListRecordingsResponse>;
|
|
434
434
|
/**
|
|
435
|
-
* Sends
|
|
435
|
+
* Sends a custom event to all call participants.
|
|
436
436
|
*
|
|
437
437
|
* @param event the event to send.
|
|
438
438
|
*/
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
sendCustomEvent: (payload: {
|
|
440
|
+
[key: string]: any;
|
|
441
441
|
}) => Promise<SendEventResponse>;
|
|
442
442
|
}
|
package/package.json
CHANGED
package/src/Call.ts
CHANGED
|
@@ -1605,16 +1605,14 @@ export class Call {
|
|
|
1605
1605
|
};
|
|
1606
1606
|
|
|
1607
1607
|
/**
|
|
1608
|
-
* Sends
|
|
1608
|
+
* Sends a custom event to all call participants.
|
|
1609
1609
|
*
|
|
1610
1610
|
* @param event the event to send.
|
|
1611
1611
|
*/
|
|
1612
|
-
|
|
1613
|
-
event: SendEventRequest & { type: StreamCallEvent['type'] },
|
|
1614
|
-
) => {
|
|
1612
|
+
sendCustomEvent = async (payload: { [key: string]: any }) => {
|
|
1615
1613
|
return this.streamClient.post<SendEventResponse, SendEventRequest>(
|
|
1616
1614
|
`${this.streamClientBasePath}/event`,
|
|
1617
|
-
|
|
1615
|
+
{ custom: payload },
|
|
1618
1616
|
);
|
|
1619
1617
|
};
|
|
1620
1618
|
}
|