7 #ifndef AGORA_MEDIA_PLAYER_H_
8 #define AGORA_MEDIA_PLAYER_H_
10 #include "AgoraMediaBase.h"
11 #include "AgoraMediaPlayerTypes.h"
65 virtual int open(
const char* src, int64_t startPos) = 0;
113 virtual int seek(int64_t pos) = 0;
363 virtual int disconnect() = 0;
374 virtual int publishVideo() = 0;
387 virtual int unpublishVideo() = 0;
398 virtual int publishAudio() = 0;
410 virtual int unpublishAudio() = 0;
422 virtual int adjustPublishSignalVolume(
int volume) = 0;
536 virtual int takeScreenshot(
const char* filename) = 0;
546 virtual int selectInternalSubtitle(
int index) = 0;
623 virtual int switchSrc(
const char* src,
bool syncPts =
true) = 0;
722 uint32_t length) = 0;
747 virtual void onCompleted() = 0;
758 #ifndef WIN32_LEAN_AND_MEAN
759 #define WIN32_LEAN_AND_MEAN
763 #define AGORA_PLAYER_API extern "C"
764 #define AGORA_PLAYER_CALL
766 #elif defined(__APPLE__)
768 #include <TargetConditionals.h>
769 #define AGORA_PLAYER_API __attribute__((visibility("default"))) extern "C"
770 #define AGORA_PLAYER_CALL
772 #elif defined(__ANDROID__) || defined(__linux__)
774 #define AGORA_PLAYER_API extern "C" __attribute__((visibility("default")))
775 #define AGORA_PLAYER_CALL
779 #define AGORA_PLAYER_API extern "C"
780 #define AGORA_PLAYER_CALL
Definition: AgoraMediaBase.h:12
Definition: IAgoraMediaPlayer.h:22
bool enable_chat_voice_mode
Definition: IAgoraMediaPlayer.h:27
void * context
Definition: IAgoraMediaPlayer.h:30