setPreferredSubtitleLanguage method

bool setPreferredSubtitleLanguage(
  1. String language
)

Set the preferred subtitle language of the player. An empty string means using the system default.

Implementation

bool setPreferredSubtitleLanguage(String language) {
  if (!disposed && language != preferredSubtitleLanguage.value) {
    preferredSubtitleLanguage.value = language;
    if (id.value != null) {
      _setPreferredSubtitleLanguage();
    }
    return true;
  }
  return false;
}