Class VideoData

java.lang.Object
com.hp.lft.sdk.VideoData

public class VideoData extends Object
An object that holds video binary data.
  • Constructor Details

    • VideoData

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

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

      public VideoData(String filePath) throws IOException
      Create VideoData object.
      Parameters:
      filePath - Path to the video file. The video format will be deduced from the file extension.
      Throws:
      IOException - if the operation fails.
  • Method Details

    • 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.