I'm still stumped on trying to make my html detect when the player is
Paused/Stopped or powered On/Off using the below reference.  I've
attached my html. What I'd like is to replace the Title with "Now
Stopped" whenever the player is stopped, "Now Paused" when the player
is paused, and "Powered OFF" when the player is powered off. Any
suggestions?


playerStatus = {
// if power is undefined, set it to on for http clients
power: (response.power == null) || response.power,
mode: response.mode,
rate: response.rate,
current_title: response.current_title,
title: response.playlist_tracks > 0 ? response.playlist_loop[0].title :
'',
track: response.playlist_tracks > 0 ? response.playlist_loop[0].url :
'',
index: response.playlist_cur_index,
duration: parseInt(response.duration) || 0,
canSeek: response.can_seek ? true : false,
playtime: parseInt(response.time),
timestamp: response.playlist_timestamp
};


+-------------------------------------------------------------------+
|Filename: nowplaying.txt                                           |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=6114|
+-------------------------------------------------------------------+

-- 
starfleetcommand
------------------------------------------------------------------------
starfleetcommand's Profile: 
http://forums.slimdevices.com/member.php?userid=20604
View this thread: http://forums.slimdevices.com/showthread.php?t=53975

_______________________________________________
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to