feat: draggable progress bar (seek) and settings sliders

This commit is contained in:
2026-08-17 12:20:05 +08:00
parent 91665bbbd5
commit d1d903278e
4 changed files with 77 additions and 9 deletions
@@ -355,6 +355,13 @@ class JsBridge(
mediaSourceRef?.next(index)
}
// 拖动进度条 seek 到指定位置(毫秒)
// Seek to the given position (ms) when dragging the progress bar
@android.webkit.JavascriptInterface
fun mediaSeekTo(index: Int, position: Long) {
mediaSourceRef?.seekTo(index, position)
}
// 跳转到指定会话的播放界面(封面点击)
// Jump to the session's playback UI (cover tap)
@android.webkit.JavascriptInterface