Package org.nuxeo.ecm.platform.video
Class Video
- java.lang.Object
-
- org.nuxeo.ecm.platform.video.Video
-
- Direct Known Subclasses:
TranscodedVideo
public class Video extends Object
Object wrapping a videoBloband relatedVideoInfo.- Since:
- 5.5
- Author:
- Thomas Roger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VideofromBlobAndInfo(Blob blob, VideoInfo videoInfo)Build aVideofrom a videobloband the relatedvideoInfo.BlobgetBlob()Returns the videoBlob.doublegetDuration()Returns the duration of thisVideo.StringgetFormat()Returns the format of thisVideo.doublegetFrameRate()Returns the frame rate of thisVideo.longgetHeight()Returns the height of thisVideo.List<Stream>getStreams()Returns all theStreams of thisVideo.VideoInfogetVideoInfo()Returns theVideoInfofor thisVideo.longgetWidth()Returns the width of thisVideo.
-
-
-
Method Detail
-
fromBlobAndInfo
public static Video fromBlobAndInfo(Blob blob, VideoInfo videoInfo)
Build aVideofrom a videobloband the relatedvideoInfo.
-
getDuration
public double getDuration()
Returns the duration of thisVideo.
-
getWidth
public long getWidth()
Returns the width of thisVideo.
-
getHeight
public long getHeight()
Returns the height of thisVideo.
-
getFormat
public String getFormat()
Returns the format of thisVideo.
-
getFrameRate
public double getFrameRate()
Returns the frame rate of thisVideo.
-
getBlob
public Blob getBlob()
Returns the videoBlob.
-
-