@mindly/ui-components 3.75.2 → 3.75.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.
@@ -1,9 +1,11 @@
1
- import React, { HTMLAttributes } from 'react';
2
- import { ILocalAudioTrack, ILocalVideoTrack, IRemoteAudioTrack, IRemoteVideoTrack } from 'agora-rtc-sdk-ng';
3
- export declare type MediaPlayerProps = {
1
+ import { HTMLAttributes } from 'react';
2
+ interface Playable {
3
+ play: (...args: any[]) => any;
4
+ }
5
+ export declare type MediaPlayerProps<TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined> = {
4
6
  fullwidth?: boolean;
5
- cameraTrack?: ILocalVideoTrack | IRemoteVideoTrack;
6
- audioTrack?: ILocalAudioTrack | IRemoteAudioTrack;
7
+ cameraTrack?: TCameraTrack;
8
+ audioTrack?: TAudioTrack;
7
9
  isVideoTrackMuted?: boolean;
8
10
  isAudioTrackMuted?: boolean;
9
11
  networkQuality?: number;
@@ -13,5 +15,5 @@ export declare type MediaPlayerProps = {
13
15
  showControls: boolean;
14
16
  isScreenSharing?: boolean;
15
17
  } & HTMLAttributes<HTMLDivElement>;
16
- declare const _default: React.NamedExoticComponent<MediaPlayerProps>;
18
+ declare const _default: <TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined>({ fullwidth, cameraTrack, audioTrack, isVideoTrackMuted, isAudioTrackMuted, networkQuality, fallbackAvatar, fallbackAvatarDimensions, fallbackName, showControls, isScreenSharing, ...props }: MediaPlayerProps<TCameraTrack, TAudioTrack>) => JSX.Element;
17
19
  export default _default;