Implement positioned movie playback opcode

This commit is contained in:
gamer147
2026-07-29 15:41:01 -04:00
parent 71ae1b7c5b
commit 12af952b77
18 changed files with 523 additions and 46 deletions

View File

@@ -11,6 +11,7 @@ internal sealed record MovieAudioChunk(float[] InterleavedStereo, int FrameCount
internal interface IMovieDecoder : IDisposable
{
long? StopTimeMs { get; }
long InitialPositionMs => 0;
bool IsCompleted { get; }
string? Failure { get; }
long? FirstFramePresentationTimeMs => null;
@@ -28,5 +29,5 @@ internal interface IMovieDecoder : IDisposable
internal interface IMovieDecoderFactory
{
IMovieDecoder Open(MoviePayload movie);
IMovieDecoder Open(MoviePayload movie, long initialPositionMs = 0);
}