Skip to content
This repository was archived by the owner on Jul 18, 2026. It is now read-only.

Commit b8e9b2f

Browse files
authored
Merge pull request #274 from misaka10032w/develop
[Fix] 修复MPV内核默认播放速度不生效的问题
2 parents 3cc254a + c1c165a commit b8e9b2f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/com/yenaly/han1meviewer/ui/view/video/HMediaKernel.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ class MpvMediaKernel(jzvd: Jzvd) : JZMediaInterface(jzvd) {
504504
private var currentPfd: ParcelFileDescriptor? = null
505505
private var detachFd: Int? = null
506506
private var pfdFilePath = false
507+
val defaultSpeed = Preferences.playerSpeed
507508
private val mpvOptions: Map<String, String>
508509
get() = buildMap {
509510
// 视频输出驱动:GPU 渲染(支持 GLSL 滤镜/Anime4K/插帧)
@@ -818,6 +819,7 @@ class MpvMediaKernel(jzvd: Jzvd) : JZMediaInterface(jzvd) {
818819
MPVLib.mpvEventId.MPV_EVENT_FILE_LOADED -> {
819820
// 文件加载成功
820821
jzvd.onPrepared()
822+
MPVLib.setPropertyDouble("speed", defaultSpeed.toDouble())
821823
}
822824
MPVLib.mpvEventId.MPV_EVENT_PLAYBACK_RESTART -> {
823825
// 播放重新开始

0 commit comments

Comments
 (0)