ZegoMediaPlayerBlockDataDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | zego-api-mediaplayer-oc.h |
– onBlockBegin:playerIndex:
required method
开始抛出块数据通知
- (void)onBlockBegin:(NSString *)path playerIndex:(ZegoMediaPlayerIndex)playerIndex
Parameters
path |
将要抛出的块数据所属的文件路径 |
---|---|
index |
播放器序号 |
Declared In
zego-api-mediaplayer-oc.h
– onBlockData:size:playerIndex:
required method
播放器将块数据回调出来,会同步等待用户解密修改完毕,再进行播放
- (int)onBlockData:(unsigned char *const)buf size:(int)size playerIndex:(ZegoMediaPlayerIndex)playerIndex
Parameters
buf |
块数据 |
---|---|
size |
块数据大小 |
playerIndex |
播放器序号 |
Return Value
buf 的大小, 失败返回 -1
Declared In
zego-api-mediaplayer-oc.h