Install
npm
npm i --save-dev thunder-chatroom-sdk-test
yarn
yarn add -s thunder-chatroom-sdk-test
Use it in your project
import { RtcService, HummerService } from 'thunder-chatroom-sdk-test'
APIs
RtcService
Function |
Useage |
initWebRtc |
|
rtcInstanceJoinRoom |
|
showVideo |
|
publishVideo |
|
onLiveRoomInfoChange |
|
offLiveRoomInfoChange |
|
leaveRoom |
|
unPublishVideo |
|
HummerService
Function |
Useage |
initHummerService |
|
enterLive |
|
endLive |
|
startLive |
|
startExtLive |
|
getExtLiveStreamUid |
|
inviteLiveInterconnect |
|
replyInviteLiveInterconnect |
|
applyConnect |
|
addRoomInfoBroadcast |
|
stopBroadcast |
|
addUserInfoBroadcast |
|