Package org.nuxeo.ecm.platform.video
Class Stream
java.lang.Object
org.nuxeo.ecm.platform.video.Stream
Object representing a Stream of a video.
- Since:
- 5.5
- Author:
- Thomas Roger
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stream
fromMap
(Map<String, Serializable> m) Build aStream
from aMap
of attributes.double
Returns thisStream
's bit rate.getCodec()
Returns thisStream
's codec.Returns thisStream
whole info as returned by FFmpeg.getType()
Returns thisStream
's type.toMap()
Returns aMap
of attributes for thisStream
.
-
Field Details
-
VIDEO_TYPE
- See Also:
-
AUDIO_TYPE
- See Also:
-
TYPE_ATTRIBUTE
- See Also:
-
CODEC_ATTRIBUTE
- See Also:
-
STREAM_INFO_ATTRIBUTE
- See Also:
-
BIT_RATE_ATTRIBUTE
- See Also:
-
-
Method Details
-
fromMap
Build aStream
from aMap
of attributes.Used when creating a
Stream
from aDocumentModel
property. -
getType
Returns thisStream
's type.Can be one of the following:
- Video
- Audio
-
getCodec
Returns thisStream
's codec. -
getStreamInfo
Returns thisStream
whole info as returned by FFmpeg. -
getBitRate
public double getBitRate()Returns thisStream
's bit rate. -
toMap
Returns aMap
of attributes for thisStream
.Used when saving this
Stream
to aDocumentModel
property.
-