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

#import <MobileRTCRenderer.h>

Inherits NSObject.

Instance Methods

(instancetype _Nonnull) - initWithDelegate:
 Call the function to initialize MobileRTCRenderer.
 
(MobileRTCRawDataError- setRawDataResolution:
 Call the function to set video resolution.
 
(MobileRTCRawDataError- subscribe:videoType:
 Call the function to subscribe video raw data. Before entering the meeting, you can subscribe your preview video data with userid=0, If you are already in the meeting, you can subscribe your own video data using the real userid or userid=0.
 
(MobileRTCRawDataError- unSubscribe
 Call the function to unsubscribe video raw data.
 

Properties

NSUInteger userId
 the userId of MobileRTCRenderer object.
 
MobileRTCVideoType videoType
 the video type of MobileRTCRenderer object.
 
MobileRTCVideoResolution resolution
 the video resolution of MobileRTCRenderer object.
 

Detailed Description

Definition at line 12 of file MobileRTCRenderer.h.

Method Documentation

◆ initWithDelegate:

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

Call the function to initialize MobileRTCRenderer.

Returns
The MobileRTCRenderer object.

◆ setRawDataResolution:

- (MobileRTCRawDataError) setRawDataResolution: (MobileRTCVideoResolution resolution

Call the function to set video resolution.

◆ subscribe:videoType:

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

Call the function to subscribe video raw data. Before entering the meeting, you can subscribe your preview video data with userid=0, If you are already in the meeting, you can subscribe your own video data using the real userid or userid=0.

Returns
the result of the method.

◆ unSubscribe

- (MobileRTCRawDataError) unSubscribe

Call the function to unsubscribe video raw data.

Returns
the result of the method.

Property Documentation

◆ resolution

- (MobileRTCVideoResolution) resolution
readnonatomicassign

the video resolution of MobileRTCRenderer object.

Definition at line 27 of file MobileRTCRenderer.h.

◆ userId

- (NSUInteger) userId
readnonatomicassign

the userId of MobileRTCRenderer object.

Definition at line 17 of file MobileRTCRenderer.h.

◆ videoType

- (MobileRTCVideoType) videoType
readnonatomicassign

the video type of MobileRTCRenderer object.

Definition at line 22 of file MobileRTCRenderer.h.