Agora Java API Reference for Android
Public Member Functions | Static Public Member Functions | List of all members
agora::rtc::IMediaStreamingSourceEx Class Referenceabstract
Inheritance diagram for agora::rtc::IMediaStreamingSourceEx:
agora::rtc::IMediaStreamingSource agora::RefCountInterface

Public Member Functions

virtual agora_refptr< IAudioEncodedFrameSendergetEncodedAudioFrameSender ()=0
 
virtual agora_refptr< IVideoEncodedImageSendergetEncodedVideoFrameSender ()=0
 
- Public Member Functions inherited from agora::rtc::IMediaStreamingSource
virtual int open (const char *url, int64_t start_pos, bool auto_play=true)=0
 Opens a media streaming source with a specified URL. More...
 
virtual int close ()=0
 Close current media streaming source. More...
 
virtual int getSourceId () const =0
 Gets the unique source ID of the streaming source. More...
 
virtual bool isVideoValid ()=0
 Retrieve whether video stream is valid. More...
 
virtual bool isAudioValid ()=0
 Retrieve whether audio stream is valid. More...
 
virtual int getDuration (int64_t &duration)=0
 Gets the duration of the streaming source. More...
 
virtual int getStreamCount (int64_t &count)=0
 Gets the number of the streming source. More...
 
virtual int getStreamInfo (int64_t index, media::base::PlayerStreamInfo *out_info)=0
 Gets the detailed information of a media stream. More...
 
virtual int setLoopCount (int64_t loop_count)=0
 Sets whether to loop the streaming source for playback. More...
 
virtual int play ()=0
 Play & push the streaming source. More...
 
virtual int pause ()=0
 Pauses the playing & pushing of the streaming source, Keep current position. More...
 
virtual int stop ()=0
 Stop the playing & pushing of the streaming source, set the position to 0. More...
 
virtual int seek (int64_t new_pos)=0
 Sets the playback position of the streaming source. After seek done, it will return to previous status. More...
 
virtual int getCurrPosition (int64_t &pos)=0
 Gets the current playback position of the media file. More...
 
virtual STREAMING_SRC_STATE getCurrState ()=0
 
virtual int appendSeiData (const InputSeiData &inSeiData)=0
 append the SEI data which can be sent attached to video packet More...
 
virtual int registerObserver (IMediaStreamingSourceObserver *observer)=0
 
virtual int unregisterObserver (IMediaStreamingSourceObserver *observer)=0
 
- Public Member Functions inherited from agora::RefCountInterface
virtual void AddRef () const =0
 
virtual RefCountReleaseStatus Release () const =0
 
virtual bool HasOneRef () const =0
 

Static Public Member Functions

static agora_refptr< IMediaStreamingSourceCreate (base::IAgoraService *agora_service, utils::worker_type streaming_worker)