You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
617 B
Objective-C
36 lines
617 B
Objective-C
//
|
|
// SuperPlayerViewConfig.m
|
|
// SuperPlayer
|
|
//
|
|
// Created by annidyfeng on 2018/10/18.
|
|
//
|
|
|
|
#import "SuperPlayerViewConfig.h"
|
|
#import "SuperPlayer.h"
|
|
#import "TXLiveSDKTypeDef.h"
|
|
|
|
@implementation SuperPlayerViewConfig
|
|
|
|
- (instancetype)init {
|
|
self = [super init];
|
|
self.hwAcceleration = 1;
|
|
self.playRate = 1;
|
|
self.renderMode = RENDER_MODE_FILL_EDGE;
|
|
self.maxCacheItem = 5;
|
|
self.playShiftDomain = @"playtimeshift.live.myqcloud.com";
|
|
self.enableLog = YES;
|
|
return self;
|
|
}
|
|
|
|
- (BOOL)hwAcceleration
|
|
{
|
|
#if TARGET_OS_SIMULATOR
|
|
return NO;
|
|
#else
|
|
return _hwAcceleration;
|
|
#endif
|
|
}
|
|
|
|
|
|
@end
|