AgoraRtePlayerConfig
该类提供播放器设置的相关方法。
Objective-C
@interface AgoraRtePlayerConfig : NSObject
- (void)setAutoPlay:(BOOL)autoPlay error:(AgoraRteError * _Nullable)error;
- (BOOL)autoPlay:(AgoraRteError * _Nullable)error;
- (void)setAbrSubscriptionLayer:(AgoraRteAbrSubscriptionLayer)layer error:(AgoraRteError * _Nullable)error;
- (AgoraRteAbrSubscriptionLayer)abrSubscriptionLayer:(AgoraRteError * _Nullable)error;
- (void)setAbrFallbackLayer:(AgoraRteAbrFallbackLayer)layer error:(AgoraRteError * _Nullable)error;
- (AgoraRteAbrFallbackLayer)abrFallbackLayer:(AgoraRteError * _Nullable)error;
@end
自从
v4.5.0
方法
setAutoPlay:error:
设置是否自动播放。详见 setAutoPlay:error:。
autoPlay:
获取自动播放设置。详见 autoPlay:。
setAbrSubscriptionLayer:error:
设置订阅的媒体流的质量层级。详见 setAbrSubscriptionLayer:error:。
abrSubscriptionLayer:
获取所订阅的视频流的质量层级。详见 abrSubscriptionLayer:。
setAbrFallbackLayer:error:
设置订阅的视频流的回退选项。详见 setAbrFallbackLayer:error:。
abrFallbackLayer:
获取设置的视频流回退选项。详见 abrFallbackLayer:。