Skip to content

Commit

Permalink
fix. android native binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrixbirds committed Aug 22, 2019
1 parent 1ca7874 commit c98af77
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 2 deletions.
44 changes: 44 additions & 0 deletions android/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

# Sets the minimum version of CMake required to build the native library.

cmake_minimum_required(VERSION 3.4.1)

# Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK.

add_library( # Sets the name of the library.
apm-plugin-raw-data-api-java

# Sets the library as a shared library.
SHARED

# Provides a relative path to your source file(s).
src/main/cpp/src/agora_media_pre_processing.cpp )

# Searches for a specified prebuilt library and stores the path as a
# variable. Because CMake includes system libraries in the search path by
# default, you only need to specify the name of the public NDK library
# you want to add. CMake verifies that the library exists before
# completing its build.

find_library( # Sets the name of the path variable.
log-lib

# Specifies the name of the NDK library that
# you want CMake to locate.
log )

# Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries.

target_link_libraries( # Specifies the target library.
apm-plugin-raw-data-api-java

# Links the target library to the log library
# included in the NDK.
${log-lib} )
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions lib/RtcEngine.native.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ declare class RtcEngine {
* mediaMetaDataReceived | occurs when you received media meta data from the remote side through sendMediaData | on("mediaMetaDataReceived", evt) |
* localUserRegistered | occurs when you register user account success | on("localUserRegistered", evt) |
* userInfoUpdated | occurs when you peer side using user account join channel | on("userInfoUpdated", evt) |
* receivedChannelMediaRelay | occurs when you received channel media relay | on('receivedChannelMediaRelay", evt)|
* mediaRelayStateChanged | occurs when you received remote media relay state changed | on('mediaRelayStateChanged", evt)|
* ---
*
* @param eventType
Expand Down
2 changes: 2 additions & 0 deletions lib/RtcEngine.native.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/RtcEngine.native.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/RtcEngine.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RtcEngine {
* @ignore AG_PREFIX
*/
private static readonly AG_PREFIX: string = 'ag_rtc';

/**
* Creates a RtcEngine Object internal.
*
Expand Down Expand Up @@ -249,6 +249,8 @@ class RtcEngine {
* mediaMetaDataReceived | occurs when you received media meta data from the remote side through sendMediaData | on("mediaMetaDataReceived", evt) |
* localUserRegistered | occurs when you register user account success | on("localUserRegistered", evt) |
* userInfoUpdated | occurs when you peer side using user account join channel | on("userInfoUpdated", evt) |
* receivedChannelMediaRelay | occurs when you received channel media relay | on('receivedChannelMediaRelay", evt)|
* mediaRelayStateChanged | occurs when you received remote media relay state changed | on('mediaRelayStateChanged", evt)|
* ---
*
* @param eventType
Expand Down

0 comments on commit c98af77

Please sign in to comment.