getVideoTracksCount method

Future<int?> getVideoTracksCount()

Returns the number of video tracks

Implementation

Future<int?> getVideoTracksCount() async {
  _throwIfNotInitialized('getVideoTracksCount');
  final videoTracksCount = await vlcPlayerPlatform.getVideoTracksCount(
    _viewId,
  );
  value = value.copyWith(videoTracksCount: videoTracksCount);

  return videoTracksCount;
}