Type Aliases Builtin Msg Defined in typings/live/LiveMsg.ts:96 Type declaration data: { extension?: Record < string , any > } [ key: string ]: any Optional extension?: Record < string , any > to_ user_ ids: string [] Event Type Defined in typings/live/EventType.ts:89 Type Parameters Get Voice Sign Get
Voice
Sign
: ( ( {
voiceId,
userId,
roomId,
}
: { roomId
: string | number ; userId
: string ; voiceId
: string } ) => Promise < GetVoiceSignReturnType > ) Defined in typings/live/GetVoiceSign.ts:14 Type declaration ( {
voiceId,
userId,
roomId,
}: { roomId: string | number ; userId: string ; voiceId: string } ) : Promise < GetVoiceSignReturnType > Parameters {
voiceId,
userId,
roomId,
}: { roomId: string | number ; userId: string ; voiceId: string } room Id: string | number user Id: string voice Id: string Keyframe Types Keyframe Types< Type > : { [ Property in keyof Type as Property ] : ( ( nextKeyframes: Type [ Property ] , prevKeyframes: Type [ Property ] , frontRequestId: string ) => void ) }
Defined in typings/live/EventType.ts:78 Type Parameters Live Connect Options Live
Connect
Options
: { force
?: boolean ; rtcMicStatus
?: MicroStatus ; url
?: string ; getTicket
?: any } Defined in typings/live/LiveConnectOptions.ts:3 Type declaration Optional force?: boolean Optional rtc Mic Status?: MicroStatus Optional url?: string get Ticket?: function get Ticket( ) : Promise < string > Defined in typings/live/LiveConnectOptions.ts:6 Returns Promise < string > Live Event Type Live Event Type< KeyframesSnapshot > : { broadcast: any ; builtinEvent: any ; error: any ; keyframes: any ; kickOut: any ; readyKeyframeSync: any ; roomChange: any ; selfInfoUpdate: any ; stateChange: any ; userChange: any ; userListUpdate: any }
Defined in typings/live/EventType.ts:8 Type Parameters Type declaration broadcast: function broadcast( evtMsg: Record < string , any > , frontRequestId: string ) : void Defined in typings/live/EventType.ts:38 Parameters evtMsg: Record < string , any > frontRequestId: string Returns void builtin Event: function Defined in typings/live/EventType.ts:20 Parameters Returns void error: function Defined in typings/live/EventType.ts:72 Parameters Returns void keyframes: function keyframes( keyframes: Partial < KeyframesSnapshot > , frontRequestId: string ) : void Defined in typings/live/EventType.ts:49 Parameters keyframes: Partial < KeyframesSnapshot > frontRequestId: string Returns void kick Out: function Defined in typings/live/EventType.ts:67 Returns void ready Keyframe Sync: function ready Keyframe Sync( lastKeyframe: Partial < KeyframesSnapshot > ) : void Defined in typings/live/EventType.ts:44 Parameters lastKeyframe: Partial < KeyframesSnapshot > Returns void room Change: function Defined in typings/live/EventType.ts:32 Parameters Returns void self Info Update: function self Info Update( userInfo: UserInfo , frontRequestId: string ) : void Defined in typings/live/EventType.ts:57 Parameters Returns void state Change: function Defined in typings/live/EventType.ts:14 Parameters Returns void user Change: function Defined in typings/live/EventType.ts:26 Parameters Returns void user List Update: function user List Update( userList: UserInfo [] , frontRequestId: string ) : void Defined in typings/live/EventType.ts:62 Parameters Returns void Live Msg Live
Msg
: { appId
: string ; code
: string ; command
: Command ; data
: Record < string , any > | Record < string , any > [] ; frontRequestId
: string ; message
: string ; requestId
: string ; roomCode
: string ; triggerUserId
: string } Defined in typings/live/LiveMsg.ts:116 Type declaration app Id: string code: string data: Record < string , any > | Record < string , any > [] front Request Id: string message: string request Id: string room Code: string trigger User Id: string Live Provider Prop Types Live Provider Prop Types< KeyframesSnapshot > : { children?: React.ReactNode ; live?: Live < KeyframesSnapshot > }
Defined in live/createLiveReact.tsx:19 Type Parameters Type declaration Optional children?: React.ReactNode Optional live?: Live < KeyframesSnapshot > RTCAction React Callback RTCAction
React
Callback
: Pick < RTCProtocol , "join" | "quit" | "shock" | "toggleMicro" | "detectMicro" > Defined in typings/react/RTCActionReactCallback.ts:3 RTCEvent Type RTCEvent Type: { error: any ; joinWillStart: any ; joined: any ; userVolumes: any ; weakNetwork: any }
Defined in typings/rtc/eventType.ts:7 Type declaration error: function Defined in typings/rtc/eventType.ts:12 Parameters Returns void join Will Start: function Defined in typings/rtc/eventType.ts:17 Returns void joined: function Defined in typings/rtc/eventType.ts:21 Returns void user Volumes: function Defined in typings/rtc/eventType.ts:32 Parameters Returns void weak Network: function Defined in typings/rtc/eventType.ts:26 Returns void Req Live Msg Req
Live
Msg
: { command
: Command ; data
: { to_user_ids
?: string [] } ; front_request_id
: string } Defined in typings/live/LiveMsg.ts:28 Type declaration data: { to_user_ids?: string [] } [ key: string ]: any Optional to_ user_ ids?: string [] front_ request_ id: string Room Info Room Info: { info: { app_id: string ; create_time: string ; create_user_id: string ; extension: Record < string , any > ; id: string | number ; room_code: string ; status: string | number } ; init_timestamp: string ; last_frame: Record < string , any > }
Defined in typings/live/RoomInfo.ts:1 Type declaration info: { app_id: string ; create_time: string ; create_user_id: string ; extension: Record < string , any > ; id: string | number ; room_code: string ; status: string | number } app_ id: string create_ time: string create_ user_ id: string extension: Record < string , any > id: string | number room_ code: string status: string | number init_ timestamp: string last_ frame: Record < string , any > User Info User
Info
: { current_ws_online
?: boolean ; extension
?: UserInfoExt ; id
: string ; mem_user_status
?: MemUserStatus ; micro_status
: boolean ; once_ws_online
?: boolean ; permission
?: Record < string , boolean > ; rtc
: boolean ; status
?: UserStatus ; user_role
?: number | string } Defined in typings/live/UserInfo.ts:49 Type declaration Optional current_ ws_ online?: boolean id: string Optional mem_ user_ status?: MemUserStatus micro_ status: boolean Optional once_ ws_ online?: boolean Optional permission?: Record < string , boolean > rtc: boolean Optional user_ role?: number | string User Info Ext User Info Ext: { avatar?: string ; nickname?: string }
Defined in typings/live/UserInfo.ts:31 Type declaration [ key: string ]: any Optional avatar?: string Optional nickname?: string User Volume User Volume: { audioVolume: number ; userId: string }
Defined in typings/live/UserVolume.ts:4 Type declaration audio Volume: number user Id: string Web Socket Error Defined in typings/live/WebSocket.ts:31 Type declaration Optional error?: any Optional target?: Event | CloseEvent
内置事件数据结构体。