Package org.nuxeo.ecm.platform.video
Class TranscodedVideo
- java.lang.Object
-
- org.nuxeo.ecm.platform.video.Video
-
- org.nuxeo.ecm.platform.video.TranscodedVideo
-
public final class TranscodedVideo extends Video
Object wrapping a transcoded video and relatedVideoInfo
.The
TranscodedVideo
is identified by its name and a position, if any, in the list ofTranscodedVideo
s for a given @{link VideoDocument}.If this
TranscodedVideo
is not part- Since:
- 5.5
- Author:
- Thomas Roger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TranscodedVideo
fromBlobAndInfo(String name, Blob blob, VideoInfo videoInfo)
Build aTranscodedVideo
from aname
, videoblob
and relatedvideoInfo
.static TranscodedVideo
fromMapAndPosition(Map<String,Serializable> map, int position)
Build aTranscodedVideo
from aMap
of attributes and aposition
String
getBlobPropertyName()
Returns the videoBlob
property name of thisTranscodedVideo
.String
getName()
Returns the name of thisTranscodedVideo
.Map<String,Serializable>
toMap()
Returns aMap
of attributes for thisTranscodedVideo
.-
Methods inherited from class org.nuxeo.ecm.platform.video.Video
fromBlobAndInfo, getBlob, getDuration, getFormat, getFrameRate, getHeight, getStreams, getVideoInfo, getWidth
-
-
-
-
Method Detail
-
fromMapAndPosition
public static TranscodedVideo fromMapAndPosition(Map<String,Serializable> map, int position)
Build aTranscodedVideo
from aMap
of attributes and aposition
-
fromBlobAndInfo
public static TranscodedVideo fromBlobAndInfo(String name, Blob blob, VideoInfo videoInfo)
Build aTranscodedVideo
from aname
, videoblob
and relatedvideoInfo
.
-
getName
public String getName()
Returns the name of thisTranscodedVideo
.
-
getBlobPropertyName
public String getBlobPropertyName()
Returns the videoBlob
property name of thisTranscodedVideo
.
-
toMap
public Map<String,Serializable> toMap()
Returns aMap
of attributes for thisTranscodedVideo
.Used when saving this
TranscodedVideo
to aDocumentModel
property.
-
-