IMovaFramePuller class abstract
Decodes one frame of a media at a given position, downscaled for preview.
A port rather than a concrete class because the only implementation spins a
second, hidden media_kit Player, and lib/src/core/** must stay
media_kit-free — the implementation lives in
lib/src/platform_impl/mpv_extractor_impl.dart.
在给定位置解出媒体的一帧,并按预览需要缩小。
之所以做成端口而非具体类:唯一的实现会另起一个隐藏的 media_kit Player,
而 lib/src/core/** 必须与 media_kit 解耦——实现放在
lib/src/platform_impl/mpv_extractor_impl.dart。
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Releases everything permanently.
-
extract(
String uri, Duration at, {required int width, required bool hwdec}) → Future< Uint8List?> -
Extracts the frame of
uriatat, encoded as JPEG. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → Future< void> - Frees the underlying decoder while staying reusable — called when the player goes idle or opens a different media.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited