setPreferredAudioLanguage method

void setPreferredAudioLanguage(
  1. String languageCode
)

Set/Change audio language for currently playing asset. languageCode is based on ISO_639_2 language codes. Please see lib/multiaudio/ISO_639_2_LanguageCode.dart

Implementation

void setPreferredAudioLanguage(String languageCode) async {
  if (_methodChannel != null && languageCode.isNotEmpty && !Platform.isIOS) {
    _methodChannel!.invokeListMethod(
        "setPreferredAudioLanguage", {"code": languageCode});
  }
}