Fix order of elements in FrameworkMuxer.java
PiperOrigin-RevId: 670205944
This commit is contained in:
parent
060356ea00
commit
0843444a34
@ -45,15 +45,6 @@ import java.util.Map;
|
||||
|
||||
/** {@link Muxer} implementation that uses a {@link MediaMuxer}. */
|
||||
/* package */ final class FrameworkMuxer implements Muxer {
|
||||
public static final String MUXER_STOPPING_FAILED_ERROR_MESSAGE = "Failed to stop the MediaMuxer";
|
||||
|
||||
// MediaMuxer supported sample formats are documented in MediaMuxer.addTrack(MediaFormat).
|
||||
private static final ImmutableList<String> SUPPORTED_VIDEO_SAMPLE_MIME_TYPES =
|
||||
getSupportedVideoSampleMimeTypes();
|
||||
private static final ImmutableList<String> SUPPORTED_AUDIO_SAMPLE_MIME_TYPES =
|
||||
ImmutableList.of(MimeTypes.AUDIO_AAC, MimeTypes.AUDIO_AMR_NB, MimeTypes.AUDIO_AMR_WB);
|
||||
private static final String TAG = "FrameworkMuxer";
|
||||
|
||||
/** {@link Muxer.Factory} for {@link FrameworkMuxer}. */
|
||||
public static final class Factory implements Muxer.Factory {
|
||||
private long videoDurationUs;
|
||||
@ -105,6 +96,15 @@ import java.util.Map;
|
||||
}
|
||||
}
|
||||
|
||||
public static final String MUXER_STOPPING_FAILED_ERROR_MESSAGE = "Failed to stop the MediaMuxer";
|
||||
|
||||
// MediaMuxer supported sample formats are documented in MediaMuxer.addTrack(MediaFormat).
|
||||
private static final ImmutableList<String> SUPPORTED_VIDEO_SAMPLE_MIME_TYPES =
|
||||
getSupportedVideoSampleMimeTypes();
|
||||
private static final ImmutableList<String> SUPPORTED_AUDIO_SAMPLE_MIME_TYPES =
|
||||
ImmutableList.of(MimeTypes.AUDIO_AAC, MimeTypes.AUDIO_AMR_NB, MimeTypes.AUDIO_AMR_WB);
|
||||
private static final String TAG = "FrameworkMuxer";
|
||||
|
||||
private final MediaMuxer mediaMuxer;
|
||||
private final long videoDurationUs;
|
||||
private final Map<TrackToken, Long> trackTokenToLastPresentationTimeUs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user