Skip to content

Commit 8a1f0cd

Browse files
author
xianing
committed
Merge branch 'master' of https://github.com/AgoraIO/API-Examples into staging
� Conflicts: � Android/APIExample/lib-player-helper/src/main/cpp/include/IAgoraMediaEngine.h � Android/APIExample/lib-player-helper/src/main/cpp/include/IAgoraRtcChannel.h � Android/APIExample/lib-player-helper/src/main/cpp/include/IAgoraRtcEngine.h � Android/APIExample/lib-raw-data/src/main/cpp/include/IAgoraMediaEngine.h � Android/APIExample/lib-raw-data/src/main/cpp/include/IAgoraRtcChannel.h � Android/APIExample/lib-raw-data/src/main/cpp/include/IAgoraRtcEngine.h � Android/APIExample/lib-stream-encrypt/src/main/cpp/include/agora/IAgoraMediaEngine.h � Android/APIExample/lib-stream-encrypt/src/main/cpp/include/agora/IAgoraRtcChannel.h � Android/APIExample/lib-stream-encrypt/src/main/cpp/include/agora/IAgoraRtcEngine.h
2 parents eea4112 + 827376d commit 8a1f0cd

File tree

10 files changed

+248
-613
lines changed

10 files changed

+248
-613
lines changed

Android/APIExample/lib-player-helper/src/main/cpp/include/IAgoraMediaEngine.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,6 @@ struct ExternalVideoFrame {
664664
/** 16: The video pixel format is I422.
665665
*/
666666
VIDEO_PIXEL_I422 = 16,
667-
/** 17: The video pixel format is GL_TEXTURE_2D.
668-
*/
669-
VIDEO_TEXTURE_2D = 17,
670-
/** 18: The video pixel format is GL_TEXTURE_OES.
671-
*/
672-
VIDEO_TEXTURE_OES = 18,
673667
};
674668

675669
/** The buffer type. See #VIDEO_BUFFER_TYPE

Android/APIExample/lib-player-helper/src/main/cpp/include/IAgoraRtcChannel.h

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,24 @@ class IChannelEventHandler {
381381
(void)rtcChannel;
382382
(void)uid;
383383
}
384+
385+
/** Occurs when the first remote video frame is rendered.
386+
The SDK triggers this callback when the first frame of the remote video is displayed in the user's video window. The application can get the time elapsed from a user joining the channel until the first video frame is displayed.
387+
388+
@param rtcChannel IChannel
389+
@param uid User ID of the remote user sending the video stream.
390+
@param width Width (px) of the video frame.
391+
@param height Height (px) of the video stream.
392+
@param elapsed Time elapsed (ms) from the local user calling the \ref IChannel::joinChannel "joinChannel" method until the SDK triggers this callback.
393+
*/
394+
virtual void onFirstRemoteVideoFrame(IChannel* rtcChannel, uid_t uid, int width, int height, int elapsed) {
395+
(void)rtcChannel;
396+
(void)uid;
397+
(void)width;
398+
(void)height;
399+
(void)elapsed;
400+
}
401+
384402
/** Occurs when the video size or rotation of a specified user changes.
385403
386404
@param rtcChannel IChannel
@@ -584,21 +602,6 @@ class IChannelEventHandler {
584602
(void)state;
585603
(void)reason;
586604
}
587-
588-
/** Occurs when join success after calling \ref IRtcEngine::setLocalAccessPoint "setLocalAccessPoint" or \ref IRtcEngine::setCloudProxy "setCloudProxy"
589-
@param rtcChannel IChannel
590-
@param uid User ID of the user joining the channel.
591-
@param proxyType type of proxy agora sdk connected, proxyType will be NONE_PROXY_TYPE if not connected to proxy(fallback).
592-
@param localProxyIp local proxy ip list. if not join local proxy, it will be "".
593-
@param elapsed Time elapsed (ms) from the user calling the \ref IRtcEngine::joinChannel "joinChannel" method until the SDK triggers this callback.
594-
*/
595-
virtual void onProxyConnected(IChannel* rtcChannel, uid_t uid, PROXY_TYPE proxyType, const char* localProxyIp, int elapsed) {
596-
(void)rtcChannel;
597-
(void)uid;
598-
(void)proxyType;
599-
(void)localProxyIp;
600-
(void)elapsed;
601-
}
602605
};
603606

604607
/** The IChannel class. */
@@ -1267,21 +1270,6 @@ class IChannel {
12671270
- < 0: Failure.
12681271
*/
12691272
virtual int setRemoteVideoStreamType(uid_t userId, REMOTE_VIDEO_STREAM_TYPE streamType) = 0;
1270-
/** Turn WIFI acceleration on or off.
1271-
1272-
@note
1273-
- This method is called before and after joining a channel.
1274-
- Users check the WIFI router app for information about acceleration. Therefore, if this interface is invoked, the caller accepts that the caller's name will be displayed to the user in the WIFI router application on behalf of the caller.
1275-
1276-
@param enabled
1277-
- true:Turn WIFI acceleration on.
1278-
- false:Turn WIFI acceleration off.
1279-
1280-
@return
1281-
- 0: Success.
1282-
- < 0: Failure.
1283-
*/
1284-
virtual int enableWirelessAccelerate(bool enabled) = 0;
12851273
/** Sets the default stream type of remote videos.
12861274
12871275
Under limited network conditions, if the publisher has not disabled the dual-stream mode using

0 commit comments

Comments
 (0)