// // 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