Subscriber
The Subscriber class manages the subscription to audio and video tracks from the Millicast platform.
Properties
Gets the current publisher credentials.
Get the last subscriber's state which was emitted
Returns a boolean indicating whether the client is currently connected to the Millicast platform.
Checks whether the subscriber is currently subscribing to any media.
A callback that allows defining custom transformations or processing logic for video frames before they are rendered.
Flow providing all RTC statistics reports.
Flow providing all signaling errors that can be raised.
Functions
Dynamically adds a new media track to the subscriber, which allows projecting another source. The method locally renegotiates Session Description Protocol (SDP).
Initiates a connection to the Millicast platform. By default, the SDK will always attempt to make auto reconnection. To disable this feature, pass a ConnectionOptions instance where autoReconnect is disabled.
Terminates the current connection to the Millicast platform. Any ongoing process of publishing or subscribing content is automatically stopped before termination. This method returns directly but will perform the call in its queue.
Enables or disables the frame transformation functionality.
Enables or disables the collection and reporting of real-time statistics associated with streaming sessions.
Selects and switches sources available on the platform and forwards the selected media to the subscriber.
Sets the credentials, providing authentication information required for connecting to the streaming platform.
Initiates the subscription process from the Millicast platform. Prior to calling this method, you must use the connect method to connect the subscriber to the platform. Successful subscription results in calling the onSubscribed method of the Listener.
Stops the subscription process indicating to the streaming server that the subscriber is no longer interested in receiving audio and video content. After calling this method, the SDK automatically terminates the connection between the subscriber and the streaming platform.