All Packages Class Hierarchy This Package Previous Next Index
Class calypso.clients.tv.RemoteControlUser
java.lang.Object
|
+----calypso.clients.tv.RemoteControlUser
- public class RemoteControlUser
- extends Object
- implements RemoteControlListener
Class for implementing the RemoteControlListener interface.
- Author:
- Olli-Pekka Auvinen / TCM laboratory / HUT
-
ccActive
- Is the ChannelSelection object active?
-
channelControls
- Reference to the ChannelSelection object that allows changing channel.
-
command
- Variable holding command string of the last RemoteControlKeyDownEvent.
-
ctrlPack1
- The DatagramPacket object for control message communicating.
-
ctrlPack2
- The DatagramPacket object for control message communicating.
-
ctrlSocket
- The DatagramSocket object through which the control messages are sent.
-
lastPressed
- Variable holding the information of the type of the key last pressed.
-
NORMAL_PRESSED
- Identifier for normal key pressing.
-
RECV_BUF_LEN
- The buffer length for received control messages.
-
recvCtrlBuffer
- The buffer for receiving control messages.
-
SEND_BUF_LEN
- The buffer length for transmitted control messages.
-
sendCtrlBuffer
- The buffer for transmitting control messages.
-
state
- Variable holding state of the last RemoteControlStateEvent.
-
TEN_PRESSED
- Identifier for 10+ key pressing.
-
TWENTY_PRESSED
- Identifier for 20+ key pressing.
-
RemoteControlUser(String, int, ChannelSelection)
- The constructor for ControlMessageReceiver.
-
remoteControlKeyDown(RemoteControlKeyDownEvent)
- The remoteControlKeyDown method.
-
remoteControlState(RemoteControlStateEvent)
- The remoteControlState method.
-
sendCtrlMsg(CtrlMessage)
- The sendCtrlMsg method.
ctrlSocket
protected DatagramSocket ctrlSocket
- The DatagramSocket object through which the control messages are sent.
ctrlPack1
protected DatagramPacket ctrlPack1
- The DatagramPacket object for control message communicating.
ctrlPack2
protected DatagramPacket ctrlPack2
- The DatagramPacket object for control message communicating.
recvCtrlBuffer
protected byte recvCtrlBuffer[]
- The buffer for receiving control messages.
sendCtrlBuffer
protected byte sendCtrlBuffer[]
- The buffer for transmitting control messages.
lastPressed
protected int lastPressed
- Variable holding the information of the type of the key last pressed.
command
protected String command
- Variable holding command string of the last RemoteControlKeyDownEvent.
state
protected int state
- Variable holding state of the last RemoteControlStateEvent.
channelControls
protected ChannelSelection channelControls
- Reference to the ChannelSelection object that allows changing channel.
ccActive
protected boolean ccActive
- Is the ChannelSelection object active?
RECV_BUF_LEN
public static final int RECV_BUF_LEN
- The buffer length for received control messages.
SEND_BUF_LEN
public static final int SEND_BUF_LEN
- The buffer length for transmitted control messages.
NORMAL_PRESSED
protected static final int NORMAL_PRESSED
- Identifier for normal key pressing.
TEN_PRESSED
protected static final int TEN_PRESSED
- Identifier for 10+ key pressing.
TWENTY_PRESSED
protected static final int TWENTY_PRESSED
- Identifier for 20+ key pressing.
RemoteControlUser
public RemoteControlUser(String hostName_,
int port_,
ChannelSelection channelControls_)
- The constructor for ControlMessageReceiver.
- Parameters:
- hostName_ - Viewer application host name.
- port_ - Viewer application control port.
- channelControls_ - Window holding channel information.
remoteControlKeyDown
public synchronized void remoteControlKeyDown(RemoteControlKeyDownEvent rce_)
- The remoteControlKeyDown method.
The method interprets the received events and invokes the actual
control methods concerning the tv parameters like: current channel
and volume level.
- Parameters:
- rce_ - Received RemoteControlKeyDownEvent.
remoteControlState
public synchronized void remoteControlState(RemoteControlStateEvent rcs_)
- The remoteControlState method.
Default state is TV altered by pressing the TV/VCR button.
- Parameters:
- rcs_ - Received RemoteControlStateEvent.
sendCtrlMsg
protected void sendCtrlMsg(CtrlMessage msg)
- The sendCtrlMsg method.
Sends control messages to the mpg forwarder.
- Parameters:
- msg - Control message instance to be sent.
All Packages Class Hierarchy This Package Previous Next Index