precache method

Future<bool> precache(
  1. DVMediaSource source, {
  2. int? bytes,
})

Fetches source before anything plays it: the first bytes, or all of it, into the disk cache -- or, in a browser, into the browser's cache. False where this target can do neither, or the source is not a progressive URL.

Implementation

Future<bool> precache(DVMediaSource source, {int? bytes}) =>
    DVMediaBackends.precache(source, bytes: bytes);