|
||||||||||
| 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(RTMPConnection conn,
ProtocolState state,
Object in)
Message recieved |
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 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 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 ApplicationContextAwareBeansException
public void connectionOpened(RTMPConnection conn,
RTMP state)
connectionOpened in interface IRTMPHandlerconn - Connectionstate - RTMP state
public void messageReceived(RTMPConnection conn,
ProtocolState state,
Object in)
throws Exception
messageReceived in interface IRTMPHandlerconn - Connectionstate - RTMP statein - Message
Exception - Exception
public void messageSent(RTMPConnection conn,
Object message)
messageSent in interface IRTMPHandlerconn - Connectionmessage - Message
public void connectionClosed(RTMPConnection conn,
RTMP state)
connectionClosed in interface IRTMPHandlerconn - Connectionstate - RTMP stateprotected String getHostname(String url)
url - URL
protected abstract void onChunkSize(RTMPConnection conn,
Channel channel,
Header source,
ChunkSize chunkSize)
conn - Connectionchannel - Channelsource - HeaderchunkSize - New chunk size
protected void handlePendingCallResult(RTMPConnection conn,
Notify invoke)
conn - Connectioninvoke - Pending call result event context
protected abstract void onInvoke(RTMPConnection conn,
Channel channel,
Header source,
Notify invoke,
RTMP rtmp)
conn - Connectionchannel - Channelsource - Headerinvoke - Invocation event contextrtmp - RTMP connection state
protected abstract void onPing(RTMPConnection conn,
Channel channel,
Header source,
Ping ping)
conn - Connectionchannel - Channelsource - Headerping - Ping event context
protected void onStreamBytesRead(RTMPConnection conn,
Channel channel,
Header source,
BytesRead streamBytesRead)
conn - Connectionchannel - Channelsource - HeaderstreamBytesRead - Bytes read event context
protected 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 | |||||||||