-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve webplayer UX #623
Improve webplayer UX #623
Conversation
hinnerkoetting
commented
Nov 9, 2019
Information and controls for the webplayer page was moved from server rendering to AJAX requests. API endpoints were added to request status informations and send commands. The Webpage can now be controlled without full page reloads so that it feels more responsive. Also the number of calls to mopidy was reduced so that the page loads faster and mopidy stability is improved.
@@ -0,0 +1,175 @@ | |||
<?php | |||
include ("lang/lang-en-UK.php"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @hinnerkoetting this line makes me wonder if and how the ajax version should handle the interface language - which can be switched.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MiczFlor I "solved" it by printing all localisations in the index.php, so that they can be accessed by javascript.
I guess it is not a perfect solution but should be good enough for now in my opinion.
Hi @hinnerkoetting |
I really like this project, so I am happy that I could contribute some code. |
Hi @hinnerkoetting if I switch from
with the matching HTML. |
Hi @hinnerkoetting
where the href tries to open the URL - in my Firefox on apache2, but I assume it would do the same on the Pi. The matching code in the Wep App UI is:
|
@MiczFlor: I will check it probably tomorrow evening. The second case seems to be that I forgot to change <a href='playPlaylist... to <a onclick='playPlaylist... I am not sure what causes the first issue, the playlist should be filled in updatePlaylistData() in htdocs/inc.loadedPlaylist.php. |
- Split MPD response key-value pair at the position ": " - All response keys in lower case
- Rework MPD response processing, split key-value pairs at ": " - Change all response keys to lower case for further processing Introduce php-unit as testing framework - Add composer as dependency manager - Add phpunit and php-mock as dependencies - Introduce namespace 'Jukebox' to enable mocking of build-in php functions e.g. "exec", "headers"
- Rework "currentsong" response processing, split key-value pairs at ": " - Change all response keys to lower case for further processing - Change "playlist" command to "playlistinfo" to receive additional track info (pos, time, albumLength) - Add singlequotes to directory shell arguments to support spaces in folders Introduce php-unit as testing framework - Add composer as dependency manager - Add phpunit and php-mock as dependencies - Introduce namespace 'Jukebox' to enable mocking of build-in php functions e.g. "exec", "headers"
- Rework "currentsong" response processing, split key-value pairs at ": " - Change all response keys to lower case for further processing - Change "playlist" command to "playlistinfo" to receive additional track info (pos, time, albumLength) - Add singlequotes to directory shell arguments to support spaces in folders - Remove comma from playlist name if exists, to fix collapsable tracklist Introduce php-unit as testing framework - Add composer as dependency manager - Add phpunit and php-mock as dependencies - Introduce namespace 'Jukebox' to enable mocking of build-in php functions e.g. "exec", "headers"
Hi @MiczFlor , Hi @hinnerkoetting , I`m just building up a box and thought, I can help a little bit... I already fixed some of them, but there are still some open issues
I pushed my first changes to an own branch [1], as it is still "work in progress". Best regards [1] ctietze@7bfa17e |
- Rework "currentsong" response processing, split key-value pairs at ": " - Change all response keys to lower case for further processing - Change "playlist" command to "playlistinfo" to receive additional track info (pos, time, albumLength) - Add singlequotes to directory shell arguments to support spaces in folders - Remove comma from playlist name if exists, to fix collapsable tracklist Introduce php-unit as testing framework - Add composer as dependency manager - Add phpunit and php-mock as dependencies - Introduce namespace 'Jukebox' to enable mocking of build-in php functions e.g. "exec", "headers"
Hi @ctietze |
- Rework "currentsong" response processing, split key-value pairs at ": " - Change all response keys to lower case for further processing - Change "playlist" command to "playlistinfo" to receive additional track info (pos, time, albumLength) - Add singlequotes to directory shell arguments to support spaces in folders - Remove comma from playlist name if exists, to fix collapsable tracklist - Remove duplicate ":" from list argument - Hide overalltime for e.g. podcasts Introduce php-unit as testing framework - Add composer as dependency manager - Add phpunit and php-mock as dependencies - Introduce namespace 'Jukebox' to enable mocking of build-in php functions e.g. "exec", "headers"
Hi @MiczFlor, Best regards |
Sure, I will also have a look. Can you tell me which podcast you were listening to? That will probably make it easier to reproduce. |
Restore missing playlist in webapp #623