Package 

Class DefaultValidator

  • All Implemented Interfaces:
    com.otaliastudios.transcoder.validator.Validator

    
    public class DefaultValidator
     implements Validator
                        

    The default Validator to understand whether to keep going with the transcoding process or to abort and notify the listener.

    • Method Summary

      Modifier and Type Method Description
      boolean validate(@NonNull() TrackStatus videoStatus, @NonNull() TrackStatus audioStatus) Return true if the transcoding should proceed, false otherwise.
      • Methods inherited from class java.lang.Object

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

      • validate

         boolean validate(@NonNull() TrackStatus videoStatus, @NonNull() TrackStatus audioStatus)

        Return true if the transcoding should proceed, false otherwise.

        Parameters:
        videoStatus - the status of the video track
        audioStatus - the status of the audio track