getVideoTrack method

Future<int?> getVideoTrack()

Returns active video track index

Implementation

Future<int?> getVideoTrack() async {
  _throwIfNotInitialized('getVideoTrack');
  var activeVideoTrack = await vlcPlayerPlatform.getVideoTrack(_viewId);
  value = value.copyWith(activeVideoTrack: activeVideoTrack);
  return activeVideoTrack;
}