DVMediaCache class abstract interface

Where players get remote media from.

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

clear() → Future<void>
Deletes everything not being read right now.
close() → Future<void>
Stops the loopback server. Addresses it handed out stop working.
contains(String url, {int? bytes}) → Future<bool>
Whether the first bytes of url -- all of it, when null -- are on disk.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
playbackAddress(String url) → Future<String>
What a player should open for url: a loopback address that streams it through the cache, or url itself for anything that is not http: or https:.
precache(String url, {int? bytes}) → Future<void>
Fetches url into the cache before anything plays it: the first bytes of it, or all of it when bytes is null. Completes when the bytes are on disk; throws HttpException when the origin refuses.
size() → Future<int>
Bytes on disk.
toString() → String
A string representation of this object.
inherited

Operators

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