Media class
Media
A Media object to open inside a Player for playback.
final player = Player();
final playable = Media('file:///C:/Users/Hitesh/Video/Sample.mkv');
await player.open(playable);
Properties
- extras → dynamic
-
Additional optional user data.
final
- hashCode → int
-
For comparing with other Media instances.
no setteroverride
-
httpHeaders
→ Map<
String, String> ? -
HTTP headers.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → String
-
URI of the Media.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Prettier print logging.
override
Operators
-
operator ==(
Object other) → bool -
For comparing with other Media instances.
override
Static Methods
-
encodeAssetKey(
String uri) → String -
normalizeURI(
String uri) → String - Normalizes the passed URI.