VIAudioFile.network constructor

VIAudioFile.network(
  1. String? url, {
  2. VIAudioFileUsage usage = VIAudioFileUsage.unknown,
})

Constructs a VIAudioFile to play an audio file obtained from the network.

url - HTTP URL of the stream to play

usage - Audio file usage mode. ANDROID ONLY.

Implementation

VIAudioFile.network(
  this.url, {
  VIAudioFileUsage usage = VIAudioFileUsage.unknown,
})  : _dataSource = _VIAudioFileDataSource.network,
      _usage = usage,
      name = null,
      type = null;