Package org.red5.io.flv.meta
Interface IMetaData<K,V>
- Type Parameters:
K- key typeV- value type
- All Superinterfaces:
IMeta,Serializable
- All Known Implementing Classes:
MetaData
FLV MetaData interface
- Author:
- The Red5 Project, Dominick Accattato ([email protected]) Sample Data: private boolean canSeekToEnd = true; private int videocodecid = 4; private int framerate = 15; private int videodatarate = 400; private int height = 215; private int width = 320; private int duration = 7.347;
-
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns a boolean depending on whether the video can seek to enddoubleReturns the duration.doubleReturns the framerate.intReturns the heightIMetaCue[]Gets the cue pointsintReturns the video codec idintReturns the videodatarateintgetWidth()Returns the width Video widthvoidsetAudioCodecId(int id) voidsetCanSeekToEnd(boolean b) Sets whether a video can seek to endvoidsetDuration(double d) Sets the duration.voidsetFrameRate(double rate) Sets the framerate.voidsetHeight(int h) Sets the heightvoidsetMetaCue(IMetaCue[] metaCue) Sets the cue pointsvoidsetVideoCodecId(int id) Sets the video codec idvoidsetVideoDataRate(int rate) Sets the videodataratevoidsetWidth(int w) Sets the width
-
Method Details
-
getCanSeekToEnd
boolean getCanSeekToEnd()Returns a boolean depending on whether the video can seek to end- Returns:
trueif file is seekable to the end,falseotherwise
-
setCanSeekToEnd
void setCanSeekToEnd(boolean b) Sets whether a video can seek to end- Parameters:
b-trueif file is seekable to the end,falseotherwise
-
getVideoCodecId
int getVideoCodecId()Returns the video codec id- Returns:
- Video codec id
-
setVideoCodecId
void setVideoCodecId(int id) Sets the video codec id- Parameters:
id- Video codec id
-
getAudioCodecId
int getAudioCodecId() -
setAudioCodecId
void setAudioCodecId(int id) -
getFrameRate
double getFrameRate()Returns the framerate.- Returns:
- FLV framerate in frames per second
-
setFrameRate
void setFrameRate(double rate) Sets the framerate.- Parameters:
rate- FLV framerate in frames per second
-
getVideoDataRate
int getVideoDataRate()Returns the videodatarate- Returns:
- Video data rate
-
setVideoDataRate
void setVideoDataRate(int rate) Sets the videodatarate- Parameters:
rate- Video data rate
-
getHeight
int getHeight()Returns the height- Returns:
- height Video height
-
setHeight
void setHeight(int h) Sets the height- Parameters:
h- Video height
-
getWidth
int getWidth()Returns the width Video width- Returns:
- width
-
setWidth
void setWidth(int w) Sets the width- Parameters:
w- Video width
-
getDuration
double getDuration()Returns the duration.- Returns:
- duration Video duration in seconds
-
setDuration
void setDuration(double d) Sets the duration.- Parameters:
d- Video duration in seconds
-
setMetaCue
Sets the cue points- Parameters:
metaCue- Cue points
-
getMetaCue
IMetaCue[] getMetaCue()Gets the cue points- Returns:
- Cue points
-