From 46a09ac9a9e2ee9c2b174b3205e3486b4e733ff6 Mon Sep 17 00:00:00 2001 From: archurtan Date: Thu, 30 Dec 2021 15:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0xp2p=20sdk=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ief3f35cf786f4be1b036e9c1e6733c554f6dcb69 --- sdk/video-link-android/build.gradle | 2 +- .../link/demo/video/preview/WlanVideoPreviewActivity.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/video-link-android/build.gradle b/sdk/video-link-android/build.gradle index f1c34bac5..63b0c0794 100644 --- a/sdk/video-link-android/build.gradle +++ b/sdk/video-link-android/build.gradle @@ -48,7 +48,7 @@ dependencies { // api('com.tencent.iot.thirdparty.android:xp2p-sdk:latest.integration') { // changing = true // } - api 'com.tencent.iot.thirdparty.android:xp2p-sdk:2.4.2-SNAPSHOT' + api 'com.tencent.iot.thirdparty.android:xp2p-sdk:2.4.2' api 'com.tencent.iot.thirdparty.android:media-server:1.0.0' } diff --git a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/WlanVideoPreviewActivity.kt b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/WlanVideoPreviewActivity.kt index 063faaa06..179e94aca 100644 --- a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/WlanVideoPreviewActivity.kt +++ b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/WlanVideoPreviewActivity.kt @@ -35,6 +35,7 @@ import kotlinx.android.synthetic.main.title_layout.* import kotlinx.coroutines.* import tv.danmaku.ijk.media.player.IjkMediaPlayer import java.lang.Runnable +import java.nio.charset.StandardCharsets import java.util.* @@ -311,6 +312,7 @@ class WlanVideoPreviewActivity : VideoBaseActivity(), TextureView.SurfaceTexture override fun avDataRecvHandle(id: String?, data: ByteArray?, len: Int) {} override fun avDataCloseHandle(id: String?, msg: String?, errorCode: Int) {} override fun onDeviceMsgArrived(id: String?, data: ByteArray?, len: Int): String { + Log.d(tag, "==onDeviceMsgArrived: ${data?.let { String(it, StandardCharsets.UTF_8) }}") return "app reply to device" }