Skip to content

Commit 0ccd46b

Browse files
committed
[Android]update api
1 parent 0a13ab8 commit 0ccd46b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Diff for: Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ContentInspect.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,8 @@ private void joinChannel(String channelId) {
212212

213213
// Setup content inspect options
214214
ContentInspectConfig.ContentInspectModule contentInspectModule = new ContentInspectConfig.ContentInspectModule();
215-
contentInspectModule.vendor = ContentInspectConfig.CONTENT_INSPECT_VENDOR_AGORA;
216-
contentInspectModule.token = null;
217215
contentInspectModule.type = ContentInspectConfig.CONTENT_INSPECT_TYPE_MODERATION;
218-
contentInspectModule.frequency = 1;
216+
contentInspectModule.interval = 1;
219217
ContentInspectConfig contentInspectConfig = new ContentInspectConfig();
220218
contentInspectConfig.modules[0] = contentInspectModule;
221219
contentInspectConfig.moduleCount = 1;

Diff for: Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LiveStreaming.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,9 @@ public void run() {
483483
}
484484

485485
@Override
486-
public void onSnapshotTaken(String channel, int uid, String filePath, int width, int height, int errCode) {
487-
super.onSnapshotTaken(channel, uid, filePath, width, height, errCode);
488-
Log.d(TAG, String.format(Locale.US, "onSnapshotTaken channel=%s, uid=%d, filePath=%s, width=%d, height=%d, errorCode=%d", channel, uid, filePath, width, height, errCode));
486+
public void onSnapshotTaken(int uid, String filePath, int width, int height, int errCode) {
487+
super.onSnapshotTaken(uid, filePath, width, height, errCode);
488+
Log.d(TAG, String.format(Locale.US, "onSnapshotTaken uid=%d, filePath=%s, width=%d, height=%d, errorCode=%d", uid, filePath, width, height, errCode));
489489
if(errCode == 0){
490490
showLongToast("SnapshotTaken path=" + filePath);
491491
}else{

Diff for: Android/APIExample/gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)