setSourceBytes method

Future<void> setSourceBytes(
  1. Uint8List bytes
)

Implementation

Future<void> setSourceBytes(Uint8List bytes) async {
  _source = BytesSource(bytes);
  await creatingCompleter.future;
  await _completePrepared(
    () => _platform.setSourceBytes(playerId, bytes),
  );
}