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