Class VideoDecoder

  • All Implemented Interfaces:
    com.cloudinary.android.preprocess.ResourceDecoder<android.net.Uri>

    public class VideoDecoder
    extends java.lang.Object
    implements com.cloudinary.android.preprocess.ResourceDecoder<android.net.Uri>
    Returns the decoded video uri from a given payload. Payloads must be either LocalUriPayload or FilePayload. Note: It doesn't do the actual decoding process.
    • Constructor Summary

      Constructors 
      Constructor Description
      VideoDecoder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.net.Uri decode​(android.content.Context context, com.cloudinary.android.payload.Payload payload)
      Returns the video uri.
      • Methods inherited from class java.lang.Object

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

      • VideoDecoder

        public VideoDecoder()
    • Method Detail

      • decode

        public android.net.Uri decode​(android.content.Context context,
                                      com.cloudinary.android.payload.Payload payload)
                               throws com.cloudinary.android.preprocess.PayloadDecodeException,
                                      com.cloudinary.android.payload.PayloadNotFoundException
        Returns the video uri.
        Specified by:
        decode in interface com.cloudinary.android.preprocess.ResourceDecoder<android.net.Uri>
        Parameters:
        context - Android context.
        payload - Payload to extract the resource from
        Throws:
        com.cloudinary.android.preprocess.PayloadDecodeException - if the payload is neither a LocalUriPayload nor FilePayload
        com.cloudinary.android.payload.PayloadNotFoundException - if the payload's resource cannot be found.