Class InAppMuxer

  • All Implemented Interfaces:

    public final class InAppMuxer
    extends Object
    implements Muxer
    Deprecated. 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.
    Muxer implementation that uses a Mp4Muxer.
    • Method Detail

      • addMetadata

        public void addMetadata​(Metadata metadata)
        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
        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
        forCancellation - Whether the reason for releasing the resources is the export cancellation.
        Muxer.MuxerException - If the muxer fails to finish writing the output and forCancellation is false.
      • getMaxDelayBetweenSamplesMs

        public long getMaxDelayBetweenSamplesMs()
        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