public interface IMediaStream
| Modifier and Type | Field and Description |
|---|---|
static int |
AUDIOSAMPLEACCESS |
static int |
PUBLISH_BITRATE_SOURCE_MEASURE |
static int |
PUBLISH_BITRATE_SOURCE_METADATA |
static int |
PUBLISH_FRAMERATE_SOURCE_MEASURE |
static int |
PUBLISH_FRAMERATE_SOURCE_METADATA |
static int |
READACCESS |
static int |
VIDEOSAMPLEACCESS |
static int |
WRITEACCESS |
| Modifier and Type | Method and Description |
|---|---|
void |
addAudioCodecConfigPacket(long timecode,
AMFPacket packet)
Add an audio config packet.
|
void |
addAudioData(byte[] data,
int offset,
int size)
Add new data to the current audio packet
|
void |
addAudioExtraData(java.util.Map extraData)
Not sure to be honest, never used it
|
void |
addCalbackListener(IMediaStreamCallback callbackListener)
Adds a listener that listends to all medatada.
|
void |
addClientListener(IMediaStreamActionNotify paramIMediaStreamActionNotify) |
void |
addClientListener(IMediaStreamActionNotify2 paramIMediaStreamActionNotify2) |
void |
addClientListener(IMediaStreamActionNotify3 paramIMediaStreamActionNotify3) |
long |
getPublishFrameCountAudio()
Returns the number of audio frames received for an incoming live stream
|
long |
getPublishFrameCountData()
Returns the number of data frames received for an incoming live stream
|
long |
getPublishFrameCountVideo()
Returns the number of video frames received for an incoming live stream
|
int |
getPublishFramerateAudio()
This returns the audio framerate from the metadata if available.
|
int |
getPublishFramerateAudio(int source)
Returns the audio framerate from the specified source, which can be either
PUBLISH_FRAMERATE_SOURCE_MEASURE or 2 |
int |
getPublishFramerateVideo()
This returns the video framerate from the metadata if available.
|
int |
getPublishFramerateVideo(int source)
This returns the video framerate from the specified source, which can be either
PUBLISH_FRAMERATE_SOURCE_MEASURE or 2 |
int[] |
getPublishKeyFrameIntervalsVideo()
Returns the last 10 video GOP sizes/keyframe intervals received for an incoming live stream.
|
void |
removeClientListener(IMediaStreamActionNotify paramIMediaStreamActionNotify) |
void |
removeClientListener(IMediaStreamActionNotify2 paramIMediaStreamActionNotify2) |
void |
removeClientListener(IMediaStreamActionNotify3 paramIMediaStreamActionNotify3) |
static final int READACCESS
static final int WRITEACCESS
static final int AUDIOSAMPLEACCESS
static final int VIDEOSAMPLEACCESS
static final int PUBLISH_BITRATE_SOURCE_MEASURE
static final int PUBLISH_BITRATE_SOURCE_METADATA
static final int PUBLISH_FRAMERATE_SOURCE_MEASURE
static final int PUBLISH_FRAMERATE_SOURCE_METADATA
void addClientListener(IMediaStreamActionNotify paramIMediaStreamActionNotify)
void addClientListener(IMediaStreamActionNotify2 paramIMediaStreamActionNotify2)
void addClientListener(IMediaStreamActionNotify3 paramIMediaStreamActionNotify3)
void removeClientListener(IMediaStreamActionNotify paramIMediaStreamActionNotify)
void removeClientListener(IMediaStreamActionNotify2 paramIMediaStreamActionNotify2)
void removeClientListener(IMediaStreamActionNotify3 paramIMediaStreamActionNotify3)
int getPublishFramerateVideo()
int getPublishFramerateAudio()
int getPublishFramerateVideo(int source)
PUBLISH_FRAMERATE_SOURCE_MEASURE or 2source - can be either PUBLISH_FRAMERATE_SOURCE_MEASURE or 2int getPublishFramerateAudio(int source)
PUBLISH_FRAMERATE_SOURCE_MEASURE or 2source - can be either PUBLISH_FRAMERATE_SOURCE_MEASURE or 2long getPublishFrameCountVideo()
long getPublishFrameCountAudio()
long getPublishFrameCountData()
int[] getPublishKeyFrameIntervalsVideo()
void addAudioCodecConfigPacket(long timecode,
AMFPacket packet)
timecode - the timecode where the packet needs to be addedpacket - the packet to be addedvoid addAudioData(byte[] data,
int offset,
int size)
data - the raw data to be addedoffset - the offset of the datasize - the size of the datavoid addAudioExtraData(java.util.Map extraData)
extraData - void addCalbackListener(IMediaStreamCallback callbackListener)
callbackListener - listener implementation to be added