MJPlaybackAutomation: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Controls playback and provides information about the currently playing track |
|||
Return to [[MJAutomation]] |
|||
==Functions== |
==Functions== |
||
===void Pause()=== |
===void Pause()=== |
||
Line 32: | Line 34: | ||
==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)=== |
||
Line 51: | Line 57: | ||
===number Bitspersample() (read only)=== |
===number Bitspersample() (read only)=== |
||
'''Description:''' the bits per sample of the currently playing track (i.e. 16 bits per sample)<br> |
'''Description:''' the bits per sample of the currently playing track (i.e. 16 bits per sample)<br> |
||
[[Category:COM Automation]] |
Latest revision as of 05:37, 4 May 2015
Controls playback and provides information about the currently playing track
Return to MJAutomation
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)