SimplePlayerSettings class
Holds every visual/behavioural option of a SimplePlayer instance.
Prefer the SimplePlayerSettings.network / SimplePlayerSettings.assets factories over the raw constructor.
Constructors
- SimplePlayerSettings({required String type, required String path, required String label, required double aspectRatio, required bool autoPlay, required bool loopMode, required Color colorAccent, BoxFit fit = BoxFit.contain, BoxFit fullScreenFit = BoxFit.contain, bool expand = false, bool muteOnAutoPlay = false})
-
const
- SimplePlayerSettings.assets({required String path, String? label, double? aspectRatio, bool? autoPlay, bool? loopMode, bool? expand, bool? muteOnAutoPlay, BoxFit? fit, BoxFit? fullScreenFit, Color? colorAccent})
-
See SimplePlayerSettings.network for the full property reference.
factory
- SimplePlayerSettings.network({required String path, String? label, double? aspectRatio, bool? autoPlay, bool? loopMode, bool? expand, bool? muteOnAutoPlay, BoxFit? fit, BoxFit? fullScreenFit, Color? colorAccent})
-
SimplePlayerSettings
factory
Properties
- aspectRatio → double
-
final
- autoPlay → bool
-
final
- colorAccent → Color
-
final
- expand → bool
-
final
- fit → BoxFit
-
How the video frame is scaled inside the player box (inline mode).
final
- fullScreenFit → BoxFit
-
How the video frame is scaled inside the player box (full screen mode).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
final
- loopMode → bool
-
final
- muteOnAutoPlay → bool
-
Starts the video silent when autoPlay kicks in.
final
- path → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited