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
+1
View File
@@ -97,6 +97,7 @@ fun main(args: Array<String>) {
TestScheduler.reset();CodecFixture.reset();MediaPlayer.created.clear();CodecFixture.emitNativeSurface=true
index.packages.values.forEach { CodecFixture.timelines[it.root+it.body.path]=it.body.ptsUs }
index.edges.mapNotNull { it.mouthRuntime }.forEach { CodecFixture.timelines[it.root+it.body.path]=it.body.ptsUs }
index.actionPack?.assets?.mapNotNull { it.media }?.forEach { CodecFixture.timelines[it.root+it.path]=it.ptsUs;CodecFixture.audioPaths.add(it.root+it.path) }
val binding=AvatarMediaBinding();binding.beginTurn(7)
val trace=mutableListOf<Pair<Long,VideoPresentation>>()
val view=EmotionActionAvatarView(context,pack,binding) { trace.add(TestScheduler.now to it) }