com.toremote.websocket.handler
Class PlayHandler
java.lang.Object
com.toremote.websocket.handler.AbstractHandler
com.toremote.websocket.handler.PlayHandler
- All Implemented Interfaces:
- PlayerInterface, HandlerInterface
public class PlayHandler
- extends AbstractHandler
- implements PlayerInterface
Method Summary |
StreamInfo |
getInputStream(java.util.Map<java.lang.String,java.lang.String> properties)
Invoked when client request to play a recorded file |
void |
onBinaryReceived(byte[] frame)
process client side binary message. |
void |
onText(java.lang.String result)
|
void |
processHandShake(java.lang.String action,
java.util.Map<java.lang.String,java.lang.String> p)
|
Methods inherited from class com.toremote.websocket.handler.AbstractHandler |
checkLicense, exit, getGatewayWebAddress, getSessionId, handshake, isTrue, onClientDisconnected, onHandShake, onTextReceived, sendError, sendError, sendError, setHandshakeListener, setOutput, setSessionId, showMessge, showMessge, toJson |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMD_PLAY_INFO
static final int CMD_PLAY_INFO
- See Also:
- Constant Field Values
PlayHandler
public PlayHandler()
onText
public void onText(java.lang.String result)
throws java.lang.Exception
- Specified by:
onText
in class AbstractHandler
- Throws:
java.lang.Exception
onBinaryReceived
public void onBinaryReceived(byte[] frame)
- Description copied from interface:
HandlerInterface
- process client side binary message.
- Specified by:
onBinaryReceived
in interface HandlerInterface
processHandShake
public void processHandShake(java.lang.String action,
java.util.Map<java.lang.String,java.lang.String> p)
throws java.lang.Exception
- Specified by:
processHandShake
in class AbstractHandler
- Throws:
java.lang.Exception
getInputStream
public StreamInfo getInputStream(java.util.Map<java.lang.String,java.lang.String> properties)
- Description copied from interface:
PlayerInterface
- Invoked when client request to play a recorded file
- Specified by:
getInputStream
in interface PlayerInterface
- Parameters:
properties
- parameter transfered from client side
- Returns:
- The stream information for the recorded file. You can load the recorded file from your database and return the input stream for playback.
- See Also:
StreamInfo