Package 

Interface TrackStrategy


  • 
    public interface TrackStrategy
    
                        

    Base class for video/audio format strategy. Video strategies should use a Resizer instance to compute the output video size.

    • Method Summary

      Modifier and Type Method Description
      abstract TrackStatus createOutputFormat(@NonNull() List<MediaFormat> inputFormats, @NonNull() MediaFormat outputFormat) Create the output format for this track (either audio or video).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createOutputFormat

        @NonNull() abstract TrackStatus createOutputFormat(@NonNull() List<MediaFormat> inputFormats, @NonNull() MediaFormat outputFormat)

        Create the output format for this track (either audio or video).Implementors should fill the outputFormat object and return a non-null TrackStatus:- COMPRESSING: we want to compress this track. Output format will be used- PASS_THROUGH: we want to use the input format. Output format will be ignored- REMOVING: we want to remove this track. Output format will be ignoredSubclasses can also throw to abort the whole transcoding operation.

        Parameters:
        inputFormats - the input formats
        outputFormat - the output format to be filled