setDataSource method

Future<void> setDataSource({
  1. String uri = '',
  2. String path = '',
})

Setting the data source

uri and path

see play method

Implementation

Future<void> setDataSource({String uri='',String path=''}) async {
  assert(uri.isNotEmpty || path.isNotEmpty);
  await _ensureInitialized();
  if(_isNeedDisposed) return;
  await _vlcApi.setDataSource(uri,path,_textureId);
}