@stream-io/video-client 0.3.24 → 0.3.26
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 +82 -27
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +84 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +82 -27
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +12 -3
- package/dist/src/gen/coordinator/index.d.ts +289 -142
- package/dist/src/sorting/__tests__/presets.test.d.ts +1 -0
- package/dist/src/sorting/presets.d.ts +5 -0
- package/dist/src/store/CallState.d.ts +12 -3
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/Call.ts +42 -4
- package/src/__tests__/server-side/call-types.test.ts +3 -7
- package/src/gen/coordinator/index.ts +295 -147
- package/src/sorting/__tests__/presets.test.ts +54 -0
- package/src/sorting/presets.ts +28 -0
- package/src/store/CallState.ts +28 -7
- package/src/store/__tests__/CallState.test.ts +6 -4
package/dist/src/Call.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Publisher, SfuEventKinds, SfuEventListener, Subscriber } 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, GoLiveRequest, GoLiveResponse, ListRecordingsResponse, MuteUsersResponse, PinRequest, PinResponse, QueryMembersRequest, QueryMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendEventResponse, SendReactionRequest, SendReactionResponse,
|
|
4
|
+
import { AcceptCallResponse, BlockUserResponse, EndCallResponse, GetCallResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListRecordingsResponse, MuteUsersResponse, PinRequest, PinResponse, QueryMembersRequest, QueryMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendEventResponse, SendReactionRequest, SendReactionResponse, StartHLSBroadcastingResponse, StartRecordingResponse, StopHLSBroadcastingResponse, StopLiveResponse, StopRecordingResponse, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from './gen/coordinator';
|
|
5
5
|
import { CallConstructor, CallLeaveOptions, DebounceType, JoinCallData, PublishOptions, SubscriptionChanges, VideoTrackType } from './types';
|
|
6
6
|
import { DynascaleManager } from './helpers/DynascaleManager';
|
|
7
7
|
import { PermissionsContext } from './permissions';
|
|
@@ -407,11 +407,11 @@ export declare class Call {
|
|
|
407
407
|
/**
|
|
408
408
|
* Starts the broadcasting of the call.
|
|
409
409
|
*/
|
|
410
|
-
startHLS: () => Promise<
|
|
410
|
+
startHLS: () => Promise<StartHLSBroadcastingResponse>;
|
|
411
411
|
/**
|
|
412
412
|
* Stops the broadcasting of the call.
|
|
413
413
|
*/
|
|
414
|
-
stopHLS: () => Promise<
|
|
414
|
+
stopHLS: () => Promise<StopHLSBroadcastingResponse>;
|
|
415
415
|
/**
|
|
416
416
|
* Updates the call settings or custom data.
|
|
417
417
|
*
|
|
@@ -523,4 +523,13 @@ export declare class Call {
|
|
|
523
523
|
* @param sessionId the session id.
|
|
524
524
|
*/
|
|
525
525
|
bindAudioElement: (audioElement: HTMLAudioElement, sessionId: string) => (() => void) | undefined;
|
|
526
|
+
/**
|
|
527
|
+
* Binds a DOM <img> element to this call's thumbnail (if enabled in settings).
|
|
528
|
+
*
|
|
529
|
+
* @param imageElement the image element to bind to.
|
|
530
|
+
* @param opts options for the binding.
|
|
531
|
+
*/
|
|
532
|
+
bindCallThumbnailElement: (imageElement: HTMLImageElement, opts?: {
|
|
533
|
+
fallbackImageSource?: string;
|
|
534
|
+
}) => () => void;
|
|
526
535
|
}
|