WebUI

Amarok 2.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

12
6 .6
Description:

This project isn't being maintained anymore. However, there is a fork which is under active development: http://kde-apps.org/content/show.php/Amarok+Apollo+WebUI?content=159671

Web interface for Amarok (2.x)

The current version is optimized for iPhone and at an early stage. Any sort of feedback/suggestion is appreciated!

After starting the script just open http://[ip-of-your-host-running-amarok]:8080/ in your iPhone Safari browser. If port 8080 is already in use change "PORT" in "$HOME/.kde/share/apps/amarok/scripts/amarok-webui/conf.js"). The default credentials are login=foo pw=bar67#. They can be changed in conf.js, too.

I tested the script with Amarok 2.2 on Debian unstable.

My current TODO list:
* [strike]Collection browsing.[/strike]
* [strike]Manipulation of playlist[/strike] [clear button is missing]
* [strike]Basic authentication (RFC2617)[/strike] [digest auth?]
* [strike]Play/pause/stop/reload/vol up/down button images[/strike]
* [strike]Make controls accessible from every view (modal dlg)[/strike]
* Modify navigation in collection browsing for large collections (search dlg?)
* "Push" notifications (long polling?)
* Configuration UI
Last changelog:

7 years ago

0.36 2010-1-11
[indent] * Added config option to restrict access to a subnet.
* Fixed order of tracks when adding/setting an album to/as a playlist.[/indent]
0.35 2009-11-9
[indent] * Moved controls from the current-track-view to a modal dlg
which is accessible from _every_ view.
* Icon for the springboard/home screen on the iPhone.
* Smaller cover image in current-track-view.
* Minor bugfixes.[/indent]
0.3 2009-11-5
[indent] * Improved collection browsing:
Track list from an album
All tracks from an artist
* Playlist manipulation (accessible by collection browser)
Add album/all tracks from an artist to current playlist
Replace current playlist by album/all tracks from an artist
* New control buttons (play, pause, stop, reload, vol up/down)
* Code refactoring[/indent]
0.2 2009-10-31
[indent] * Added basic HTTP authentication
Since this doesn't really offer security on untrusted connections
digest authentication will probably be implemented soon.
The credentials currently are: login=foo passwd=bar67#
They can be changed in $HOME/.kde/share/apps/amarok/scripts/amarok-webui/conf.js
* Added collection browsing
Currently only the artists and their albums can be browsed.
Adding/replacing albums or songs from the collection to/in the
playlist will be added soon.
* Fixed error in debug message
* Code refactoring[/indent]
0.1 2009-10-28
[indent] * Initial Release[/indent]

nailuj

9 years ago

The buttons give no feedback whatsoever when they are pushed, so make sure they really don't work. It's confusing, but they looks like nothing happened when you click them, the albums are still added to the playlist though.

Report

JanMalte

9 years ago

I plugged the speakers in my sleeping room onto the Hifi which is connected to my computer where amarok is running. This great script is just amazing and perfect. I can use my N900 while resting in my bed to control amarok. Later a WeTab will follow which is perfect for actions like this.
But one negative point is the not working add to playlist function.
It seems like the wrong filepath or so is used. If you click set as playlist the playlist gets empty, so an actin is triggered, but some informations seems to be missing.
Please fix this. Nevertheless this is amazing. Thank you so much for this script.

Report

jefe

10 years ago

Any update coming to the add-on to help Android users? I check back often but I've not seen any changes.

Report

casanunda

9 years ago

I would also love to see a version that makes a website not so "safari-specific".

I tried with several different browsers- all of them have their own problems making it not really usable:
- modest (nokia n900's built-in maemo browser) -- shows only half of the content. some of the steering elements work, some don't.
- firefox mobile -- the same as above (but a little different ;-) )
- firefox desktop (to try it out) - same as above
- opera mobile -- works better than the other ones, but browsing the collection and than selecting a song to play does not work.

Report

jefe

10 years ago

Still hoping for an update for Android phones and other web browsers!

Report

kubista

10 years ago

I really like to be able to zap through my music using my laptop. Now I can!
Since my phone doesn't have wifi connectivity, I have to access the amarok WebUI through the WAN-ip, but this doesn't seem to work. Is it restricted by default? And can I configure it to be open from the outside?

Report

Snyke

10 years ago

I love it, just the thing I always wanted to do, but you nailed it :-)

Report

nhnFreespirit

10 years ago

This looks really nice, and Amarok has been lacking something like this.

One big issue that I have is that with the very latest Amarok from git master (what will become 2.2.3, I have not tested it with other versions) much of the info that is supposed to show just shows up as empty white boxes. For instance, when browsing the collection, artist and album names are fine, but all track names are missing, and in the "current track" view, everything except the album image is missing.

Report

C

jwchile

10 years ago

Hi Tris!

Thanks for the hint. Do you have any details regarding the 2.2.3 scripting API changes?

When I've some spare time I'll think of adding the rating feature.

Cheers,
Johannes

Report

nhnFreespirit

10 years ago

Actually, it seems to be a browser specific issue.

It works in Chromium but not in firefox and, most importantly, on the N900 browser.

Report

kubista

10 years ago

I've experienced the same thing. Chrome works, Firefox doesn't. One more thing: is it possible to include (shoutcast)streams?

Report

trisr

10 years ago

This is the thing that I've been searching for. My pc is upstairs and to be able to control it from my phone is an absolute god send. All I wanted was play/pause, next, and volume. Anything else is just yummy icing on the cake.

I'm using a HTC magic running Android and it looks and runs fine.

Browsing the Collection is a bit slow and I'd be interested to see what it looks like when you get through your "TO DO" list. Still with 20000+ tracks I think I'll always put together a playlist on the pc rather that from the phone. Adding 1 song at a time as was suggested might be useful for the odd occasion when you want to show a friend a new song.

The ability to see and update ratings would be high on my list of features that I would love to see. I have really wanted to rate my collection but am not always at my computer when listening.

Again Thanks...

Tris

Report

foolosophy

10 years ago

I find this extremely useful.
Just one thing: am I stupid or there is no way to add just one track to the playlist? I sometimes don't want to add a whole album (in parties, for example).

Report

C

jwchile

10 years ago

Hi!

> VERY good
> I find this extremely useful.

Thanks!

> Just one thing: am I stupid or there is no way to
> add just one track to the playlist? I sometimes
> don't want to add a whole album (in parties, for
> example).

Yes, you are right. Currently there is now way to add one specific track. I thought it might be a little cumbersome populating a playlist track by track with this web interface. I'll think of adding it in the next release when I have time.

Cheers,
Johannes

Report

minatolf

10 years ago

This thing rocks! It wasn't fair for amarok not to have a remote application like many other music players had one (or more). The only thing I would like to be improved is, if i's possible of course, to include the iphone music player icons to play, pause, go next, etc. instead of the ones that are beeing used right now. Besides that, it really works flawlesslly so I can't complain at all.

Thanks.

Report

C

jwchile

10 years ago

Thanks for the feedback! In 0.3 I replaced the buttons as you suggested.

Johannes

Report

patclay

10 years ago

I have been looking for something like this for ages. Now I can use it to control my mostly headless mp3 player from the next room.

Just one thing which is probably obvious in retrospect, but this script relies on having apache installed on the amarok machine.

The web pages look great on my wifes machine running chrome, not so pretty on my nix machine running firefox. But it works!

Report

C

jwchile

10 years ago

I'm glad you like it:)

Quote:[...] this script relies on having apache installed on the amarok machine.

Actually this is not a requirement. The webpages are delivered by a simple HTTP-Server whithin in the script.

Quote:The web pages look great on my wifes machine running chrome, not so pretty on my nix machine running firefox. But it works!

So far I optimized the web pages for my own needs, the iPhone browser. Since Safari (iPhone) and Chrome both rely on WebKit it's not surprising that they look better on Chrome than Firefox. Once I implemented the major functionality I'll think about adding a "theme" which suits most desktop browsers.

Cheers,
Johannes

Report

patclay

10 years ago

Hmm, I have it figured out now.

I messed some other stuff up, and had to reinstall Xubuntu, but that gave me the opportunity to figure out what I really needed to do to make it work:
Install the script
Restart Amarok
Go back into Amarok and turn the script on.

Simple!

Report

ManInTheSun

10 years ago

amarok: SCRIPT "Amarok WebUI" : "TypeError: Type error"

When trying to connect to <ip>:<port> where WebUI is running.

Report

ManInTheSun

10 years ago

Ok. I got it figured out:
Add .toString() to r[0] and r[1] in handlePendingRequests()'s debug.

Report

C

jwchile

10 years ago

Thanks a lot for your feedback!

Hm, I'm not getting this error but I will upload a version with your suggested change since it fixes your problem.

Could you maybe tell me what version of Amarok and Qt you are using? And in the line you are referring to a string is concatenated with an QAbstractSocket (r[0]) and a string (r[1]):
Quote:Amarok.debug("Pending: Handling request (left: "+this.requestQueue.length+"): "+r[0]+" "+r[1]);
Since the leftmost argument already is a string (literal) I expected all the other arguments to be converted to a string automatically (as described in 11.6 in the ECMA spec http://www.ecma-international.org/publications/files/drafts/tc39-2009-025.pdf). But I'm relatively new to ECMA/JavaScript, so I'm glad if you/anyone can give me a hint.

Cheers,
Johannes

Report

ManInTheSun

10 years ago

You are very welcome, Johannes. I'm glad I been able to help with this one.

I have Amarok 2.2.0 and Qt 4.5.2.

You are right about converting following objects to String when leftmost is a literal. It *should* behave so in JavaScript but I have never done scripting with Qt stuff -- Maybe it's objects behave different and need a direct call. (What looks like a bug to me.)

Report

7 years ago

0.36 2010-1-11
[indent] * Added config option to restrict access to a subnet.
* Fixed order of tracks when adding/setting an album to/as a playlist.[/indent]
0.35 2009-11-9
[indent] * Moved controls from the current-track-view to a modal dlg
which is accessible from _every_ view.
* Icon for the springboard/home screen on the iPhone.
* Smaller cover image in current-track-view.
* Minor bugfixes.[/indent]
0.3 2009-11-5
[indent] * Improved collection browsing:
Track list from an album
All tracks from an artist
* Playlist manipulation (accessible by collection browser)
Add album/all tracks from an artist to current playlist
Replace current playlist by album/all tracks from an artist
* New control buttons (play, pause, stop, reload, vol up/down)
* Code refactoring[/indent]
0.2 2009-10-31
[indent] * Added basic HTTP authentication
Since this doesn't really offer security on untrusted connections
digest authentication will probably be implemented soon.
The credentials currently are: login=foo passwd=bar67#
They can be changed in $HOME/.kde/share/apps/amarok/scripts/amarok-webui/conf.js
* Added collection browsing
Currently only the artists and their albums can be browsed.
Adding/replacing albums or songs from the collection to/in the
playlist will be added soon.
* Fixed error in debug message
* Code refactoring[/indent]
0.1 2009-10-28
[indent] * Initial Release[/indent]

12345678910
49
product-maker watho Nov 24 2011 9 excellent
product-maker Keksbubi Aug 04 2011 9 excellent
product-maker strangersong Jul 05 2011 9 excellent
product-maker mesamoo115 May 23 2011 9 excellent
product-maker TannerDessert May 14 2011 9 excellent
product-maker otzy007 Apr 27 2011 3 bad
product-maker kem Mar 03 2011 9 excellent
product-maker martosurf Feb 26 2011 9 excellent
product-maker mklemenz Jan 03 2011 3 bad
product-maker stustustu123 Dec 31 2010 9 excellent
product-maker skipjack Dec 23 2010 3 bad
product-maker sut Nov 10 2010 9 excellent
product-maker polluted88 Oct 16 2010 3 bad
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
mudar
Jul 09 2013
marcuswrk
Jan 12 2012
watho
Nov 24 2011
mcongom
Apr 16 2011
magnu5
Dec 19 2010
whoward
Nov 28 2010
andiwauss
Jul 26 2010
ingoldey
Jun 04 2010
Keidon
May 23 2010
aubreybourke
Feb 11 2010
trisr
Jan 18 2010
polluted88
Nov 06 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.36
updated Jul 19 2013
added Oct 27 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 5
System Tags addon