VideoUltraPlayerPlatform class abstract
The platform interface contract for NativeTimelinePlayer.
Platform implementations must extend this class and register themselves as VideoUltraPlayerPlatform.instance during plugin registration.
- Inheritance
-
- Object
- PlatformInterface
- VideoUltraPlayerPlatform
- 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(
int textureId) → Future< void> -
exportCurrentTimeline(
int textureId, {String? outputPath}) → Future< String> - Exports the currently loaded (and edited) timeline without requiring a separate clip list. Preview and export share the same native state.
-
exportProgress(
) → Stream< TimelineExportProgress> -
exportTimeline(
List< Map< clips, {String? outputPath, Map<String, dynamic> >String, dynamic> ? config}) → Future<String> -
generateThumbnails(
String videoPath, List< int> timestampsMs, {int width = 120}) → Future<List< String> > -
Extracts and caches thumbnail frames from
videoPathat each timestamp intimestampsMs(milliseconds) and returns a list of absolute file-system paths to the cached JPEG images. -
insertClip(
int textureId, int atIndex, Map< String, dynamic> clip) → Future<void> -
Inserts
clipat positionatIndexin the timeline. -
load(
List< Map< clips, {Map<String, dynamic> >String, dynamic> ? config}) → Future<int> -
moveClip(
int textureId, int fromIndex, int toIndex) → Future< void> -
Moves the clip at
fromIndextotoIndex. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
int textureId) → Future< void> -
play(
int textureId) → Future< void> -
redo(
int textureId) → Future< void> - Reapplies the next edit-model snapshot after an undo.
-
removeAudioTrack(
int textureId) → Future< void> - Removes the external audio track from the loaded timeline.
-
removeClip(
int textureId, int clipIndex) → Future< void> -
Removes the clip at
clipIndexfrom the timeline. -
replaceClip(
int textureId, int clipIndex, Map< String, dynamic> clip) → Future<void> -
Replaces the clip at
clipIndexwithclip. -
seekTo(
int textureId, Duration position) → Future< void> -
seekToClip(
int textureId, int clipIndex) → Future< void> -
setAudioTrack(
int textureId, Map< String, dynamic> track) → Future<void> - Overlays an external audio track on the loaded timeline.
-
setClipAlignment(
int textureId, int clipIndex, double x, double y) → Future< void> -
setClipSpeed(
int textureId, int clipIndex, double speed) → Future< void> -
Sets the playback speed of the clip at
clipIndextospeed. -
setVolume(
int textureId, double volume) → Future< void> -
splitClip(
int textureId, int clipIndex, int atLocalPositionMs) → Future< void> -
Splits the clip at
clipIndexatatLocalPositionMsmilliseconds from its trim-start, producing two clips in its place. -
stateStream(
int textureId) → Stream< TimelinePlayerState> -
toString(
) → String -
A string representation of this object.
inherited
-
trimClip(
int textureId, int clipIndex, {int? trimStartMs, int? trimEndMs}) → Future< void> -
Adjusts the trim in/out points of the clip at
clipIndex. -
undo(
int textureId) → Future< void> - Restores the previous edit-model snapshot for the loaded timeline.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ VideoUltraPlayerPlatform
-
getter/setter pair