addSlave method

Future<bool> addSlave({
  1. int type = 0,
  2. String uri = '',
  3. String path = '',
  4. bool select = true,
})

Add a slave (or subtitle) to the current media player.

type Subtitle = 0,Audio = 1 uri Uri of the slave(a valid RFC 2396 Uri) path a local path select True if this slave should be selected when it's loaded return true on success.

Implementation

Future<bool> addSlave({int type=0, String uri='',String path='', bool select=true}) async {
  assert(uri.isNotEmpty || path.isNotEmpty);
  await _ensureInitialized();
  if(_isNeedDisposed) return false;
  return await _vlcApi.addSlave(type,uri,path,select,_textureId);
}