com.flazr.rtmp.message
Class Command
java.lang.Object
com.flazr.rtmp.message.AbstractMessage
com.flazr.rtmp.message.Command
- All Implemented Interfaces:
- RtmpMessage
- Direct Known Subclasses:
- CommandAmf0
public abstract class Command
- extends AbstractMessage
|
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)
|
name
protected String name
transactionId
protected int transactionId
object
protected Amf0Object object
args
protected Object[] args
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)
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.