-
Notifications
You must be signed in to change notification settings - Fork 3
playerengine status #11
Comments
Don’t know the story behind the unassigned $song var. It was same in the original sources. There may have been some code in Playerengine that got accidentally deleted and no one noticed. We should discuss Playerengine in depth because it looks like it should work by sending status and current song data back to UI when MPD idle timeout occurs, but in practice the UI never seemed to reflect the current song data thus u will see a JS function named mpdCurrentSong(). I remember walking the MPD commands by hand, matching them up to the code and then I got to function _parseFileListResponse() and became a bit confused. Tim
|
Doing so right now. Could you get me samples of playerengine output for radio, mp3, playlist and upnp? At least playlist and upnp, dont have those. In general, pe seems fine. Lets get rid of currentsong ;) |
My thought exactly, pe should work and no need for mpdCurrentSong(). Logic for how to differentiate between song files, UPnP song files and radio stations is in mpdCurrentSong(), getPlaylist(), and player_wrk.php. It’s all basically the same logic, just factored a bit depending on whether to display under Album Art or as a Playlist Item or as a Playback history item. Maybe just move this logic to PE? I’ll put together some sample MPD status, playlistinfo and currentsong command output in a bit. I can’t do UPnP because that was all done by Ralf Braun. I coded and he tested and sent back MPD output from his UPnP based setup. Tim
|
In playerengine, mpd status is read and enhanced:
In the second case
$song
is assigned which doesn't exist. What are the two cases and how should song be set in the second file?The text was updated successfully, but these errors were encountered: