@@ -141,7 +141,7 @@ private static String computeDefaultResolution(final Context context, final int
141141 final SharedPreferences preferences
142142 = PreferenceManager .getDefaultSharedPreferences (context );
143143
144- // Load the prefered resolution otherwise the best available
144+ // Load the preferred resolution otherwise the best available
145145 String resolution = preferences != null
146146 ? preferences .getString (context .getString (key ), context .getString (value ))
147147 : context .getString (R .string .best_resolution_key );
@@ -161,7 +161,7 @@ private static String computeDefaultResolution(final Context context, final int
161161 *
162162 * @param defaultResolution the default resolution to look for
163163 * @param bestResolutionKey key of the best resolution
164- * @param defaultFormat the default fomat to look for
164+ * @param defaultFormat the default format to look for
165165 * @param videoStreams list of the video streams to check
166166 * @return index of the default resolution&format
167167 */
@@ -351,7 +351,7 @@ static int getMostCompactAudioIndex(@Nullable MediaFormat format,
351351 * @param targetResolution the resolution to look for
352352 * @param targetFormat the format to look for
353353 * @param videoStreams the available video streams
354- * @return the index of the prefered video stream
354+ * @return the index of the preferred video stream
355355 */
356356 static int getVideoStreamIndex (final String targetResolution , final MediaFormat targetFormat ,
357357 final List <VideoStream > videoStreams ) {
@@ -413,7 +413,7 @@ static int getVideoStreamIndex(final String targetResolution, final MediaFormat
413413 * @param context Android app context
414414 * @param defaultResolution the default resolution
415415 * @param videoStreams the list of video streams to check
416- * @return the index of the prefered video stream
416+ * @return the index of the preferred video stream
417417 */
418418 private static int getDefaultResolutionWithDefaultFormat (final Context context ,
419419 final String defaultResolution ,
0 commit comments