ZegoMediaDataPublisherEventHandler Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | ZegoExpressEventHandler.h |
– mediaDataPublisher:fileOpen:
Callback publisher object
- (void)mediaDataPublisher:(ZegoMediaDataPublisher *)publisher fileOpen:(NSString *)path
Parameters
publisher |
Callback publisher object |
---|---|
path |
Path of currently open file |
Declared In
ZegoExpressEventHandler.h
– mediaDataPublisher:fileClose:errorCode:
Callback publisher object
- (void)mediaDataPublisher:(ZegoMediaDataPublisher *)publisher fileClose:(NSString *)path errorCode:(int)errorCode
Parameters
publisher |
Callback publisher object |
---|---|
path |
Path of currently open file |
errorCode |
error code. 0 means closing the file normally. -1 is a file error. -2 is a path exception. -3 is a decoding exception. -4 is an incorrect timestamp. -5 Unable to fix audio/video synchronization. -6 Unsupported audio sample rate. Contact technical support for details. |
Declared In
ZegoExpressEventHandler.h
– mediaDataPublisher:fileDataBegin:
Callback publisher object
- (void)mediaDataPublisher:(ZegoMediaDataPublisher *)publisher fileDataBegin:(NSString *)path
Parameters
publisher |
Callback publisher object |
---|---|
path |
Path of currently open file |
Declared In
ZegoExpressEventHandler.h
– mediaDataPublisher:fileDataEnd:
Callback publisher object.
- (void)mediaDataPublisher:(ZegoMediaDataPublisher *)publisher fileDataEnd:(NSString *)path
Parameters
publisher |
Callback publisher object. |
---|---|
path |
The path of the file that has completed stream publishing. |
Declared In
ZegoExpressEventHandler.h