UNPKG

@class100/webrtc

Version:

TODO

44 lines (43 loc) 1.08 kB
import { IMicrophoneAudioTrack, ICameraVideoTrack, IAgoraRTCRemoteUser, UID } from 'agora-rtc-sdk-ng'; import { LocalStream, RemoteStream } from 'trtc-js-sdk'; import { AgoraWeb } from '../libs/agora_web'; import { TRTCWeb } from '../libs/TRTC_web'; export declare type ClientType = AgoraWeb | TRTCWeb; export interface AgoraWebLocalStream { microphoneTrack: IMicrophoneAudioTrack; cameraTrack: ICameraVideoTrack; } export declare type DeviceTypes = { type: string; deviceId: string; groupId: string; kind: string; label: string; }; export interface RtcConfig { /** * 用户id */ uid: number | string; /** * appID */ appid: string; /** * 验证token */ token: string; /** * 房间号 */ channel: string; } export declare type LocalUser = { uid: number | UID; localStream: AgoraWebLocalStream | LocalStream; }; export declare type RemoteUser = { uid: number | UID; remoteStream: IAgoraRTCRemoteUser | RemoteStream; }; export declare type RemoteUsers = RemoteUser[];