function superTalkCallBack(data, status, oper) { switch (status) { case "connect success": break; case "connect failed": case "connect closed": break; case "onWebrtcMessage": switch (data.type) { case "createChannel": break; case "delChannel": break; case "streamCreated": break; case "srcApplyUpload": break; case "vdnApplyDownload": break; case "addUploader": break; case "removeUploader": break; case "serverErr": break; } break; } }
StarRtc.StarSDK.getSuperRoomSDK = function (_oper, _userCallback, _userData)
例: var starSDK = new StarRtc.StarSDK(); currRoom = starSDK.getSuperRoomSDK("open", superTalkCallBack, {"roomInfo":{"id":"", "name":"", "creator":""}});
|