Difference between revisions of "MJPlaybackAutomation"
(→MJPlaybackStates State() (read only)) |
|||
Line 32: | Line 32: | ||
==Properties== | ==Properties== | ||
===MJPlaybackStates State() (read only)=== | ===MJPlaybackStates State() (read only)=== | ||
− | '''Description:''' the current playback state | + | '''Description:''' the current playback state |
+ | * PLAYSTATE_STOPPED - Stopped | ||
+ | * PLAYSTATE_PAUSED - Paused | ||
+ | * PLAYSTATE_PLAYING - Playing | ||
+ | * PLAYSTATE_WAITING - Waiting) | ||
===number Bitrate() (read only)=== | ===number Bitrate() (read only)=== |
Revision as of 12:00, 23 January 2007
controls playback and provides information about the currently playing track
Contents
Functions
void Pause()
Description: toggles the pause state
void Stop()
Description: stops playback
void Next()
Description: plays the next track in "Playing Now"
void Previous()
Description: plays the previous track in "Playing Now"
void FastForward()
Description: advances the position of the playing track (amount depends on file type)
void Rewind()
Description: rewinds the position of the playing track (amount depends on file type)
boolean IsBuffering()
Description: queries to see if Media Center is buffering
Return Value: TRUE if buffering, FALSE if not buffering
void Play()
Description: begins playback of the current track in "Playing Now"
boolean IsVideo()
Description: queries to see if Media Center has video
Return Value: TRUE if MJ has video, FALSE if not.
Properties
MJPlaybackStates State() (read only)
Description: the current playback state
- PLAYSTATE_STOPPED - Stopped
- PLAYSTATE_PAUSED - Paused
- PLAYSTATE_PLAYING - Playing
- PLAYSTATE_WAITING - Waiting)
number Bitrate() (read only)
Description: the bitrate of the currently playing track (i.e. 128 kbps)
number Position() (read / write)
Description: the position in the currently playing track (i.e. 111 seconds)
number Duration() (read only)
Description: the duration of the currently playing track (i.e. 257 seconds)
number Channels() (read only)
Description: the number of channels in the currently playing track (i.e. 2 channels (stereo))
number Samplerate() (read only)
Description: the sample rate of the currently playing track (i.e. 44100 Hz)
number Bitspersample() (read only)
Description: the bits per sample of the currently playing track (i.e. 16 bits per sample)