bytes static method

PlayerMedia<Uint8List> bytes(
  1. Uint8List resource, {
  2. Duration? initial,
  3. bool? preload,
})

Implementation

static PlayerMedia<Uint8List> bytes(Uint8List resource,
    {Duration? initial, bool? preload}) {
  return PlayerMedia(
    type: PlayerMediaType.bytes,
    resource: resource,
    preload: preload ?? false,
    initial: initial,
  );
}