|
Video SDK for MacOS API 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. | |
| (void) | - addListener: |
| Adds a listener for broadcast streaming viewer interactive callbacks. | |
| (void) | - removeListener: |
| Removes a listener for broadcast streaming viewer interactive callbacks. | |
| (ZMVideoSDKErrors) | - sendChatToAll: |
| Sends a chat message to all participants in the broadcast stream. | |
| (ZMVideoSDKErrors) | - sendEmojiReaction: |
| Sends an emoji reaction to all participants in the broadcast stream. | |
| (BOOL) | - canSubscribeTranslationLanguage |
| Determines whether the viewer can subscribe to a translation language for live transcription. | |
| (ZMVideoSDKErrors) | - subscribeTranslationLanguage: |
| Subscribes to a translation language for live transcription. | |
| (ZMVideoSDKErrors) | - unsubscribeTranslationLanguage |
| Unsubscribes from the currently subscribed translation language for live transcription. | |
Broadcast streaming viewer interface.
Definition at line 98 of file ZMVideoSDKBroadcastStreamingViewer.h.
| - (void) addListener: | (id< ZMVideoSDKBroadcastStreamingViewerDelegate >) | listener |
Adds a listener for broadcast streaming viewer interactive callbacks.
| listener | The viewer delegate object. |
| - (BOOL) canSubscribeTranslationLanguage |
Determines whether the viewer can subscribe to a translation language for live transcription.
References canSubscribeTranslationLanguage.
Referenced by canSubscribeTranslationLanguage.
| - (ZMVideoSDKStreamingJoinStatus) getStreamingJoinStatus |
The join status.
References getStreamingJoinStatus.
Referenced by getStreamingJoinStatus.
| - (ZMVideoSDKErrors) joinStreaming: | (ZMVideoSDKSteamingJoinContext *) | joinContext |
Joins broadcast streaming asynchronously. Result is notified via onStreamingJoinStatusChanged .
| joinContext | The join context containing token and channel ID. |
ZMVideoSDKErrors_Success. Otherwise, this function returns an error. | - (ZMVideoSDKErrors) leaveStreaming |
Leaves broadcast streaming asynchronously. Result is notified through via onStreamingJoinStatusChanged .
ZMVideoSDKErrors_Success. Otherwise, this function returns an error. References leaveStreaming.
Referenced by leaveStreaming.
| - (void) removeListener: | (id< ZMVideoSDKBroadcastStreamingViewerDelegate >) | listener |
Removes a listener for broadcast streaming viewer interactive callbacks.
| listener | The viewer delegate object. |
| - (ZMVideoSDKErrors) sendChatToAll: | (NSString *) | content |
Sends a chat message to all participants in the broadcast stream.
| content | The chat message content to send. |
ZMVideoSDKErrors_Success. Otherwise, this function returns an error. | - (ZMVideoSDKErrors) sendEmojiReaction: | (ZMVideoSDKEmojiReactionType) | type |
Sends an emoji reaction to all participants in the broadcast stream.
| type | The emoji reaction type to send. |
ZMVideoSDKErrors_Success. Otherwise, this function returns an error. | - (ZMVideoSDKErrors) subscribeAudio: | (id< ZMVideoSDKBroadcastStreamingAudioDelegate >) | delegate |
Subscribes to streaming audio.
| delegate | The raw audio data callback object. |
ZMVideoSDKErrors_Success. Otherwise, this function returns an error. | - (ZMVideoSDKErrors) subscribeTranslationLanguage: | (ZMVideoSDKBroadcastStreamingTranslationLanguage) | language |
Subscribes to a translation language for live transcription.
| language | The translation language to subscribe to. |
ZMVideoSDKErrors_Success. Otherwise, this function returns an error. | - (ZMVideoSDKErrors) subscribeVideo: | (ZMVideoSDKResolution) | resolution | |
| broadcastStreamingVideoCallback: | (id< ZMVideoSDKBroadcastStreamingVideoDelegate >) | delegate |
Subscribes to streaming video.
| resolution | The desired video resolution. Supported: ZMVideoSDKResolution_180P, ZMVideoSDKResolution_360P, ZMVideoSDKResolution_720P, ZMVideoSDKResolution_1080P. |
| delegate | The raw video data callback object, see ZMVideoSDKBroadcastStreamingVideoDelegate. |
ZMVideoSDKErrors_Success. Otherwise, this function returns an error. | - (ZMVideoSDKErrors) unSubscribeAudio |
Unsubscribes from streaming audio raw data.
ZMVideoSDKErrors_Success. Otherwise, this function returns an error. References unSubscribeAudio.
Referenced by unSubscribeAudio.
| - (ZMVideoSDKErrors) unsubscribeTranslationLanguage |
Unsubscribes from the currently subscribed translation language for live transcription.
ZMVideoSDKErrors_Success. Otherwise, this function returns an error. References unsubscribeTranslationLanguage.
Referenced by unsubscribeTranslationLanguage.
| - (ZMVideoSDKErrors) unSubscribeVideo: | (id< ZMVideoSDKBroadcastStreamingVideoDelegate >) | delegate |
Unsubscribes from streaming video raw data.
| delegate | The video raw data callback object. |
ZMVideoSDKErrors_Success. Otherwise, this function returns an error.