setPreferredAudioLanguage method
Set the preferred audio language of the player. An empty string means using the system default.
Implementation
bool setPreferredAudioLanguage(String language) {
if (!disposed && language != preferredAudioLanguage.value) {
preferredAudioLanguage.value = language;
if (id.value != null) {
_setPreferredAudioLanguage();
}
return true;
}
return false;
}