Event name (for meeting end event, set the event to "connection-change").
Event handler (for meeting end event, the payload of the callback is payload.state === 'Closed').
Occurs when the video statistics data is changed; decode (received).
The event detail.
data
encoding
: If encoding is true, the data is encoding video data statistics.avg_loss
: The video's average package loss.jitter
: The video's jitter.max_loss
: The video's maximum package loss.rtt
: The video's round trip time.sample_rate
: The video's sample rate.width
: The video's width.height
: The video's height.fps
: The video's frames per second (fps).type
: string VIDEO_QOS_DATA.client.on('video_statistic_data_change', (payload) => {
console.log('emit', payload);
});
Events
Occurs when the share statistics data is changed during decoding (received) or encoding (sent).
The event detail.
data
encoding
: If encoding
is true, the following metrics stand for the Send data statistics, otherwise, it stands for the Receive data statistics.avg_loss
: The share video's average package loss.fps
: The share video's frames per second (FPS).height
: The share video's height.jitter
: The share video's jitter.max_loss
: The share video's maximum package loss.rtt
: The share video's round trip time.width
: The share video's width.type
: string VIDEOSHARE_QOS_DATA.client.on('share_statistic_data_change', (payload) => {
console.log('emit', payload);
});
Events
Optional
avatar?: stringAvatar.
Display name.
Optional
done?: booleanWhether the sentence is done.
Language code of the live translation.
Message ID.
Source of the live transcription message.
Text content.
Timestamp.
User sending the message.
Occurs when network quality changes. The network quality reflects the video quality. The data will broadcast to all users only when the user starts video.
Network quality level. Values can be integers from 0 to 5. Poor: 0, 1 Normal: 2 Good: 3, 4, 5
Whether the network level is for uplink or downlink. Values can only be 'uplink' or 'downlink'.
User ID.
Optional
canOccurs when users join a meeting or waiting room or start audio or video.
Detailed description for the event.
A number representing the timestamp, in milliseconds, for the current time.
A string representing the given date in the date time string format.
Occurs when far end camera request is received
the event detail
Optional
currentThe display name for who is controlling the camera.
Optional
currentThe user ID for who is controlling the camera.
The display name for who requested control.
The user ID for who requested control.
Events
Occurs when far end camera response is received.
the event detail
User display name
Is approved
Optional
reason?: FarEndCameraControlDeclinedReasonreason for refusal
user ID
Events
Occurs when the status changes for the camera in control.
the event detail
Is controlled by other user.
Optional
userThe ID of the user in control.
Events
Capability of PTZ.
User ID
Listens for the events and handles them. For example: