Class VideoPreprocessChain


  • public class VideoPreprocessChain
    extends com.cloudinary.android.preprocess.PreprocessChain<android.net.Uri>
    A preprocess chain to run on videos before uploading. Pass an instance of a populated chain to UploadRequest.preprocess(PreprocessChain). The processing steps will run by the order in which they were added to the chain. This chain uses the default Video encoder/decoder, however custom implementations can be supplied using PreprocessChain.loadWith(ResourceDecoder) and PreprocessChain.saveWith(ResourceEncoder).
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.cloudinary.android.preprocess.ResourceDecoder<android.net.Uri> getDefaultDecoder()  
      protected com.cloudinary.android.preprocess.ResourceEncoder<android.net.Uri> getDefaultEncoder()  
      static VideoPreprocessChain videoTranscodingChain​(Parameters parameters)
      Convenience method for building an efficient video transcoding chain using Transcode.
      • Methods inherited from class com.cloudinary.android.preprocess.PreprocessChain

        addStep, execute, isEmpty, loadWith, saveWith
      • Methods inherited from class java.lang.Object

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

      • VideoPreprocessChain

        public VideoPreprocessChain()
    • Method Detail

      • videoTranscodingChain

        public static VideoPreprocessChain videoTranscodingChain​(Parameters parameters)
        Convenience method for building an efficient video transcoding chain using Transcode. Use this in UploadRequest.preprocess(PreprocessChain).
        Parameters:
        parameters - Transcoding parameters.
        Returns:
        The prepared chain to pass on to UploadRequest.preprocess(PreprocessChain)
      • getDefaultEncoder

        protected com.cloudinary.android.preprocess.ResourceEncoder<android.net.Uri> getDefaultEncoder()
        Specified by:
        getDefaultEncoder in class com.cloudinary.android.preprocess.PreprocessChain<android.net.Uri>
      • getDefaultDecoder

        protected com.cloudinary.android.preprocess.ResourceDecoder<android.net.Uri> getDefaultDecoder()
        Specified by:
        getDefaultDecoder in class com.cloudinary.android.preprocess.PreprocessChain<android.net.Uri>