isAudioTrackSupportAvailable method

bool isAudioTrackSupportAvailable()
inherited

Returns whether audio track selection is supported on this platform.

This method allows developers to query at runtime whether the current platform supports audio track selection functionality. This is useful for platforms like web where audio track selection may not be available.

Returns true if getAudioTracks and selectAudioTrack are supported, false otherwise.

Example usage:

if (controller.isAudioTrackSupportAvailable()) {
  final tracks = await controller.getAudioTracks();
  // Show audio track selection UI
} else {
  // Hide audio track selection UI or show unsupported message
}

Implementation

bool isAudioTrackSupportAvailable() {
  return _videoPlayerPlatform.isAudioTrackSupportAvailable();
}