org.red5.samples.client
Class SimpleClient

java.lang.Object
  extended by org.red5.samples.client.SimpleClient
All Implemented Interfaces:
IRTMPHandler

public class SimpleClient
extends Object
implements IRTMPHandler

Sample class that uses the client mode of the RTMP library to connect to the "oflaDemo" application on the current server.

Author:
ce@publishing-etc.de
See Also:
http://mirror1.cvsdude.com/trac/osflash/red5/ticket/94

Constructor Summary
SimpleClient()
           
 
Method Summary
 void connectionClosed(RTMPConnection conn, RTMP state)
          Connection closed
 void connectionOpened(RTMPConnection conn, RTMP state)
          Connection open event
static void main(String[] args)
           
 void messageReceived(RTMPConnection conn, ProtocolState state, Object message)
          Message recieved
 void messageSent(RTMPConnection conn, Object message)
          Message sent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleClient

public SimpleClient()
Method Detail

main

public static void main(String[] args)

connectionOpened

public void connectionOpened(RTMPConnection conn,
                             RTMP state)
Connection open event

Specified by:
connectionOpened in interface IRTMPHandler
Parameters:
conn - Connection
state - RTMP state

messageReceived

public void messageReceived(RTMPConnection conn,
                            ProtocolState state,
                            Object message)
                     throws Exception
Message recieved

Specified by:
messageReceived in interface IRTMPHandler
Parameters:
conn - Connection
state - RTMP state
message - Message
Throws:
Exception - Exception

messageSent

public void messageSent(RTMPConnection conn,
                        Object message)
Message sent

Specified by:
messageSent in interface IRTMPHandler
Parameters:
conn - Connection
message - Message

connectionClosed

public void connectionClosed(RTMPConnection conn,
                             RTMP state)
Connection closed

Specified by:
connectionClosed in interface IRTMPHandler
Parameters:
conn - Connection
state - RTMP state


Copyright © 2006-2007 the Red5 project.