-
Notifications
You must be signed in to change notification settings - Fork 397
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. |
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] https://github.com/ctietze/RPi-Jukebox-RFID/commit/7bfa17e0e2285fa004b628ef604bc28704da989d |
Hi @ctietze |
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