mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Add SubtitleParser.Factory
This is a corollary of `SubtitleDecoderFactory`. We may add a `boolean supportsFormat(Format)` method later if it turns out to be useful. PiperOrigin-RevId: 545225489
This commit is contained in:
parent
e67e28c4aa
commit
412e9398f9
1 changed files with 7 additions and 0 deletions
|
|
@ -32,6 +32,13 @@ import java.util.List;
|
|||
@UnstableApi
|
||||
public interface SubtitleParser {
|
||||
|
||||
/** Factory for {@link SubtitleParser} instances. */
|
||||
interface Factory {
|
||||
|
||||
/** Creates a {@link SubtitleParser} for the given {@link Format}. */
|
||||
SubtitleParser create(Format format);
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses {@code data} (and any data stored from previous invocations) and returns any resulting
|
||||
* complete {@link CuesWithTiming} instances.
|
||||
|
|
|
|||
Loading…
Reference in a new issue