CloudHub Docs
Download Documents

RTS


CloudHubRTS Electron

Overview

Interface class definition

Push-pull streamer management

MethodDescription
RtsUpStreamInitialize push
RtsDownStreamInitial pull
RtsMixingUpstreamInitialize Client Mixing Upstream
RtsServerStreamMixingInitialize Server Stream Mixing

Pusher management

Push streaming Method

MethodDescription
getVersionGet the version
getStreamIDGet a stream id
getClientIdGet user id
startPushStart streaming
stopPushStop streaming
isPushingIs it pushing?
setVideoQualitySet push video quality
startCameraStart camera capture
stopCameraStop camera capture
startMicrophoneTurn on audio capture
stopMicrophoneStop audio capture
setAudioQualitySet the audio quality of the local transmission
enableVolumeIndicationEnable user volume alert
setupLocalVideoPlay local video
removeLocalVideoStop playing local video
getSourceIdPush id
getUrlGet URL address
setBeautyEffectOptionsTurn on or off the local beauty function, and set the beauty effect options
setVideoEffectOptionsTurn on or off advanced beauty, and set beauty effect options
startPlayMoviePlay local video
setupLocalMoviePlay local video
removeLocalMovieStop local video
stopPlayMovieStop playing local video
pauseMediaFileStop playing local video
getMovieInfoGet basic information about local video
resumeMediaFileContinue playing local video
getMovieDurationGet movie duration
getMovieCurrentPositionGet the progress of a local video
setMoviePositionSet local movie playback progress
getScreenWindowsInfoGet application window information
getScreenDisplaysInfoGet screen information
startScreenCaptureByDisplayIdStart screen sharing
startScreenCaptureByWindowIdShare screen app via window information
stopScreenCaptureStop screen sharing
startSpeakerCaptureWhileSharingShare desktop, and turn on desktop sound
stopSpeakerCaptureWhileSharingShare desktop, turn off desktop sound
getDeviceManagerGets the device management object
EventDescription
onFirstlocalvideoframeThe first frame of the local video has been captured callback
onApierrorOccurs when a parameter error occurs
onVolumeindicationSpeaker volume reminder callback. This callback reports the volume of each user posting audio data in the channel
onRtsstatsCurrent call statistics, call statistics
onAudiodevicestatechangedAudio device status changes
onVideodevicestatechangedVideo device status changes
onVideosizechangedVideo size change
onPushstateupdatedPush stream status change
onFirstlocalaudioframeThe first frame of local audio has been captured callback
onLocalVideoStateChangedLocal video status change callback. When the local video status changes, the SDK will trigger the callback to report the current local video status
onLocalAudioStateChangedLocal audio status change callback. , When the status of local audio changes, (including local microphone recording status and audio encoding status)
onErrorOccurs when an error occurs

Vocal effect

MethodDescription
enableDeepLearningDenoiseEnables/Disables deep-learning noise reduction.

Puller management

Pull flow Method

MethodDescription
getVersionGet the version
getClientIdGet user id
startPullStart to pull
stopPullStop streaming
isPullingIs it pulling
resumeAudioResume playing audio
pauseAudioPause audio
pauseVideoStop playing video
resumeVideoResume playing video
enableVolumeIndicationEnable user volume alert
getUrlGet URL address
setupRemoteVideoSet up remote streaming
removeRemoteVideoStop playing remote video
getAudioPlaybackDevicesGet the list of speakers
getSourceIdPull stream id
setAudioPlaybackDeviceSet up speakers
getPlaybackDeviceInfoObtain playback device information
getCurrentAudioPlaybackDeviceGet the current speaker
setAudioPlaybackVolumeSet the volume of the audio playback device
getAudioPlaybackVolumeGet the volume of the audio playback device
startAudioPlaybackDeviceTestTest speaker
stopAudioPlaybackDeviceTestStop testing speakers
setStreamConfigsSet stream configuration items
getDeviceManagerGets the device management object
EventDescription
onVolumeindicationSpeaker volume reminder callback
onRtsstatsCurrent call statistics, call statistics
onPullstateupdatedPull flow state change
onVideosizechangedVideo size change
onRemoteVideoStateChangedThe remote video stream status has changed callback
onFirstremotevideoframeOccurs when the first remote audio frame is decoded
onFirstremoteaudioframeOccurs when the first remote audio frame is received
onRemoteAudioStateChangedThe remote audio stream status has changed callback

Client Mixing UpStream

RtsMixingUpstream

MethodDescription
startPushStarts pushing the mixing stream
stopPushStops pushing the mixing stream
getUrlGets the URL
getClientIDGets a ClientID
configMixingConfigures the mixing
isPushingGets the state of the push stream
setupLocalVideoPlay a local mixing video
removeLocalVideoStop playing the local mixing video
EventDescription
onPushstateupdatedOccurs when the push status changes
onRtsstatsOccurs when statistics change
onErrorOccurs when an error occurs

Server stream mixing

Mixing Method

MethodDescription
startMixingStarts mixing the server stream
stopMixingStops mixing the server stream
configMixingConfigures mixing the server stream
EventDescription
onErrorOccurs when an error occurs

Audio and Video device

MethodDescription
getVideoDevicesGet the camera list
getCurrentVideoDeviceGet the current camera
setVideoDeviceSet up the camera
getAudioPlaybackDevicesGet the list of speakers
setAudioPlaybackDeviceSet up speakers
getPlaybackDeviceInfoObtain playback device information (speaker)
getCurrentAudioPlaybackDeviceGet the current speaker
setAudioPlaybackVolumeSet the volume of the audio playback device
getAudioPlaybackVolumeGet the volume of the audio playback device
getAudioRecordingDevicesGet the microphone list
setAudioRecordingDeviceSet up the microphone
getRecordingDeviceInfoGet recording device information (microphone)
getCurrentAudioRecordingDeviceGet the current microphone
getAudioRecordingVolumeGet the volume of the recording device
setAudioRecordingVolumeSet the volume of the recording device
startAudioPlaybackDeviceTestTest speaker
stopAudioPlaybackDeviceTestStop testing speakers
startAudioRecordingDeviceTestStart testing the microphone
stopAudioRecordingDeviceTestStop testing the microphone
getAudioPlaybackDeviceMuteGet the mute status of the audio playback device (no return value)
setAudioPlaybackDeviceMuteMute unmute audio playback device
getAudioRecordingDeviceMuteGet the mute status of the recording device
setAudioRecordingDeviceMuteMute unmute recording equipment