mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibVideo: Add PlaybackManager::from_mapped_file
This allows us to create a PlaybackManager from a file which has already been mapped, instead of passing a file name. This means that anyone who uses `PlaybackManager` can now use LibFSAC :)
This commit is contained in:
parent
69396d4c4d
commit
465fa3460f
Notes:
sideshowbarker
2024-07-16 22:14:49 +09:00
Author: https://github.com/caoimhebyrne
Commit: 465fa3460f
Pull-request: https://github.com/SerenityOS/serenity/pull/18767
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/LucasChollet
Reviewed-by: https://github.com/awesomekling
6 changed files with 23 additions and 1 deletions
|
@ -25,6 +25,8 @@ public:
|
|||
typedef Function<DecoderErrorOr<IterationDecision>(TrackEntry const&)> TrackEntryCallback;
|
||||
|
||||
static DecoderErrorOr<Reader> from_file(StringView path);
|
||||
static DecoderErrorOr<Reader> from_mapped_file(NonnullRefPtr<Core::MappedFile> mapped_file);
|
||||
|
||||
static DecoderErrorOr<Reader> from_data(ReadonlyBytes data);
|
||||
|
||||
EBMLHeader const& header() const { return m_header.value(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue