network static method

PlayerMedia<String> network(
  1. String resource, {
  2. Map<String, String>? headers,
  3. Duration? initial,
  4. bool? preload,
})

Implementation

static PlayerMedia<String> network(String resource,
    {Map<String, String>? headers, Duration? initial, bool? preload}) {
  return PlayerMedia(
    type: PlayerMediaType.network,
    resource: resource,
    headers: headers,
    preload: preload ?? false,
    initial: initial,
  );
}