Class ThincCMsgVideoStartOK

java.lang.Object
  extended by ThincMsg
      extended by ThincCMsg
          extended by ThincCMsgVideo
              extended by ThincCMsgVideoStartOK

Deprecated. server does not send the next message if it is sent. if you want to use it, only use this when you want to stop video.

public final class ThincCMsgVideoStartOK
extends ThincCMsgVideo

ThincCMsgVideoStartOK sends an ACK/NAK messages for video stream to the server.

Author:
Young Jin Yoon
See Also:
ThincCMsgVideo

Field Summary
private  int id
          Deprecated.  
static int MESSAGE_SIZE
          Deprecated.  
static int MESSAGE_TYPE
          Deprecated.  
static int NOTOK
          Deprecated.  
private  boolean ok
          Deprecated.  
static int OK
          Deprecated.  
 
Fields inherited from class ThincMsg
canvas, handler
 
Constructor Summary
ThincCMsgVideoStartOK(ThincMsgHandler h, ThincClientCanvas c, int id, boolean startOK)
          Deprecated. creates ThincCMsgSoundStart object.
 
Method Summary
 byte getMsgType()
          Deprecated. getMsgType() returns a type of the message.
 short messageSize()
          Deprecated. messageSize() returns the total messageSize to send.
 void process()
          Deprecated. process() is general processing method for each thinc messages.
 void putMessage(java.nio.ByteBuffer b)
          Deprecated. putMessage() puts stream id and its ACK or NAK. 1 for ACK, 0 for NAK
 
Methods inherited from class ThincCMsg
getFlag, headerSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_SIZE

public static final int MESSAGE_SIZE
Deprecated. 
See Also:
Constant Field Values

MESSAGE_TYPE

public static final int MESSAGE_TYPE
Deprecated. 
See Also:
Constant Field Values

OK

public static final int OK
Deprecated. 
See Also:
Constant Field Values

NOTOK

public static final int NOTOK
Deprecated. 
See Also:
Constant Field Values

id

private int id
Deprecated. 

ok

private boolean ok
Deprecated. 
Constructor Detail

ThincCMsgVideoStartOK

public ThincCMsgVideoStartOK(ThincMsgHandler h,
                             ThincClientCanvas c,
                             int id,
                             boolean startOK)
Deprecated. 
creates ThincCMsgSoundStart object.

Parameters:
h - ThincMsgHandler to handle the message
c - ThincClientCanvas to get the information
id - identifier for each video streams
startOK - boolean flag that refers OK or not OK
Method Detail

getMsgType

public byte getMsgType()
Deprecated. 
Description copied from class: ThincCMsg
getMsgType() returns a type of the message.

Specified by:
getMsgType in class ThincCMsg
Returns:
type of message

putMessage

public void putMessage(java.nio.ByteBuffer b)
Deprecated. 
putMessage() puts stream id and its ACK or NAK. 1 for ACK, 0 for NAK

Specified by:
putMessage in class ThincCMsg
Parameters:
b - ByteBuffer object to send

messageSize

public short messageSize()
Deprecated. 
Description copied from class: ThincCMsg
messageSize() returns the total messageSize to send.

Specified by:
messageSize in class ThincCMsg
Returns:
total messageSize refered from ThincMsgHandler class

process

public void process()
             throws ThincException
Deprecated. 
Description copied from class: ThincMsg
process() is general processing method for each thinc messages. Most of client messages, it simply invokes send() methods in ThincMsgHandler object to send the client messages. In server messages, it interacts with ThincClientCanvas in this method.

Specified by:
process in class ThincMsg
Throws:
ThincException