diff --git a/sdkdemo/build.gradle b/sdkdemo/build.gradle index 783f38783..1ca9c242c 100644 --- a/sdkdemo/build.gradle +++ b/sdkdemo/build.gradle @@ -137,8 +137,8 @@ dependencies { api project(path: ':sdk:video-link-android') } - implementation 'com.tencent.iot.thirdparty.android:ijkplayer-java:1.0.5' - implementation 'com.tencent.iot.thirdparty.android:ijkplayer-armv7a:1.0.5' + implementation 'com.tencent.iot.thirdparty.android:ijkplayer-java:1.0.7' + implementation 'com.tencent.iot.thirdparty.android:ijkplayer-armv7a:1.0.7' implementation 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7-mpp-dev-11' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7-mpp-dev-11' diff --git a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt index 6c9588282..3a61e82d7 100644 --- a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt +++ b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt @@ -449,6 +449,7 @@ class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Surface it.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec-auto-rotate", 1) it.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec-handle-resolution-change", 1) + it.setFrameSpeed(1.5f) while (!::surface.isInitialized) { delay(50) L.e("delay for waiting surface.")