|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smaxe.app.uv.agent.RtmpClientScript
com.smaxe.app.uv.loadtester.script.PublishStreamScript
public final class PublishStreamScript
PublishStreamScript
Behaviour:
- Client connects to the server and publishes stream on successfull connection
(stream name is defined in the "streamToPublish" property, stream source is a local flv file)
- Client disconnects from the server after stream publish is stopped/completed.
Field Summary |
---|
Fields inherited from class com.smaxe.app.uv.agent.RtmpClientScript |
---|
PUBLISH_MODE_APPEND, PUBLISH_MODE_LIVE, PUBLISH_MODE_RECORD |
Constructor Summary | |
---|---|
PublishStreamScript()
Constructor. |
Method Summary | |
---|---|
void |
onConnect(java.lang.String code,
java.util.Map<java.lang.String,java.lang.Object> info)
Notifies about connection to the server. |
void |
onPublishStop(java.lang.String stream)
Notifies about stream publish stop. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublishStreamScript()
Method Detail |
---|
public void onConnect(java.lang.String code, java.util.Map<java.lang.String,java.lang.Object> info)
RtmpClientScript
onConnect
in class RtmpClientScript
code
- status codeinfo
- connection infopublic void onPublishStop(java.lang.String stream)
RtmpClientScript
stream
publish stop.
onPublishStop
in class RtmpClientScript
stream
- published stream name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |