Skip to content

Commit

Permalink
feat: support 4.3.1.136
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Jul 18, 2024
1 parent 43aede5 commit c173a14
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
12 changes: 12 additions & 0 deletions headers/rtc_4.3.1.136/custom_headers/CustomIAgoraMediaPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ class IMediaPlayer {
*/
virtual int setPlayerOptionInString(const char *key, const char *value) = 0;

/**
* @iris_api_id: MediaPlayer_getPlayerOption_ae3d0cf
* @source: virtual int getPlayerOption(const char* key, int& value) = 0;
*/
virtual int getPlayerOptionInInt(const char *key, int &value) = 0;

/**
* @iris_api_id: MediaPlayer_getPlayerOption_f15226a
* @source: virtual int getPlayerOption(const char* key, agora::util::AString& value) = 0;
*/
virtual int getPlayerOptionInString(const char *key, agora::util::AString &value) = 0;

/**
* @iris_api_id: MediaPlayer_registerAudioFrameObserver_a5b510b
* @source: virtual int registerAudioFrameObserver(media::IAudioPcmFrameSink* observer, RAW_AUDIO_FRAME_OP_MODE_TYPE mode) = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#pragma once

#include "AgoraBase.h"
#include "AgoraMediaBase.h"
#include "IAgoraMediaPlayer.h"

namespace agora{
namespace rtc{
namespace ext{

class IMediaPlayerSource
{
// ----------------------------- 👇🏻overload API👇🏻 -----------------------------

/**
* @iris_api_id: MediaPlayerSource_setPlayerOption_e43f201
* @source: virtual int setPlayerOption(const char* key, int64_t value) = 0;
*/
virtual int setPlayerOptionInInt(const char *key, int64_t value) = 0;

/**
* @iris_api_id: MediaPlayerSource_setPlayerOption_ccad422
* @source: virtual int setPlayerOption(const char* key, const char* value) = 0;
*/
virtual int setPlayerOptionInString(const char *key, const char *value) = 0;

/**
* @iris_api_id: MediaPlayerSource_getPlayerOption_ae3d0cf
* @source: virtual int getPlayerOption(const char* key, int& value) = 0;
*/
virtual int getPlayerOptionInInt(const char *key, int &value) = 0;

/**
* @iris_api_id: MediaPlayerSource_getPlayerOption_f15226a
* @source: virtual int getPlayerOption(const char* key, agora::util::AString& value) = 0;
*/
virtual int getPlayerOptionInString(const char *key, agora::util::AString &value) = 0;

// ----------------------------- 👆🏻overload API👆🏻 -----------------------------
};

} // namespace ext
} // namespace rtc
} // namespace agora
12 changes: 12 additions & 0 deletions headers/rtc_4.3.1.136/custom_headers/CustomIAgoraRtcEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ class IRtcEngine {

// ----------------------------- 👇🏻rename API👇🏻 -----------------------------

/**
* @iris_api_id: RtcEngine_getUserInfoByUid_0a0b913
* @source: virtual int getUserInfoByUid(const char* channelId, uid_t uid, rtc::UserInfo* userInfo) = 0;
*/
virtual int getUserInfoByUidWithChannelId(const char *channelId, uid_t uid, rtc::UserInfo *userInfo) = 0;

/**
* @iris_api_id: RtcEngine_getUserInfoByUserAccount_86c855f
* @source: virtual int getUserInfoByUserAccount(const char* channelId, const char* userAccount, rtc::UserInfo* userInfo) = 0;
*/
virtual int getUserInfoByUserAccountWithChannelId(const char* channelId, const char* userAccount, rtc::UserInfo* userInfo) = 0;

/**
* @iris_api_id: RtcEngine_startPreview
* @source: virtual int startPreview() = 0;
Expand Down

0 comments on commit c173a14

Please sign in to comment.