Files
plezy/lib/mpv/player/video_rect_support.dart
T

21 lines
696 B
Dart

/// Mixin for players that support video rect positioning.
///
/// Players that render video behind the Flutter view (e.g., using
/// native window embedding or GtkGLArea) implement this mixin to
/// receive layout updates from the [Video] widget.
mixin VideoRectSupport {
/// Updates the video rendering area.
///
/// Called by the [Video] widget when the layout changes.
///
/// [left], [top], [right], [bottom] define the rect in physical pixels.
/// [devicePixelRatio] is the device's pixel ratio for scaling.
Future<void> setVideoRect({
required int left,
required int top,
required int right,
required int bottom,
required double devicePixelRatio,
});
}