com.flazr.rtmp.message
Class Command

java.lang.Object
  extended by com.flazr.rtmp.message.AbstractMessage
      extended by com.flazr.rtmp.message.Command
All Implemented Interfaces:
RtmpMessage
Direct Known Subclasses:
CommandAmf0

public abstract class Command
extends AbstractMessage


Nested Class Summary
static class Command.OnStatus
           
 
Nested classes/interfaces inherited from class com.flazr.rtmp.message.AbstractMessage
AbstractMessage.Pair
 
Field Summary
protected  Object[] args
           
protected  String name
           
protected  Amf0Object object
           
protected  int transactionId
           
 
Fields inherited from class com.flazr.rtmp.message.AbstractMessage
header
 
Constructor Summary
Command(int transactionId, String name, Amf0Object object, Object... args)
           
Command(RtmpHeader header, org.jboss.netty.buffer.ChannelBuffer in)
           
Command(String name, Amf0Object object, Object... args)
           
 
Method Summary
static Command closeStream(int streamId)
           
static Command connect(ClientOptions options)
           
static Command connectSuccess(int transactionId)
           
static Command createStream()
           
static Command createStreamSuccess(int transactionId, int streamId)
           
 Object getArg(int index)
           
 int getArgCount()
           
 String getName()
           
 Amf0Object getObject()
           
 int getTransactionId()
           
static Command onBWDone()
           
static Amf0Object onStatus(Command.OnStatus level, String code, AbstractMessage.Pair... pairs)
           
static Command pauseNotify(String playName, String clientId)
           
static Command play(int streamId, ClientOptions options)
           
static Command playFailed(String playName, String clientId)
           
static Command playReset(String playName, String clientId)
           
static Command playStart(String playName, String clientId)
           
static Command playStop(String playName, String clientId)
           
static Command publish(int streamId, ClientOptions options)
           
static Command publishBadName(int streamId)
           
static Command publishNotify(int streamId)
           
static Command publishStart(String streamName, String clientId, int streamId)
           
static Command seekNotify(int streamId, int seekTime, String playName, String clientId)
           
 void setTransactionId(int transactionId)
           
 String toString()
           
static Command unpauseNotify(String playName, String clientId)
           
static Command unpublish(int streamId)
           
static Command unpublishNotify(int streamId)
           
static Command unpublishSuccess(String streamName, String clientId, int streamId)
           
 
Methods inherited from class com.flazr.rtmp.message.AbstractMessage
getHeader, map, map, object, object, pair
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.flazr.rtmp.RtmpMessage
decode, encode
 

Field Detail

name

protected String name

transactionId

protected int transactionId

object

protected Amf0Object object

args

protected Object[] args
Constructor Detail

Command

public Command(RtmpHeader header,
               org.jboss.netty.buffer.ChannelBuffer in)

Command

public Command(int transactionId,
               String name,
               Amf0Object object,
               Object... args)

Command

public Command(String name,
               Amf0Object object,
               Object... args)
Method Detail

getObject

public Amf0Object getObject()

getArg

public Object getArg(int index)

getArgCount

public int getArgCount()

onStatus

public static Amf0Object onStatus(Command.OnStatus level,
                                  String code,
                                  AbstractMessage.Pair... pairs)

connect

public static Command connect(ClientOptions options)

connectSuccess

public static Command connectSuccess(int transactionId)

createStream

public static Command createStream()

onBWDone

public static Command onBWDone()

createStreamSuccess

public static Command createStreamSuccess(int transactionId,
                                          int streamId)

play

public static Command play(int streamId,
                           ClientOptions options)

playReset

public static Command playReset(String playName,
                                String clientId)

playStart

public static Command playStart(String playName,
                                String clientId)

playStop

public static Command playStop(String playName,
                               String clientId)

playFailed

public static Command playFailed(String playName,
                                 String clientId)

seekNotify

public static Command seekNotify(int streamId,
                                 int seekTime,
                                 String playName,
                                 String clientId)

pauseNotify

public static Command pauseNotify(String playName,
                                  String clientId)

unpauseNotify

public static Command unpauseNotify(String playName,
                                    String clientId)

publish

public static Command publish(int streamId,
                              ClientOptions options)

publishStart

public static Command publishStart(String streamName,
                                   String clientId,
                                   int streamId)

unpublishSuccess

public static Command unpublishSuccess(String streamName,
                                       String clientId,
                                       int streamId)

unpublish

public static Command unpublish(int streamId)

publishBadName

public static Command publishBadName(int streamId)

publishNotify

public static Command publishNotify(int streamId)

unpublishNotify

public static Command unpublishNotify(int streamId)

closeStream

public static Command closeStream(int streamId)

getName

public String getName()

getTransactionId

public int getTransactionId()

setTransactionId

public void setTransactionId(int transactionId)

toString

public String toString()
Overrides:
toString in class AbstractMessage


Copyright © 2011. All Rights Reserved.