NELivePlayerFactory Protocol Reference

Conforms to NSObject
Declared in NELivePlayer.h

+ setPreloadResultValidityS: required method

设置预调度结果有效期

+ (void)setPreloadResultValidityS:(NSInteger)validity

Parameters

validity

有效期(单位秒)。默认:30*60 最小取值:60

Declared In

NELivePlayer.h

+ addPreloadUrls: required method

增加预调度任务

+ (void)addPreloadUrls:(NSArray<NSString*> *)urls

Parameters

urls

预调度的url

Declared In

NELivePlayer.h

+ removePreloadUrls: required method

移除预调度任务

+ (void)removePreloadUrls:(NSArray<NSString*> *)urls

Parameters

urls

预调度的url

Declared In

NELivePlayer.h

+ refreshPreloadUrls required method

强制刷新所有预调度任务

+ (void)refreshPreloadUrls

Declared In

NELivePlayer.h

+ queryPreloadTasks: required method

查询预调度任务

+ (void)queryPreloadTasks:(void ( ^ ) ( NSArray<NSDictionary*> *tasks ))complete

Parameters

complete

查询完成。结果提取key:NELPGslbUrlKey(url) 和 NELPGslbStatusKey(状态)

Declared In

NELivePlayer.h

+ queryPreloadUrlResult:completion: required method

查询预调度任务结果

+ (void)queryPreloadUrlResult:(NSString *)url completion:(NELPGslbQueryResultBlock)completion

Parameters

url

待查询的地址

complete

调度结果完成

Declared In

NELivePlayer.h

+ setLogLevel: required method

设置日志级别

+ (void)setLogLevel:(NELPLogLevel)logLevel

Parameters

logLevel

日志级别

Declared In

NELivePlayer.h

+ setLogCallback: required method

设置日志信息回调

+ (void)setLogCallback:(NELivePlayerLogCallback)logCallBack

Parameters

logCallBack

日志回调

Declared In

NELivePlayer.h

+ setLogUserId: required method

设置用户的日志标志

+ (void)setLogUserId:(NSString *)userId

Parameters

userId

用户的日志标志

Declared In

NELivePlayer.h

+ getLogPath required method

获取当前日志的路径

+ (NSString *)getLogPath

Return Value

日志的路径

Discussion

需要对日志操作,请在当前实例析构前使用日志以确保日志存在,不可删除该路径下的日志。

Declared In

NELivePlayer.h

+ getSDKVersion required method

获取当前SDK版本号

+ (NSString *)getSDKVersion

Return Value

SDK版本号

Declared In

NELivePlayer.h

+ isSupportHEVCDecode required method

是否支持h.265解码

+ (BOOL)isSupportHEVCDecode

Discussion

是否支持h.265解码

Declared In

NELivePlayer.h

+ setExternConfigAudioSession: required method

外部配置AudioSession

+ (void)setExternConfigAudioSession:(BOOL)isExternConfig

Parameters

isExternConfig

YES:外部配置AudioSession NO:内部配置AudioSession 默认:NO

Discussion

外部配置AudioSession

Declared In

NELivePlayer.h