ZegoMediaDataPublisher Class Reference
Inherits from | NSObject |
---|---|
Declared in | ZegoExpressDefines.h |
– setEventHandler:
The event handler
- (void)setEventHandler:(nullable id<ZegoMediaDataPublisherEventHandler>)handler
Parameters
handler |
The event handler |
---|
Declared In
ZegoExpressDefines.h
– addMediaFilePath:isClear:
Local absolute path to the media file.
- (void)addMediaFilePath:(NSString *)path isClear:(BOOL)isClear
Parameters
path |
Local absolute path to the media file. |
---|---|
isClear |
Whether to clear the publish queue. |
Declared In
ZegoExpressDefines.h
– reset
Available since: 2.17.0 Description: When you need to re-publish stream and do not need to continue publishing from the previous publish queue, you can call this function to reset this media data publisher’s state. Use cases: Often used in server-side publishing stream scenarios, such as AI classrooms. Caution: When the developer calls [logoutRoom], the state is automatically reset.
- (void)reset
Declared In
ZegoExpressDefines.h
– setVideoSendDelayTime:
Video playback time.Required: Yes.Value range: [0, 100] ms.
- (void)setVideoSendDelayTime:(int)delayTime
Parameters
delayTime |
Video playback time.Required: Yes.Value range: [0, 100] ms. |
---|
Declared In
ZegoExpressDefines.h
– seekTo:
The timestamp of the start of streaming (relative to the timestamp of the file currently being published, the starting value is 0). the unit is milliseconds
- (void)seekTo:(unsigned long long)millisecond
Parameters
millisecond |
The timestamp of the start of streaming (relative to the timestamp of the file currently being published, the starting value is 0). the unit is milliseconds |
---|
Declared In
ZegoExpressDefines.h
– getTotalDuration
The total duration of the current file.
- (unsigned long long)getTotalDuration
Return Value
The total duration of the current file.
Declared In
ZegoExpressDefines.h
– getCurrentDuration
The playing progress of the current file.
- (unsigned long long)getCurrentDuration
Return Value
The playing progress of the current file.
Declared In
ZegoExpressDefines.h
– getIndex
Available since: 3.4.0 Description: Get the channel index of the media data publisher.
- (NSNumber *)getIndex
Declared In
ZegoExpressDefines.h