K
- key typeV
- value typepublic class MetaData<K,V> extends HashMap<String,Object> implements IMetaData<Object,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
MetaData()
MetaData constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAudioCodecId() |
boolean |
getCanSeekToEnd()
Returns a boolean depending on whether the video can
seek to end
|
double |
getDuration()
Returns the duration.
|
double |
getFrameRate()
Returns the framerate.
|
int |
getHeight()
Returns the height
|
IMetaCue[] |
getMetaCue()
Return array of cue points
|
int |
getVideoCodecId()
Returns the video codec id
|
int |
getVideoDataRate()
Returns the videodatarate
|
int |
getWidth()
Returns the width Video width
|
void |
setAudioCodecId(int id) |
void |
setCanSeekToEnd(boolean b)
Sets whether a video can seek to end
|
void |
setDuration(double d)
Sets the duration.
|
void |
setFrameRate(double rate)
Sets the framerate.
|
void |
setHeight(int h)
Sets the height
|
void |
setMetaCue(IMetaCue[] cuePoints)
Sets the Meta Cue Points
|
void |
setVideoCodecId(int id)
Sets the video codec id
|
void |
setVideoDataRate(int rate)
Sets the videodatarate
|
void |
setWidth(int w)
Sets the width
|
String |
toString() |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode
public boolean getCanSeekToEnd()
getCanSeekToEnd
in interface IMetaData<Object,Object>
true
if file is seekable to the end, false
otherwisepublic void setCanSeekToEnd(boolean b)
setCanSeekToEnd
in interface IMetaData<Object,Object>
b
- true
if file is seekable to the end, false
otherwisepublic int getVideoCodecId()
getVideoCodecId
in interface IMetaData<Object,Object>
public void setVideoCodecId(int id)
setVideoCodecId
in interface IMetaData<Object,Object>
id
- Video codec idpublic int getAudioCodecId()
getAudioCodecId
in interface IMetaData<Object,Object>
public void setAudioCodecId(int id)
setAudioCodecId
in interface IMetaData<Object,Object>
public double getFrameRate()
getFrameRate
in interface IMetaData<Object,Object>
public void setFrameRate(double rate)
setFrameRate
in interface IMetaData<Object,Object>
rate
- FLV framerate in frames per secondpublic int getVideoDataRate()
getVideoDataRate
in interface IMetaData<Object,Object>
public void setVideoDataRate(int rate)
setVideoDataRate
in interface IMetaData<Object,Object>
rate
- Video data ratepublic int getWidth()
public void setWidth(int w)
public double getDuration()
getDuration
in interface IMetaData<Object,Object>
public void setDuration(double d)
setDuration
in interface IMetaData<Object,Object>
d
- Video duration in secondspublic int getHeight()
public void setHeight(int h)
public void setMetaCue(IMetaCue[] cuePoints)
setMetaCue
in interface IMetaData<Object,Object>
cuePoints
- The cuePoints to set.public IMetaCue[] getMetaCue()
getMetaCue
in interface IMetaData<Object,Object>
public String toString()
toString
in class AbstractMap<String,Object>
Copyright © 2006-2012 The Red5 Project