Class DefaultMuxer

  • All Implemented Interfaces:
    Muxer

    @Deprecated
    public final class DefaultMuxer
    extends Object
    implements Muxer
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    A default Muxer implementation.
    • Method Detail

      • addMetadata

        public void addMetadata​(Metadata metadata)
        Deprecated.
        Description copied from interface: Muxer
        Adds Metadata about the output file.
        Specified by:
        addMetadata in interface Muxer
      • release

        public void release​(boolean forCancellation)
                     throws Muxer.MuxerException
        Deprecated.
        Description copied from interface: Muxer
        Finishes writing the output and releases any resources associated with muxing.

        The muxer cannot be used anymore once this method has been called.

        Specified by:
        release in interface Muxer
        Parameters:
        forCancellation - Whether the reason for releasing the resources is the export cancellation.
        Throws:
        Muxer.MuxerException - If the muxer fails to finish writing the output and forCancellation is false.
      • getMaxDelayBetweenSamplesMs

        public long getMaxDelayBetweenSamplesMs()
        Deprecated.
        Description copied from interface: Muxer
        Returns the maximum delay allowed between output samples, in milliseconds, or C.TIME_UNSET if there is no maximum.

        This is the maximum delay between samples of any track. They can be of the same or of different track types.

        This value is used to abort the export when the maximum delay is reached. Note that there is no guarantee that the export will be aborted exactly at that time.

        Specified by:
        getMaxDelayBetweenSamplesMs in interface Muxer