[Web Interface Addon] AWX - Ajax based Web Interface Addon for XBMC - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Web Interfaces (/forumdisplay.php?fid=156)
+---- Thread: [Web Interface Addon] AWX - Ajax based Web Interface Addon for XBMC (/showthread.php?tid=81775)
- frolick - 2011-10-13 22:01
thevorticon Wrote:Looks like it's stopping at clearVideoPlaylist, but I haven't found any commits that might have changed the VideoPlaylist.Clear function.
Well on the 31st of August Montellese merged the audio/video player into a single player called Player. He also changed how to access playlists. That's probably what the problem is. Unfortunately that means I need to change how this interface adds and clears playlists and how it plays media.
I have no clue why it took so long for that change to make it through and start affecting the webinterface code.
Assuming he's been keeping the built in web interface up to date, I'll probably dive into that code tonight so I don't have to reinvent the wheel.
- Mizaki - 2011-10-13 23:24
I started doing the changes and got stuck with the player controls. Then haven't had time to go back to it. Playlist is all under just playlist now. I only use it for audio so I know the audio playlist.add and clear works. Hopefully save you some work.
- frolick - 2011-10-14 04:40
Mizaki Wrote:I started doing the changes and got stuck with the player controls. Then haven't had time to go back to it. Playlist is all under just playlist now. I only use it for audio so I know the audio playlist.add and clear works. Hopefully save you some work.
Thanks Mizaki, that did save me a lot of time. The controls are working now. When he refactored Player.GetActivePlayers, he decided to return an object inside of an array inside of an object which kind of threw me for a loop. The fix should be around line 337 if you want to see.
I also caught a bug that was adding songs to the playlist in the wrong order when trying to play an album. I threw out that whole function and rewrote it to use the built in XBMC function to add an album instead of trying to add it song by song.
I'm testing on the nightly from the 9th on my windows computer so things should work as of that build.
- thevorticon - 2011-10-14 05:32
frolick Wrote:Thanks Mizaki, that did save me a lot of time. The controls are working now. When he refactored Player.GetActivePlayers, he decided to return an object inside of an array inside of an object which kind of threw me for a loop. The fix should be around line 337 if you want to see.This works for me so far. Great work.
- johnham - 2011-10-14 19:41
Great work guys! I am SERIOUSLY missing this web ui since moving to nightly builds.
What would it take to commit these fixes to the official AWX add-on in the repo?
- frolick - 2011-10-14 19:58
johnham Wrote:Great work guys! I am SERIOUSLY missing this web ui since moving to nightly builds.
You know, I'm not sure how to get our changes into the official repo, but I'll try to figure it out.
My only concern is that what we've put together will only work on the newer nightly builds but maybe there's a way to specify which versions it will show up on.
- Mizaki - 2011-10-14 23:27
Thanks frolick. I think you put the wrong link, http://pastebin.com/gxuxkCqL seems to be yours
JS how little I understand thee!
Maybe call it AWX-eden. I think the only other way is to have both codes bases and pick the right one per version.
Wishlist (if you are kind enough to work on it):
Recently Added (which you've mentioned)
Highlight the currently playing in the playlist
More sort options and do them from a drop down in the playlist/library
Hide watched (I'm wondering if you can do this with filter on the JSON call?)
Icon/posters/banners (separate for TV and audio)
Film file on info is "undefined."
Files - I'm not sure what it's supposed to do. I would have thought, list the sources? I only get "/media" which has nothing but dirs for mounting cdroms. Maybe it works in Windows?
I'll do what I can, when I can but I'm no programmer If I do anything useful I'll put it here. It would be nice to get this on git, (not that I've used it much) so maybe we can get a few people adding to it.
Volume fix - Mizaki - 2011-10-15 16:34
I missed this first time around.
In lib.xbmc.js line 284:
Some fixes for PRE-11.0 - pecl24 - 2011-10-19 14:27
Thanks for the work on AWX lately. I stopped using AWX after i switched to PRE-11.0 because a lot did not work but after the latest updates in this thread, the basics were working again. Some things were broken which i fixed.
So, if you're using a PRE-11.0 version from at least October 15th, these files will fix:
* Removal of individual playlist items
* Stop/next/previous buttons
* Volume slider
* Playlist refreshes after (un)shuffling
Get the files here and replace your installed ones:
- Mizaki - 2011-10-19 17:58
Thanks for those.
I'm working on the "Now Playing" box atm. Got it going but it really needs to be changed from using InfoLabels (which will be removed sometime). I'm almost there. Having a bit of trouble with the time and duration so any help would be nice. From the info labels you get say:
I've found that you can't start a var (I guess string type) with a number, so I get an error. Any ideas? /me in no way a coder
I converted to seconds and then used the formatTime function MKay had already put in. Next is seek and then I think the currently playing box should be done.