Package org.nuxeo.ecm.platform.video
Class TranscodedVideo
java.lang.Object
org.nuxeo.ecm.platform.video.Video
org.nuxeo.ecm.platform.video.TranscodedVideo
Object wrapping a transcoded video and related
VideoInfo
.
The TranscodedVideo
is identified by its name and a position, if any, in the list of TranscodedVideo
s
for a given @{link VideoDocument}.
If this TranscodedVideo
is not part
- Since:
- 5.5
- Author:
- Thomas Roger
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Returns the videoBlob
property name of thisTranscodedVideo
.getName()
Returns the name of thisTranscodedVideo
.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 Details
-
fromMapAndPosition
Build aTranscodedVideo
from aMap
of attributes and aposition
-
fromBlobAndInfo
Build aTranscodedVideo
from aname
, videoblob
and relatedvideoInfo
. -
getName
Returns the name of thisTranscodedVideo
. -
getBlobPropertyName
Returns the videoBlob
property name of thisTranscodedVideo
. -
toMap
Returns aMap
of attributes for thisTranscodedVideo
.Used when saving this
TranscodedVideo
to aDocumentModel
property.
-