NELivePlayerDataSource Protocol Reference

Conforms to NSObject
Declared in NELivePlayerDefine.h

– readAtPosition:buffer:size:error: required method

读取数据

- (int)readAtPosition:(long)position buffer:(void *)buffer size:(int)size error:(NSError **)error

Parameters

position

读取的位置

buffer

数据缓存

size

数据长度

offset

偏移

Return Value

实际读到的数据。< 0 表示失败

Discussion

读取数据

Declared In

NELivePlayerDefine.h

– getSize: required method

获取文件大小

- (BOOL)getSize:(int64_t *)size

Return Value

如果不知道实际大小,那么返回-1

Discussion

获取文件大小

Declared In

NELivePlayerDefine.h

– close required method

关闭

- (BOOL)close

Discussion

关闭

Declared In

NELivePlayerDefine.h

– getPath required method

返回用于拉流播放的链接地址

- (NSString *)getPath

Return Value

地址.null 表示失败

Discussion

返回用于拉流播放的链接地址

Declared In

NELivePlayerDefine.h