VAPConfigs class

Configuration data for VAP animations.

VAPConfigs contains all the technical details about a VAP animation file, including dimensions, timing, orientation, and channel information. This data is typically provided by the native VAP player when an animation is loaded and ready to play.

The configuration is automatically parsed from native data and provided through the OnVideoConfigReady callback.

Example usage:

controller.setAnimListener(
  onVideoConfigReady: (config) {
    print('Animation size: ${config.width}x${config.height}');
    print('FPS: ${config.fps}');
    print('Total frames: ${config.totalFrames}');
  },
);

Constructors

VAPConfigs({required int width, required int height, required int fps, required int totalFrames, required bool isMix, required VideoOrientation orien, required int videoHeight, required int videoWidth, required Rect alphaPointRect, required Rect rgbPointRect, required int version})
Creates a VAPConfigs instance.
VAPConfigs.fromMap(Map<String, dynamic> json)
Creates a VAPConfigs instance from a map of native data.
factory

Properties

alphaPointRect Rect
Rectangle defining the alpha channel area in the video. Used for transparency information in mixed content animations.
final
fps int
Frames per second of the animation.
final
hashCode int
The hash code for this object.
no setterinherited
height int
The logical height of the animation in pixels.
final
isMix bool
Whether this is a mixed content animation (has both video and alpha channels).
final
orien VideoOrientation
The orientation of the video content.
final
rgbPointRect Rect
Rectangle defining the RGB channel area in the video. Contains the actual video content in mixed content animations.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalFrames int
Total number of frames in the animation.
final
version int
VAP format version number.
final
videoHeight int
The actual video height in pixels.
final
videoWidth int
The actual video width in pixels.
final
width int
The logical width of the animation in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this VAPConfigs instance to a map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited