CloudHub Docs
Download Documents

RTS


CloudHubRTS Electron

getClientId

Get user id

getClientId(): string

startPull

Start to pull

 startPull(urlPull: string)
ParametersDescription
urlPushTo pull the address of the stream, please refer to the RTS protocol push-pull stream for the rules for generating the stream address

stopPull

Stop streaming

 stopPull()

isPulling

Is it pulling

isPulling(): boolean

return

pauseAudio

Pause audio

pauseAudio()

return

resumeAudio

Resume playing audio

resumeAudio()

return

pauseVideo

Stop playing video

pauseVideo()

return

resumeVideo

Resume playing video

resumeVideo()

return

enableVolumeIndication

Enable user volume alert

enableVolumeIndication(interval: number)
ParametersDescription
intervalSpecify the time interval of the volume alert: <=0: Disable the volume alert function. >0: Return the interval of the volume prompt, the unit is milliseconds

return

getUrl

Get URL address

getUrl()

setupRemoteVideo

Enable user volume alert

setupRemoteVideo(view: Element)
ParametersDescription
viewPlay video window element

removeRemoteVideo

Stop playing remote video

removeRemoteVideo()

getSourceId

Get pull ID

getSourceId()

setStreamConfigs

Set stream configuration items

setStreamConfigs(options: object)
ParametersTypeDescription
optionsobjectHas the following values:
delay_time_ms: type: number,Optional, specify playback delay, milliseconds, default 500

getDeviceManager

Get device management object

getDeviceManager()