File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/player/helper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333import com .google .android .exoplayer2 .ui .AspectRatioFrameLayout ;
3434import com .google .android .exoplayer2 .ui .AspectRatioFrameLayout .ResizeMode ;
3535import com .google .android .exoplayer2 .ui .CaptionStyleCompat ;
36- import com .google .android .exoplayer2 .util .MimeTypes ;
3736
3837import org .schabi .newpipe .R ;
3938import org .schabi .newpipe .extractor .InfoItem ;
40- import org .schabi .newpipe .extractor .MediaFormat ;
4139import org .schabi .newpipe .extractor .stream .StreamInfo ;
4240import org .schabi .newpipe .extractor .stream .StreamInfoItem ;
4341import org .schabi .newpipe .extractor .stream .SubtitlesStream ;
@@ -120,15 +118,6 @@ public static String formatPitch(final double pitch) {
120118 }
121119
122120 @ NonNull
123- public static String subtitleMimeTypesOf (@ NonNull final MediaFormat format ) {
124- switch (format ) {
125- case VTT :
126- return MimeTypes .TEXT_VTT ;
127- case TTML :
128- return MimeTypes .APPLICATION_TTML ;
129- default :
130- throw new IllegalArgumentException ("Unrecognized mime type: " + format .name ());
131- }
132121 }
133122
134123 @ NonNull
You can’t perform that action at this time.
0 commit comments