@stream-io/video-client 1.13.0 → 1.14.0

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.
@@ -1,7 +1,7 @@
1
1
  import { Publisher, Subscriber } from './rtc';
2
2
  import { CallState } from './store';
3
- import type { AcceptCallResponse, BlockUserResponse, CallRingEvent, CollectUserFeedbackResponse, EndCallResponse, GetCallResponse, GetCallStatsResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, JoinCallResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersResponse, PinRequest, PinResponse, QueryCallMembersRequest, QueryCallMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendCallEventResponse, SendReactionRequest, SendReactionResponse, StartHLSBroadcastingResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopHLSBroadcastingResponse, StopLiveResponse, StopRecordingResponse, StopTranscriptionResponse, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse, VideoResolution } from './gen/coordinator';
4
- import { AudioTrackType, CallConstructor, CallLeaveOptions, JoinCallData, PublishOptions, TrackMuteType, VideoTrackType } from './types';
3
+ import type { AcceptCallResponse, BlockUserResponse, CallRingEvent, CollectUserFeedbackResponse, EndCallResponse, GetCallResponse, GetCallStatsResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, JoinCallResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersResponse, PinRequest, PinResponse, QueryCallMembersRequest, QueryCallMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendCallEventResponse, SendReactionRequest, SendReactionResponse, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartHLSBroadcastingResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopHLSBroadcastingResponse, StopLiveResponse, StopRecordingResponse, StopTranscriptionResponse, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse, VideoDimension } from './gen/coordinator';
4
+ import { AudioTrackType, CallConstructor, CallLeaveOptions, ClosedCaptionsSettings, JoinCallData, PublishOptions, TrackMuteType, VideoTrackType } from './types';
5
5
  import { TrackType } from './gen/video/sfu/models/models';
6
6
  import { DynascaleManager } from './helpers/DynascaleManager';
7
7
  import { PermissionsContext } from './permissions';
@@ -424,7 +424,23 @@ export declare class Call {
424
424
  */
425
425
  stopTranscription: () => Promise<StopTranscriptionResponse>;
426
426
  /**
427
- * Sends a `call.permission_request` event to all users connected to the call. The call settings object contains infomration about which permissions can be requested during a call (for example a user might be allowed to request permission to publish audio, but not video).
427
+ * Starts the closed captions of the call.
428
+ */
429
+ startClosedCaptions: (options?: StartClosedCaptionsRequest) => Promise<StartClosedCaptionsResponse>;
430
+ /**
431
+ * Stops the closed captions of the call.
432
+ */
433
+ stopClosedCaptions: (options?: StopClosedCaptionsRequest) => Promise<StopClosedCaptionsResponse>;
434
+ /**
435
+ * Updates the closed caption settings.
436
+ *
437
+ * @param config the closed caption settings to apply
438
+ */
439
+ updateClosedCaptionSettings: (config: Partial<ClosedCaptionsSettings>) => void;
440
+ /**
441
+ * Sends a `call.permission_request` event to all users connected to the call.
442
+ * The call settings object contains information about which permissions can be requested during a call
443
+ * (for example, a user might be allowed to request permission to publish audio, but not video).
428
444
  */
429
445
  requestPermissions: (data: RequestPermissionRequest) => Promise<RequestPermissionResponse>;
430
446
  /**
@@ -656,7 +672,7 @@ export declare class Call {
656
672
  * @param sessionIds optionally specify session ids of the participants this
657
673
  * preference has effect on. Affects all participants by default.
658
674
  */
659
- setPreferredIncomingVideoResolution: (resolution: VideoResolution | undefined, sessionIds?: string[]) => void;
675
+ setPreferredIncomingVideoResolution: (resolution: VideoDimension | undefined, sessionIds?: string[]) => void;
660
676
  /**
661
677
  * Enables or disables incoming video from all remote call participants,
662
678
  * and removes any preference for preferred resolution.