Fix action playback source clock using controlled video decode

This commit is contained in:
zenord
2026-10-13 12:32:37 +08:00
parent 9cebf4f3d3
commit 9ec71c7e20
15 changed files with 335 additions and 91 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ class MediaPlayer {
var isLooping = false; val looping get() = isLooping
var volume = 1f; var released = false; var started = false
val videoWidth = 480; val videoHeight = 848
fun setSurface(surface: Surface) {}
var videoSurface: Surface? = null
fun setSurface(surface: Surface?) { videoSurface=surface }
fun setVolume(left: Float,right: Float) { volume = left }
fun setDataSource(fd: java.io.FileDescriptor, offset: Long,length: Long) {}
fun setOnPreparedListener(callback: (MediaPlayer)->Unit) { prepared = callback }