Skip to content

Commit a82ae88

Browse files
committed
修改v2.4.x上ijkplayer版本,demo添加追帧倍率。
Change-Id: Ief7fc07cd387524dfba32023ae5ae137674df931
1 parent c12b3db commit a82ae88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sdkdemo/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ dependencies {
137137
api project(path: ':sdk:video-link-android')
138138
}
139139

140-
implementation 'com.tencent.iot.thirdparty.android:ijkplayer-java:1.0.5'
141-
implementation 'com.tencent.iot.thirdparty.android:ijkplayer-armv7a:1.0.5'
140+
implementation 'com.tencent.iot.thirdparty.android:ijkplayer-java:1.0.7'
141+
implementation 'com.tencent.iot.thirdparty.android:ijkplayer-armv7a:1.0.7'
142142
implementation 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3'
143143
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7-mpp-dev-11'
144144
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7-mpp-dev-11'

sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Surface
449449
it.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec-auto-rotate", 1)
450450
it.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "mediacodec-handle-resolution-change", 1)
451451

452+
it.setFrameSpeed(1.5f)
452453
while (!::surface.isInitialized) {
453454
delay(50)
454455
L.e("delay for waiting surface.")

0 commit comments

Comments
 (0)