MJPlaybackAutomation: Difference between revisions
Skeeterfood (talk | contribs) No edit summary |
No edit summary |
||
Line 57: | 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)