StarRtc.StarRoomSDK.sigConnect = function ()
/** * Disconnect to the room * @param flag The flag of Whether to disconnect actively, which is used to determine reconnection */ StarRtc.StarRoomSDK.sigDisconnect = function (_flag)
/** * Create a room */ StarRtc.StarRoomSDK.createNew = function ()
/** * Delete a room */ StarRtc.StarRoomSDK.deleteCurrRoom = function ()
/** * Create a local video stream * @param streamOption Stream configuration(Resolution, etc.),such as{ "video": true, "audio": { deviceId: { ideal: ["default"] } } }, or{ "video": { width: { ideal: 640 }, height: { ideal: 480 }, frameRate: { ideal: 25 }, facingMode: { ideal: ["user"] } }, "audio": { deviceId: { ideal: ["default"] } } } */ StarRtc.StarRoomSDK.createStream = function (streamOption)
/** * Create a shared screen video stream */ StarRtc.StarRoomSDK.createScreenCaptureStream = function ()
/** * Set the visibility of the stream (It will affect both local and far peer streams) * @param config Stream visibility configuration{"video":true, "audio":true} */ StarRtc.StarRoomSDK.publishStream = function (config)
/** * join the room */ StarRtc.StarRoomSDK.joinRoom = function ()
/** * leave the room * @param _flag Whether to leave the roomactively(optional) */ StarRtc.StarRoomSDK.leaveRoom = function (_flag)
/** * Switch the size of the view * @param streamConfig Switch the configuration of the size map, 1 for small, 2 for large[1,2,1,2...] */ StarRtc.StarRoomSDK.streamConfigApply = function (streamConfig)
/** * Send a chat room message * @param msg message */ StarRtc.StarRoomSDK.sendChatMsg = function (msg)
/** * Send voip message(IM one-to-one chat message) * @param msg message */ StarRtc.StarRoomSDK.sendVoipMsg = function (msg)
/** * Send chat room private message * @param toUserId the user ID the meaasge will be sent to * @param msg message */ StarRtc.StarRoomSDK.sendChatPrivateMsg = function (userId, msg)
/** * Kick out the user * @param kickOutUserId the user ID who will be kicked out */ StarRtc.StarRoomSDK.kickOutUser = function (kickOutUserId)
/** * Speaking not allowed in the room * @param banUserId the user ID of who is speaking not allowed * @param banTime the time duration of speaking not allowed */ StarRtc.StarRoomSDK.banToSendMsg = function (banUserId, banTime)
/** * Get the number of online users in the chat room */ StarRtc.StarRoomSDK.getRoomOnlineNum = function ()
/** * Send real-time data * @param data real-time data */ StarRtc.StarRoomSDK.sendStreamData = function (data)
/** * Get the disconnect satus:active or passive? */
|