com.hp.lft.sdk

Class VideoData



  • public class VideoData
    extends java.lang.Object
    An object that holds video binary data.
    • Constructor Summary

      Constructor and Description
      VideoData(byte[] videoData, VideoFormat videoFormat)
      Create VideoData object.
      VideoData(java.lang.String filePath)
      Create VideoData object.
      VideoData(java.lang.String filePath, VideoFormat videoFormat)
      Create VideoData object.
    • Method Summary

      Modifier and Type Method and Description
      byte[] getData()
      Returns the video binary data.
      VideoFormat getVideoFormat()
      Returns the video format.
      • Methods inherited from class java.lang.Object

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

      • VideoData

        public VideoData(byte[] videoData,
                         VideoFormat videoFormat)
        Create VideoData object.
        Parameters:
        videoData - Video binary data.
        videoFormat - Format of the video.
      • VideoData

        public VideoData(java.lang.String filePath,
                         VideoFormat videoFormat)
                  throws java.io.IOException
        Create VideoData object.
        Parameters:
        filePath - Path to the video file.
        videoFormat - Format of the video.
        Throws:
        java.io.IOException
      • VideoData

        public VideoData(java.lang.String filePath)
                  throws java.io.IOException
        Create VideoData object.
        Parameters:
        filePath - Path to the video file. The video format will be deduced from the file extension.
        Throws:
        java.io.IOException
    • Method Detail

      • getData

        public byte[] getData()
        Returns the video binary data.
        Returns:
        the video binary data.
      • getVideoFormat

        public VideoFormat getVideoFormat()
        Returns the video format.
        Returns:
        the video format.