15#ifndef zego_api_media_publisher_h
16#define zego_api_media_publisher_h
22namespace MEDIAPUBLISHER
Definition: zego-api-media-publisher.h:86
virtual void OnStop(AV::PublishChannelIndex channelIdx)=0
virtual void OnFileOpen(const char *path, AV::PublishChannelIndex channelIdx)=0
virtual void OnFileDataEnd(const char *path, AV::PublishChannelIndex channelIdx)=0
virtual void OnStart(AV::PublishChannelIndex channelIdx)=0
virtual void OnFileClose(const char *path, int code, AV::PublishChannelIndex channelIdx)=0
virtual void OnFileDataBegin(const char *path, AV::PublishChannelIndex channelIdx)=0
PublishChannelIndex
Definition: zego-api-defines.h:976
@ PUBLISH_CHN_MAIN
Definition: zego-api-defines.h:977
@ ERROR_SAMPLERATE
Definition: zego-api-media-publisher.h:56
@ ERROR_NONE
Definition: zego-api-media-publisher.h:32
@ ERROR_DELAY_QUEUE_FULL
Definition: zego-api-media-publisher.h:52
@ ERROR_FILE
Definition: zego-api-media-publisher.h:36
@ ERROR_CODEC
Definition: zego-api-media-publisher.h:44
@ ERROR_PATH
Definition: zego-api-media-publisher.h:40
@ ERROR_TS_GO_BACK
Definition: zego-api-media-publisher.h:48
ZEGOAVKIT_API void Create(AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
ZEGOAVKIT_API void Reset(AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
ZEGOAVKIT_API long GetDuration(AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
ZEGOAVKIT_API void AddPath(const char *path, bool clear, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
ZEGOAVKIT_API void SetVideoPtsDelay(int delay_ms, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
ZEGOAVKIT_API void CreateWithConfig(MediaPublisherConfig *config, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
ZEGOAVKIT_API void SetEventCallback(PublisherEventCallback *callback, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
ZEGOAVKIT_API long GetCurrentDuration(AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
ZEGOAVKIT_API void SeekTo(long timestamp_ms, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
MediaPublishMode
Definition: zego-api-media-publisher.h:63
@ MediaPublishModeBothVideoAndAudio
Definition: zego-api-media-publisher.h:67
@ MediaPublishModeOnlyVideo
Definition: zego-api-media-publisher.h:71
ZEGOAVKIT_API void Destroy(AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
Definition: AVDefines.h:17
#define ZEGOAVKIT_API
Definition: zego-api-defines.h:59