Player class

Object handle create and boot the PlayerController

Constructors

Player()

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

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

Static Properties

booted bool
no setter
platforms Map<PlatformEnv, PlayerAdaptivePackage?>
add property to Player for return Map<PlatformEnv,PlayerContoller> named as platforms
getter/setter pair

Static Methods

asset(String media, {int? id, bool? autoPlay = true, bool? loop = true, bool? once}) PlayerController
create assets instance
boot() → dynamic
this need to use in windows,linux put this in main dynamically loaded native library https://api.dart.dev/stable/2.13.4/dart-ffi/DynamicLibrary-class.html
bytes(Uint8List media, {int? id, bool? autoPlay = true, bool? loop = true, bool? once}) PlayerController
create file instance
create({int? id, required PlayerMedia media, bool? autoPlay, bool? once, bool? loop}) PlayerController
create instance adapted on platform
file(String media, {int? id, bool? autoPlay = true, bool? loop = true, bool? once}) PlayerController
create file instance
network(String media, {int? id, bool? autoPlay = true, bool? loop = true, bool? once}) PlayerController
create network instance
stream(Stream media, {int? id, bool? autoPlay = true, bool? loop = true, bool? once}) PlayerController
create file instance