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 videoBlob
and relatedVideoInfo
.- Since:
- 5.5
- Author:
- Thomas Roger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Video
fromBlobAndInfo(Blob blob, VideoInfo videoInfo)
Build aVideo
from a videoblob
and the relatedvideoInfo
.Blob
getBlob()
Returns the videoBlob
.double
getDuration()
Returns the duration of thisVideo
.String
getFormat()
Returns the format of thisVideo
.double
getFrameRate()
Returns the frame rate of thisVideo
.long
getHeight()
Returns the height of thisVideo
.List<Stream>
getStreams()
Returns all theStream
s of thisVideo
.VideoInfo
getVideoInfo()
Returns theVideoInfo
for thisVideo
.long
getWidth()
Returns the width of thisVideo
.
-
-
-
Method Detail
-
fromBlobAndInfo
public static Video fromBlobAndInfo(Blob blob, VideoInfo videoInfo)
Build aVideo
from a videoblob
and 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
.
-
-