getLength method

Future<int> getLength()

Gets current movie's length in ms.

return the movie length (in ms), or -1 if there is no media.

Implementation

Future<int> getLength()async{
  await _ensureInitialized();
  if(_isNeedDisposed) return -1;
  return await _vlcApi.getLength(_textureId);
}