CloudHub Docs
Download Documents

Cloud Recording


Cloud recording SDK

Callback method

onChatMsg

Chat message.

Return parameter For an object The content of the object is:

NameDescription
fromIdUser id of the sender
textMsgChat content
extraDataExtended parameters

onPubMsg

Send signaling.

Return parameter For an object The content of the object is:

NameDescription
msgIdsignaling id
msgNameSignaling name
toIdWhich users have been notified
fromIdUser id of the sender
dataSignaling data
extraDataExtended parameters
associatedUserIdAssociated user id
associatedMsgIdAssociated signaling id
tsTimestamp

onDelMsg

Delete signaling.

Return parameter For an object The content of the object is:

NameDescription
msgIdSignaling id
msgNameSignaling name
fromIdSender’s user id
toIdWhich users were notified
dataSignaling data
associatedUserIdAssociated users id
associatedMsgIdAssociated signaling id
tsTimestamp

onSetProperty

Change user attributes.

Return parameter For an object The content of the object is:

NameDescription
userIdUser id being changed
propertiesChanged attribute object

onUserJoined

User join

Return parameter For an object The content of the object is:

NameDescription
propertiesUser attributes
uidJoined user id

onUserLeaved

User left

Return parameter For an object The content of the object is:

NameDescription
uidUser id left

onRemoteVideoStateChanged

The remote video status has changed

Return parameter For an object The content of the object is:

NameDescription
uidUser id
mediaTypeVideo type (1: audio 3: audio and video 4: media 5: movie 6: desktop sharing)
stateVideo status (0: remove 1: add)
streamIdThe unique ID of the video stream in the channel

onRemoteAudioStateChanged

The remote audio status has changed

Return parameter As an object, the content of the object is:

NameDescription
uidUser id
stateAudio status (0: mute 1: normal)
streamIdThe unique ID of the video stream in the channel

onRemoteMultiAudioStateChanged

The remote audio status changes in multi-stream mode

Return parameter As an object, the content of the object is:

NameDescription
uidUser id
stateAudio status (0: mute 1: normal)
streamIdThe unique ID of the video stream in the channel
mediaTypeVideo type (1: audio 3: audio and video 4: media 5: movie 6: desktop sharing)