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 StringAUDIO_TYPEstatic StringBIT_RATE_ATTRIBUTEstatic StringCODEC_ATTRIBUTEstatic StringSTREAM_INFO_ATTRIBUTEstatic StringTYPE_ATTRIBUTEstatic StringVIDEO_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreamfromMap(Map<String,Serializable> m)Build aStreamfrom aMapof attributes.doublegetBitRate()Returns thisStream's bit rate.StringgetCodec()Returns thisStream's codec.StringgetStreamInfo()Returns thisStreamwhole info as returned by FFmpeg.StringgetType()Returns thisStream's type.Map<String,Serializable>toMap()Returns aMapof 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 aStreamfrom aMapof attributes.Used when creating a
Streamfrom aDocumentModelproperty.
-
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 thisStreamwhole info as returned by FFmpeg.
-
getBitRate
public double getBitRate()
Returns thisStream's bit rate.
-
toMap
public Map<String,Serializable> toMap()
Returns aMapof attributes for thisStream.Used when saving this
Streamto aDocumentModelproperty.
-
-