jreceiver.common.callback.rec
Interface DeviceStatus
- All Superinterfaces:
- Device, Hashable, Rec
- All Known Implementing Classes:
- DeviceStatusRec
- public interface DeviceStatus
- extends Device
An interface describing a JRec device, which can serve one or more Players.
- Version:
- $Revision: 1.4 $ $Date: 2002/12/29 00:44:09 $
- Author:
- Reed Esau
Method Summary |
java.lang.String |
getMacAddress()
This address is a unique network card address by which to
identify the receiver. |
int |
getPlayState()
The play state is one of the play state constants |
Source |
getSource()
This corresponds to a media source. |
long |
getTimecode()
This is the approximate number of MILLISECONDS into the current song. |
long |
getTimecodeInSeconds()
This is the approximate number of SECONDS into the current song. |
PLAY_STATE_UNKNOWN
public static final int PLAY_STATE_UNKNOWN
PLAY_STATE_STOPPED
public static final int PLAY_STATE_STOPPED
PLAY_STATE_PLAYING
public static final int PLAY_STATE_PLAYING
PLAY_STATE_PAUSED
public static final int PLAY_STATE_PAUSED
PLAY_STATE_PAUSED_OR_STOPPED
public static final int PLAY_STATE_PAUSED_OR_STOPPED
PLAY_STATE_OFF
public static final int PLAY_STATE_OFF
HKEY_MAC_ADDRESS
public static final java.lang.String HKEY_MAC_ADDRESS
HKEY_PLAY_STATE
public static final java.lang.String HKEY_PLAY_STATE
HKEY_TIMECODE
public static final java.lang.String HKEY_TIMECODE
HKEY_SOURCE
public static final java.lang.String HKEY_SOURCE
getMacAddress
public java.lang.String getMacAddress()
- This address is a unique network card address by which to
identify the receiver.
getPlayState
public int getPlayState()
- The play state is one of the play state constants
getTimecode
public long getTimecode()
- This is the approximate number of MILLISECONDS into the current song.
getTimecodeInSeconds
public long getTimecodeInSeconds()
- This is the approximate number of SECONDS into the current song.
getSource
public Source getSource()
- This corresponds to a media source. If src_id!=0 it refers to a source in the JRec database.
The player/driver can report details on the source being played.
This can be a SourceRec(), TuneRec(), PlaylistRec(), etc..
In a situation where there is no src_id associated with the media
being played (such as if the player can draw from sources other
than jrec) you can still provide meaningful status.
In such a case, create a TuneRec() and fill in the fields as best
you can, with a src_id==0.
Copyright © 2001-2002 Reed Esau, All Rights Reserved.