ZegoLiveRoom
Classes | Namespaces | Enumerations | Functions
zego-api-media-publisher.h File Reference
#include "zego-api-defines.h"

Go to the source code of this file.

Classes

struct  ZEGO::MEDIAPUBLISHER::MediaPublisherConfig
 
class  ZEGO::MEDIAPUBLISHER::PublisherEventCallback
 

Namespaces

namespace  ZEGO
 
namespace  ZEGO::MEDIAPUBLISHER
 

Enumerations

enum  {
  ZEGO::MEDIAPUBLISHER::ERROR_NONE = 0 , ZEGO::MEDIAPUBLISHER::ERROR_FILE = -1 , ZEGO::MEDIAPUBLISHER::ERROR_PATH = -2 , ZEGO::MEDIAPUBLISHER::ERROR_CODEC = -3 ,
  ZEGO::MEDIAPUBLISHER::ERROR_TS_GO_BACK = -4 , ZEGO::MEDIAPUBLISHER::ERROR_DELAY_QUEUE_FULL = -5 , ZEGO::MEDIAPUBLISHER::ERROR_SAMPLERATE = -6
}
 
enum  ZEGO::MEDIAPUBLISHER::MediaPublishMode { ZEGO::MEDIAPUBLISHER::MediaPublishModeBothVideoAndAudio = 0 , ZEGO::MEDIAPUBLISHER::MediaPublishModeOnlyVideo = 1 }
 

Functions

ZEGOAVKIT_API void ZEGO::MEDIAPUBLISHER::Create (AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
 
ZEGOAVKIT_API void ZEGO::MEDIAPUBLISHER::CreateWithConfig (MediaPublisherConfig *config, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
 
ZEGOAVKIT_API void ZEGO::MEDIAPUBLISHER::Destroy (AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
 
ZEGOAVKIT_API void ZEGO::MEDIAPUBLISHER::AddPath (const char *path, bool clear, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
 
ZEGOAVKIT_API void ZEGO::MEDIAPUBLISHER::Reset (AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
 
ZEGOAVKIT_API void ZEGO::MEDIAPUBLISHER::SetVideoPtsDelay (int delay_ms, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
 
ZEGOAVKIT_API void ZEGO::MEDIAPUBLISHER::SeekTo (long timestamp_ms, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
 
ZEGOAVKIT_API long ZEGO::MEDIAPUBLISHER::GetDuration (AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
 
ZEGOAVKIT_API long ZEGO::MEDIAPUBLISHER::GetCurrentDuration (AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)
 
ZEGOAVKIT_API void ZEGO::MEDIAPUBLISHER::SetEventCallback (PublisherEventCallback *callback, AV::PublishChannelIndex channelIdx=AV::PublishChannelIndex::PUBLISH_CHN_MAIN)