Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKBroadcastStreamingViewer Class Reference

Broadcast streaming viewer interface. More...

#include <ZMVideoSDKBroadcastStreamingViewer.h>

Inherits NSObject.

Instance Methods

(ZMVideoSDKErrors- joinStreaming:
 Joins broadcast streaming asynchronously. Result is notified via onStreamingJoinStatusChanged .
 
(ZMVideoSDKErrors- leaveStreaming
 Leaves broadcast streaming asynchronously. Result is notified through via onStreamingJoinStatusChanged .
 
(ZMVideoSDKStreamingJoinStatus- getStreamingJoinStatus
 The join status.
 
(ZMVideoSDKErrors- subscribeVideo:broadcastStreamingVideoCallback:
 Subscribes to streaming video.
 
(ZMVideoSDKErrors- unSubscribeVideo:
 Unsubscribes from streaming video raw data.
 
(ZMVideoSDKErrors- subscribeAudio:
 Subscribes to streaming audio.
 
(ZMVideoSDKErrors- unSubscribeAudio
 Unsubscribes from streaming audio raw data.
 

Detailed Description

Broadcast streaming viewer interface.

Definition at line 64 of file ZMVideoSDKBroadcastStreamingViewer.h.

Method Documentation

◆ getStreamingJoinStatus

- (ZMVideoSDKStreamingJoinStatus) getStreamingJoinStatus

The join status.

Returns
join status.

◆ joinStreaming:

- (ZMVideoSDKErrors) joinStreaming: (ZMVideoSDKSteamingJoinContext *) joinContext

Joins broadcast streaming asynchronously. Result is notified via onStreamingJoinStatusChanged .

Parameters
joinContextThe join context containing token and channel ID.
Returns
If the function succeeds, the return value is ZMVideoSDKErrors_Success. Otherwise failed.

◆ leaveStreaming

- (ZMVideoSDKErrors) leaveStreaming

Leaves broadcast streaming asynchronously. Result is notified through via onStreamingJoinStatusChanged .

Returns
If the function succeeds, the return value is ZMVideoSDKErrors_Success. Otherwise failed.

◆ subscribeAudio:

- (ZMVideoSDKErrors) subscribeAudio: (id< ZMVideoSDKBroadcastStreamingAudioDelegate >) delegate

Subscribes to streaming audio.

Parameters
delegateThe raw audio data callback object.
Returns
If the function succeeds, the return value is ZMVideoSDKErrors_Success. Otherwise failed.

◆ subscribeVideo:broadcastStreamingVideoCallback:

- (ZMVideoSDKErrors) subscribeVideo: (ZMVideoSDKResolution) resolution
broadcastStreamingVideoCallback: (id< ZMVideoSDKBroadcastStreamingVideoDelegate >) delegate 

Subscribes to streaming video.

Parameters
resolutionThe desired video resolution. Supported: ZMVideoSDKResolution_180P, ZMVideoSDKResolution_360P, ZMVideoSDKResolution_720P, ZMVideoSDKResolution_1080P.
delegatethe raw video data callback object, see ZMVideoSDKBroadcastStreamingVideoDelegate.
Returns
If the function succeeds, the return value is ZMVideoSDKErrors_Success. Otherwise failed.

◆ unSubscribeAudio

- (ZMVideoSDKErrors) unSubscribeAudio

Unsubscribes from streaming audio raw data.

Returns
If the function succeeds, the return value is ZMVideoSDKErrors_Success. Otherwise failed.

◆ unSubscribeVideo:

- (ZMVideoSDKErrors) unSubscribeVideo: (id< ZMVideoSDKBroadcastStreamingVideoDelegate >) delegate

Unsubscribes from streaming video raw data.

Parameters
delegateThe video raw data callback object.
Returns
If the function succeeds, the return value is ZMVideoSDKErrors_Success. Otherwise failed.