media property

DVMediaSource get media

This asset as something to play.

Refuses an asset that is neither video nor audio, naming it.

Implementation

DVMediaSource get media {
  if (kind != DVAssetKind.video && kind != DVAssetKind.audio) {
    throw ArgumentError.value(
      '$this',
      'asset',
      'is a ${kind.name}, and a video or a sound was asked for',
    );
  }
  return DVMediaSource.asset(path);
}