Package com.hp.lft.sdk
Class VideoData
java.lang.Object
com.hp.lft.sdk.VideoData
An object that holds video binary data.
-
Constructor Summary
ConstructorsConstructorDescriptionVideoData
(byte[] videoData, VideoFormat videoFormat) Create VideoData object.Create VideoData object.VideoData
(String filePath, VideoFormat videoFormat) Create VideoData object. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
Returns the video binary data.Returns the video format.
-
Constructor Details
-
VideoData
Create VideoData object.- Parameters:
videoData
- Video binary data.videoFormat
- Format of the video.
-
VideoData
Create VideoData object.- Parameters:
filePath
- Path to the video file.videoFormat
- Format of the video.- Throws:
IOException
- if the operation fails.
-
VideoData
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
Returns the video format.- Returns:
- the video format.
-