function voipCallBack(data, status, oper) { var thisRoom = data.obj; switch (status){ case "connect success": break; case "connect failed": case "connect closed": break; case "onWebrtcMessage": switch(data.type) { case "streamCreated": break; case "voipStreamReady": break; } break; case "onVoipMessage": switch(data.type) { case "voipRefuse": break; case "voipHangup": break; case "voipConnect": break; case "voipBusy": break; case "voipSingleMsg": break; } break; } }
currRoom = StarRtc.StarSDK.getVoipRoomSDK = function(_oper, _userCallback, _userData)
例: var starSDK = new StarRtc.StarSDK(); currRoom = starSDK.getVoipRoomSDK("call", voipCallBack, {"roomInfo":{"targetId":"", "audioOnly":true}});
|