|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.net.rtmp.BaseRTMPHandler
public abstract class BaseRTMPHandler
Base class for all RTMP handlers.
Field Summary |
---|
Constructor Summary | |
---|---|
BaseRTMPHandler()
|
Method Summary | |
---|---|
void |
connectionClosed(RTMPConnection conn,
RTMP state)
Connection closed |
void |
connectionOpened(RTMPConnection conn,
RTMP state)
Connection open event |
protected String |
getHostname(String url)
Return hostname for URL. |
static int |
getStreamId()
Getter for stream ID. |
protected void |
handlePendingCallResult(RTMPConnection conn,
Notify invoke)
Handler for pending call result. |
void |
messageReceived(Object in,
IoSession session)
Message received |
void |
messageSent(RTMPConnection conn,
Object message)
Message sent |
protected abstract void |
onChunkSize(RTMPConnection conn,
Channel channel,
Header source,
ChunkSize chunkSize)
Chunk size change event handler. |
protected void |
onClientBandwidth(RTMPConnection conn,
Channel channel,
ClientBW message)
Client bandwidth / Peer bandwidth set event handler. |
protected abstract void |
onInvoke(RTMPConnection conn,
Channel channel,
Header source,
Notify invoke,
RTMP rtmp)
Invocation event handler. |
protected abstract void |
onPing(RTMPConnection conn,
Channel channel,
Header source,
Ping ping)
Ping event handler. |
protected void |
onServerBandwidth(RTMPConnection conn,
Channel channel,
ServerBW message)
Server bandwidth / Window ACK size event handler. |
protected abstract void |
onSharedObject(RTMPConnection conn,
Channel channel,
Header source,
SharedObjectMessage object)
Shared object event handler. |
protected void |
onStreamBytesRead(RTMPConnection conn,
Channel channel,
Header source,
BytesRead streamBytesRead)
Stream bytes read event handler. |
void |
setApplicationContext(ApplicationContext appCtx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseRTMPHandler()
Method Detail |
---|
public static int getStreamId()
public void setApplicationContext(ApplicationContext appCtx) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void connectionOpened(RTMPConnection conn, RTMP state)
connectionOpened
in interface IRTMPHandler
conn
- Connectionstate
- RTMP statepublic void messageReceived(Object in, IoSession session) throws Exception
messageReceived
in interface IRTMPHandler
in
- Messagesession
- Connected session
Exception
- Exceptionpublic void messageSent(RTMPConnection conn, Object message)
messageSent
in interface IRTMPHandler
conn
- Connectionmessage
- Messagepublic void connectionClosed(RTMPConnection conn, RTMP state)
connectionClosed
in interface IRTMPHandler
conn
- Connectionstate
- RTMP stateprotected String getHostname(String url)
url
- URL
protected void handlePendingCallResult(RTMPConnection conn, Notify invoke)
conn
- Connectioninvoke
- Pending call result event contextprotected abstract void onChunkSize(RTMPConnection conn, Channel channel, Header source, ChunkSize chunkSize)
conn
- Connectionchannel
- Channelsource
- HeaderchunkSize
- New chunk sizeprotected abstract void onInvoke(RTMPConnection conn, Channel channel, Header source, Notify invoke, RTMP rtmp)
conn
- Connectionchannel
- Channelsource
- Headerinvoke
- Invocation event contextrtmp
- RTMP connection stateprotected abstract void onPing(RTMPConnection conn, Channel channel, Header source, Ping ping)
conn
- Connectionchannel
- Channelsource
- Headerping
- Ping event contextprotected void onServerBandwidth(RTMPConnection conn, Channel channel, ServerBW message)
conn
- Connectionchannel
- Channelmessage
- ServerBWprotected void onClientBandwidth(RTMPConnection conn, Channel channel, ClientBW message)
conn
- Connectionchannel
- Channelmessage
- ClientBWprotected void onStreamBytesRead(RTMPConnection conn, Channel channel, Header source, BytesRead streamBytesRead)
conn
- Connectionchannel
- Channelsource
- HeaderstreamBytesRead
- Bytes read event contextprotected abstract void onSharedObject(RTMPConnection conn, Channel channel, Header source, SharedObjectMessage object)
conn
- Connectionchannel
- Channelsource
- Headerobject
- Shared object event context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |