-
Notifications
You must be signed in to change notification settings - Fork 224
边下边播
fengxing edited this page Jan 7, 2019
·
1 revision
@interface SuperPlayerViewConfig : NSObject
/// 是否镜像,默认NO
@property BOOL mirror;
/// 是否硬件加速,默认YES
@property BOOL hwAcceleration;
@property BOOL hwAccelerationChanged;
/// 播放速度,默认1.0
@property CGFloat playRate;
/// 是否静音,默认NO
@property BOOL mute;
/// 填充模式,默认铺满。 参见 TXLiveSDKTypeDef.h
@property NSInteger renderMode;
/// http头,跟进情况自行设置
@property NSDictionary *headers;
/// 播放器最大缓存个数
@property (nonatomic) NSInteger maxCacheItem;
/// 时移域名,默认为playtimeshift.live.myqcloud.com
@property NSString *playShiftDomain;
@end
maxCacheItem设为0,即关闭播放器缓存。
*** 播放器缓存只针对点播,直播flv是没有缓存的,此设置无效;直播hls必须关闭,否者播放有问题 ***