getCaptionsLanguages method

List<String>? getCaptionsLanguages(
  1. {required MediaItem item,
  2. required bool autoGenerated}
)

Gets a video's cached caption languages.

Implementation

List<String>? getCaptionsLanguages({
  required MediaItem item,
  required bool autoGenerated,
}) {
  return getPreference<List<String>?>(
    key: 'captions/$autoGenerated/${item.mediaIdentifier}',
    defaultValue: null,
  );
}