Skip to content

Commit

Permalink
[AUTO] Update native headers to 4.3.2.2_pip (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
sda-rob and guoxianzhe authored Aug 15, 2024
1 parent 2118c59 commit 1d615b8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
6 changes: 5 additions & 1 deletion headers/rtc_4.3.2.2_pip/include/AgoraBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -2244,8 +2244,12 @@ struct PipOptions {
int contentWidth;
int contentHeight;
#if defined(__APPLE__) && TARGET_OS_IOS
bool autoEnterPip;
void* associatedView = nullptr; // required
bool autoEnterPip = false;
uid_t uid = 0;
VIDEO_SOURCE_TYPE sourceType = VIDEO_SOURCE_TYPE::VIDEO_SOURCE_UNKNOWN;
#endif
PipOptions(): contentSource(NULL), contentWidth(0), contentHeight(0) {}
};

/**
Expand Down
6 changes: 6 additions & 0 deletions headers/rtc_4.3.2.2_pip/include/AgoraMediaBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ struct AudioPcmFrame {
/** The channel number.
*/
size_t num_channels_;
/** The audio track number. if mpk enableMultiAudioTrack, audio frame will have audio track number, eg 0 or 1.
*/
int audio_track_number_;
/** The number of bytes per sample.
*/
rtc::BYTES_PER_SAMPLE bytes_per_sample;
Expand All @@ -413,6 +416,7 @@ struct AudioPcmFrame {
this->sample_rate_hz_ = src.sample_rate_hz_;
this->bytes_per_sample = src.bytes_per_sample;
this->num_channels_ = src.num_channels_;
this->audio_track_number_ = src.audio_track_number_;

size_t length = src.samples_per_channel_ * src.num_channels_;
if (length > kMaxDataSizeSamples) {
Expand All @@ -429,6 +433,7 @@ struct AudioPcmFrame {
samples_per_channel_(0),
sample_rate_hz_(0),
num_channels_(0),
audio_track_number_(0),
bytes_per_sample(rtc::TWO_BYTES_PER_SAMPLE) {
memset(data_, 0, sizeof(data_));
}
Expand All @@ -438,6 +443,7 @@ struct AudioPcmFrame {
samples_per_channel_(src.samples_per_channel_),
sample_rate_hz_(src.sample_rate_hz_),
num_channels_(src.num_channels_),
audio_track_number_(src.audio_track_number_),
bytes_per_sample(src.bytes_per_sample) {
size_t length = src.samples_per_channel_ * src.num_channels_;
if (length > kMaxDataSizeSamples) {
Expand Down
19 changes: 19 additions & 0 deletions headers/rtc_4.3.2.2_pip/include/IAgoraRtcEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -7241,6 +7241,25 @@ class IRtcEngine : public agora::base::IEngineBase {
* - < 0: Failure..
*/
virtual int queryCameraFocalLengthCapability(agora::rtc::FocalLengthInfo* focalLengthInfos, int& size) = 0;

#if defined(__ANDROID__)
/**
* Set screen sharing MediaProjection.
*
* When screen capture stopped, the SDK will automatically release the MediaProjection internally.
*
* @param mediaProjection MediaProjection is an Android class that provides access to screen capture and recording capabiliies.
*
* @note
* It is mainly used in some specific scenarios, such as iot custom devices, or child process screen sharing.
* MediaProjection is not easily obtained or for other reasons.
*
* @return
* - 0: Success.
* - < 0: Failure.
*/
virtual int setExternalMediaProjection(void* mediaProjection) = 0;
#endif
#endif

#if defined(_WIN32) || defined(__APPLE__) || defined(__ANDROID__)
Expand Down

0 comments on commit 1d615b8

Please sign in to comment.