Skip to content

Streaming

ConnectyCube Streaming API is built on top of WebRTC protocol and based on top of WebRTC SFU architecture.

Max people per Conference call is 12.

Streaming API is available starting from Advanced plan.

Features supported

  • Streaming/listening video/audio
  • Join-Rejoin stream functionality
  • Guest rooms
  • Mute/Unmute audio/video stream
  • Display bitrate
  • Switch video input device (camera)

Code samples

To be announced later. Please contact us if you have any requirements.

Prerequisites

Streaming API is based on top of regular Multiparty Video Conferencing API , so it’s good to learn its API as well.

Connect SDK

For using Streaming feature you should add a dependency (only for V1):

SDK v1 kotlin (deprecated)

implementation "com.connectycube:connectycube-android-sdk-videochat-conference:$sdkVersion"

Streaming sessions

There are two sessions for handling streaming process in a easy way:

ConferenceStreamingSession - is a session within certain video room, managing the streaming current processes.
ConferenceWatchingSession - is a session within certain video room, managing the watching current stream processes.

Common Callbacks

In order to have an ability to receive callbacks about current session instance state and conference events, you should implement appropriate interfaces:

Implement RTCSessionStateCallback for tracking connection state:

// Coming soon

Implement ConferenceStateListener for tracking conference events:

// Coming soon

Video and Audio tracks

For obtaining video and audio tracks implement interface RTCClientVideoTracksCallback<ConferenceStreamBaseSession> and RTCClientAudioTracksCallback<ConferenceStreamBaseSession>.

For setting video track for ConferenceSession - the ConferenceStreamSurfaceView class is provided.

ConferenceStreamClient

ConferenceStreamClient instance is a client model responsible for managing conference streaming session.

ConferenceStreamingSession

// Coming soon

Callbacks

// Coming soon

Start and stop streaming

// Coming soon

ConferenceWatchingSession

// Coming soon

Callbacks

// Coming soon

Start and stop watching

// Coming soon