Meeting SDK for iOS API Reference
Loading...
Searching...
No Matches
MobileRTCRenderer Class Reference

#include <MobileRTCRenderer.h>

Inherits NSObject.

Instance Methods

(instancetype _Nonnull) - initWithDelegate:
 Initialize MobileRTCRenderer.
 
(MobileRTCRawDataError- setRawDataResolution:
 Call the function to set video resolution.
 
(MobileRTCRawDataError- subscribe:videoType:
 Call the function to subscribe to raw video data.
 
(MobileRTCRawDataError- unSubscribe
 Call the function to unsubscribe from raw video data.
 

Properties

NSUInteger userId
 MobileRTCRenderer's user ID.
 
MobileRTCVideoType videoType
 MobileRTCRenderer's video type.
 
MobileRTCVideoResolution resolution
 MobileRTCRenderer's video resolution.
 

Detailed Description

Definition at line 15 of file MobileRTCRenderer.h.

Method Documentation

◆ initWithDelegate:

- (instancetype _Nonnull) initWithDelegate: (id< MobileRTCVideoRawDataDelegate >_Nonnull) delegate

Initialize MobileRTCRenderer.

Parameters
delegate- The delegate to receive callbacks.
Returns
The MobileRTCRenderer object.

◆ setRawDataResolution:

- (MobileRTCRawDataError) setRawDataResolution: (MobileRTCVideoResolution) resolution

Call the function to set video resolution.

Returns
If the function succeeds, the return value is MobileRTCRawData_Success. Otherwise, the function fails and returns null.

◆ subscribe:videoType:

- (MobileRTCRawDataError) subscribe: (NSUInteger) userId
videoType: (MobileRTCVideoType) type 

Call the function to subscribe to raw video data.

Returns
If the function succeeds, the return value is MobileRTCRawData_Success. Otherwise, the function fails and returns null.
Note
Before entering the meeting, subscribe to your preview video data with userId = 0.
If you are already in the meeting, subscribe to your own video data using the real userId or userId = 0.

◆ unSubscribe

- (MobileRTCRawDataError) unSubscribe

Call the function to unsubscribe from raw video data.

Returns
If the function succeeds, the return value is MobileRTCRawData_Success. Otherwise, the function fails and returns null.

Property Documentation

◆ resolution

- (MobileRTCVideoResolution) resolution
readnonatomicassign

MobileRTCRenderer's video resolution.

Definition at line 30 of file MobileRTCRenderer.h.

◆ userId

- (NSUInteger) userId
readnonatomicassign

MobileRTCRenderer's user ID.

Definition at line 20 of file MobileRTCRenderer.h.

◆ videoType

- (MobileRTCVideoType) videoType
readnonatomicassign

MobileRTCRenderer's video type.

Definition at line 25 of file MobileRTCRenderer.h.