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
TranscodedVideois identified by its name and a position, if any, in the list ofTranscodedVideos for a given @{link VideoDocument}.If this
TranscodedVideois not part- Since:
- 5.5
- Author:
- Thomas Roger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TranscodedVideofromBlobAndInfo(String name, Blob blob, VideoInfo videoInfo)Build aTranscodedVideofrom aname, videobloband relatedvideoInfo.static TranscodedVideofromMapAndPosition(Map<String,Serializable> map, int position)Build aTranscodedVideofrom aMapof attributes and apositionStringgetBlobPropertyName()Returns the videoBlobproperty name of thisTranscodedVideo.StringgetName()Returns the name of thisTranscodedVideo.Map<String,Serializable>toMap()Returns aMapof 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 aTranscodedVideofrom aMapof attributes and aposition
-
fromBlobAndInfo
public static TranscodedVideo fromBlobAndInfo(String name, Blob blob, VideoInfo videoInfo)
Build aTranscodedVideofrom aname, videobloband relatedvideoInfo.
-
getName
public String getName()
Returns the name of thisTranscodedVideo.
-
getBlobPropertyName
public String getBlobPropertyName()
Returns the videoBlobproperty name of thisTranscodedVideo.
-
toMap
public Map<String,Serializable> toMap()
Returns aMapof attributes for thisTranscodedVideo.Used when saving this
TranscodedVideoto aDocumentModelproperty.
-
-