CloudHub Docs
Download Documents

RTS


CloudHubRTS Electron

RtsEngine

Import SDK

const RtsEngine = require("cloudhub-rts-electron-sdk").default;

RtsUpStream

Initialize push

const rtsPusher = new RtsEngine.RtsUpStream(clientId:string);
ParameterDescription
clientIdPush stream user ID (can not be transmitted, SDK can be automatically generated)

return Return Rts Up Stream upstream object

RtsDownStream

Initial pull

const rtsPuller = new RtsEngine.RtsDownStream(clientId:string);
ParameterDescription
clientIdPush stream user ID (can not be transmitted, SDK can be automatically generated)

return Returns the Rts Down Stream downstream object

RtsMixingUpstream

Initialize RtsMixingUpstream

const rtsMixingUpstream = new RtsEngine.RtsMixingUpstream(clientId:string);
ParameterDescription
clientIdPush stream user ID (can not be transmitted, SDK can be automatically generated)

Returns

Returns the RtsMixingUpstream object

RtsServerStreamMixing

Initialize RtsServerStreamMixing

const rtsServerStreamMixing = new RtsEngine.RtsServerStreamMixing(clientId:string);
ParameterDescription
clientIdPush stream user ID (can not be transmitted, SDK can be automatically generated)

Returns

Returns the RtsServerStreamMixing object