UNPKG

@100mslive/hms-video-store

Version:

@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow

18 lines (17 loc) 1.17 kB
import { HMSPeer, HMSPublishAllowed, HMSRole, HMSScreenAudioTrack, HMSScreenVideoTrack, HMSStore, HMSTrack, HMSTrackID, HMSVideoTrack } from '../schema'; export declare function getScreenSharesByPeer(tracks: Record<HMSTrackID, HMSTrack>, peer?: HMSPeer | null): { video: HMSScreenVideoTrack; audio: HMSScreenAudioTrack; }; export declare function isAudio(track: HMSTrack | undefined): boolean | undefined; export declare function isVideo(track: HMSTrack | undefined): boolean | undefined; export declare function isScreenShare(track: HMSTrack | undefined): boolean | undefined; export declare function isAudioPlaylist(track: HMSTrack | undefined): boolean | undefined; export declare function isVideoPlaylist(track: HMSTrack | undefined): boolean | undefined; export declare function isDegraded(track: HMSVideoTrack): boolean; export declare function isTrackEnabled(store: HMSStore, trackID?: string): boolean; /** * Should UI show the video track as enabled */ export declare function isTrackDisplayEnabled(store: HMSStore, trackID?: string): boolean | undefined; export declare function isRoleAllowedToPublish(role?: HMSRole | null): HMSPublishAllowed;