export declare enum TrackConnectStatus { Idle = 0, Connecting = 1, Connect = 2 } export interface MediaTrack { track: MediaStreamTrack; sender?: RTCRtpSender; receiver?: RTCRtpReceiver; info: MediaTrackInfo; } export interface MediaTrackInfo { trackId?: string; localId?: string; muted?: boolean; master?: boolean; kind: string; userId: string; tag?: string; } /** * 用于返回给用户的 Track 数据, 如果是订阅的流会带有 userId 和 tag 信息 */ export interface TrackBaseInfo { trackId?: string; muted?: boolean; kind: string; userId?: string; tag?: string; kbps?: number; mid?: string; versionid: number; profiles: Profile[]; } export declare enum TrackSourceType { NORMAL = 0, EXTERNAL = 1, MIXING = 2 } export declare type Profile = 'high' | 'medium' | 'low'; export declare type TrackProfiles = { [key: string]: Profile; };