-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from AgoraIO-Extensions/dev/android
feat: support android
- Loading branch information
Showing
9 changed files
with
94 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#ifndef __IRIS_PLUGIN_C_API_H__ | ||
#define __IRIS_PLUGIN_C_API_H__ | ||
|
||
#include "iris_plugin_platform.h" | ||
|
||
typedef void *PluginSamplePtr; | ||
IRIS_PLUGIN_API bool EnablePlugin(PluginSamplePtr plugin); | ||
IRIS_PLUGIN_API bool DisablePlugin(PluginSamplePtr plugin); | ||
IRIS_PLUGIN_API PluginSamplePtr CreateSampePlugin(void *rtcEnginePtr); | ||
IRIS_PLUGIN_API PluginSamplePtr CreateSamplePlugin(void *rtcEnginePtr); | ||
IRIS_PLUGIN_API void DestroySamplePlugin(PluginSamplePtr plugin); | ||
|
||
#endif |
7 changes: 0 additions & 7 deletions
7
dcg/android/app/src/main/java/io/agora/iris/IrisEventHandler.java
This file was deleted.
Oops, something went wrong.
128 changes: 0 additions & 128 deletions
128
dcg/android/app/src/main/java/io/agora/iris/IrisVIdeoPlugin.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
dcg/android/app/src/main/java/io/agora/iris/IrisVideoFrameObserver.java
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
dcg/android/app/src/main/java/io/agora/iris/plugin/IrisVideoPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.agora.iris.plugin; | ||
|
||
public class IrisVideoPlugin { | ||
static { System.loadLibrary("VideoObserverPlugin"); } | ||
|
||
private long handle; | ||
|
||
public IrisVideoPlugin(long nativeHandle) { | ||
handle = createSamplePlugin(nativeHandle); | ||
} | ||
|
||
public void destroy() { | ||
destroySamplePlugin(this.handle); | ||
this.handle = 0; | ||
} | ||
|
||
boolean enable() { return enablePlugin(this.handle); } | ||
|
||
boolean disable() { return disablePlugin(this.handle); } | ||
|
||
private native long createSamplePlugin(long nativeHandle); | ||
|
||
private native void destroySamplePlugin(long handle); | ||
|
||
private native boolean enablePlugin(long handle); | ||
|
||
private native boolean disablePlugin(long handle); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters