MiniSub - Subsonic HTML5 Web App (Archive)

Jamstash is an HTML5 Mini Player for the Subsonic streaming server

Moderator: moderators

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Sat Mar 31, 2012 5:01 pm

I just pushed version 1.9 which switches to the SoundManager2 audio library. I have to force it to use HTML5 over Flash so we are still relying on Chrome's <audio> implementation. I'm hoping it was better implemented than AudioJS.

The ability to change song position is temporary lost. I had to implement the progress bar from scratch using the SM2 API.

Try this for any of those who have been having issues with audio stopping.
Jamstash Developer
Chrome App - https://chrome.google.com/webstore/detail/jccdpflnecheidefpofmlblgebobbloc
Beta Site - http://beta.jamstash.com
GitHub Project - https://github.com/tsquillario/Jamstash
User avatar
tsquillario
 
Posts: 206
Joined: Thu Jun 30, 2011 5:10 pm
Location: State College, PA

Re: Subsonic HTML5 MiniPlayer

Postby Tanner Williamson » Sun Apr 01, 2012 2:30 am

I just saw MiniSub included in the OwnCloud3 Demo here.
http://demo.owncloud.org/apps/minisub/index.php

http;//www.owncloud.org for the main app.

I saw the icon and the name, and then got thinking, I never had heard of this here on Subsonic as an official app, and them came back to this thread. Looks like MiniSub is taking on a following even outside of Subsonic.
Tanner Williamson https://www.tannerwilliamson.com/

Image
Tanner Williamson
 
Posts: 51
Joined: Mon Dec 14, 2009 7:30 am

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Sun Apr 01, 2012 2:42 am

Tanner Williamson wrote:I just saw MiniSub included in the OwnCloud3 Demo here.
http://demo.owncloud.org/apps/minisub/index.php

http;//www.owncloud.org for the main app.

I saw the icon and the name, and then got thinking, I never had heard of this here on Subsonic as an official app, and them came back to this thread. Looks like MiniSub is taking on a following even outside of Subsonic.


Yea she gets around, lol. I got contacted a few weeks ago about it. There will be a link in a future release of Subsonic too.
Jamstash Developer
Chrome App - https://chrome.google.com/webstore/detail/jccdpflnecheidefpofmlblgebobbloc
Beta Site - http://beta.jamstash.com
GitHub Project - https://github.com/tsquillario/Jamstash
User avatar
tsquillario
 
Posts: 206
Joined: Thu Jun 30, 2011 5:10 pm
Location: State College, PA

Re: Subsonic HTML5 MiniPlayer

Postby usmcguy » Sun Apr 01, 2012 3:44 pm

I've got SubSonic 4.6 beta2 running on my Mac. I access it locally on my Mac. Using the Normal interface (localhost:8081) I can play music no problem. I've got the MiniSub in /Library/Application Support/Subsonic/MiniSub. So when I try to access localhost:8081/MiniSub, it comes up no problem. But none my music is shown in the interface. In the MiniSub preferences tab, Ive setup the username and password, and attempted using just localhost in the server url, and I've attempted localhost:8081 in the server URL, neither one seems to work. I dont see any errors in the "subsonic.log" file. Any ideas?
usmcguy
 
Posts: 4
Joined: Sun Apr 01, 2012 3:40 pm

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Mon Apr 02, 2012 4:17 pm

Just posted 1.9.2 to fix issues with the Chrome web app. If you use this you MUST update to ensure seamless operation while playing music.

This post led me down the right path in adding a random &salt= value to the end of the stream.view API call so that Chrome doesn't cache the request.
http://forum.subsonic.org/forum/viewtopic.php?f=8&t=8749&p=39376
Jamstash Developer
Chrome App - https://chrome.google.com/webstore/detail/jccdpflnecheidefpofmlblgebobbloc
Beta Site - http://beta.jamstash.com
GitHub Project - https://github.com/tsquillario/Jamstash
User avatar
tsquillario
 
Posts: 206
Joined: Thu Jun 30, 2011 5:10 pm
Location: State College, PA

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Mon Apr 02, 2012 4:22 pm

usmcguy wrote:I've got SubSonic 4.6 beta2 running on my Mac. I access it locally on my Mac. Using the Normal interface (localhost:8081) I can play music no problem. I've got the MiniSub in /Library/Application Support/Subsonic/MiniSub. So when I try to access localhost:8081/MiniSub, it comes up no problem. But none my music is shown in the interface. In the MiniSub preferences tab, Ive setup the username and password, and attempted using just localhost in the server url, and I've attempted localhost:8081 in the server URL, neither one seems to work. I dont see any errors in the "subsonic.log" file. Any ideas?


I haven't tested with that particular release. Wouldn't the 4.6 stable release be more recent than the beta2?

If you are using Firefox launch Firebug (F12), or launch the developer console in Chrome (F12). Is it giving you any errors when you go on the Console tab?
Jamstash Developer
Chrome App - https://chrome.google.com/webstore/detail/jccdpflnecheidefpofmlblgebobbloc
Beta Site - http://beta.jamstash.com
GitHub Project - https://github.com/tsquillario/Jamstash
User avatar
tsquillario
 
Posts: 206
Joined: Thu Jun 30, 2011 5:10 pm
Location: State College, PA

Re: Subsonic HTML5 MiniPlayer

Postby usmcguy » Tue Apr 03, 2012 11:31 am

I don't get any errors in the Firebug Console, but in the Chrome Console I get:

Uncaught TypeError: Cannot read property 'length' of null
HexEncode:8081/MiniSub/js/app.js:1010
(anonymous function)

For somereason, after I end a session, my settings I put in the username password and server fields are lost. This almost sounds like a permissions issue, but to my knowledge the permissions are good. Where are the settings (username password, server) for MiniSub stored?

The version I'm using on the Mac is the version they have linked on the website. ( I'm using 4.6, not Beta2)

EDIT: So it appears my problem was on the settings page. I didn't notice the mouse over for the server field. I had only been putting in the IP and port of the Server. I didnt know it wanted "http://servername:port". Perhaps that should be a note and not just a mouse over field?
usmcguy
 
Posts: 4
Joined: Sun Apr 01, 2012 3:40 pm

Re: Subsonic HTML5 MiniPlayer

Postby usmcguy » Tue Apr 03, 2012 12:46 pm

Has this been tested on iOS yet?

I'm testing it out now on my iPhone 4 and music isn't playing. I look in the subsonic.log and here's what I see when I play a Song on my desktop (windows 7 running Google Chrome) browser:

[2012-04-03 08:45:21,162] INFO StreamController - Got range: Range[0,9223372036854775807]
[2012-04-03 08:45:21,163] INFO PlaylistInputStream - admin listening to "Unknown Album/Janie's got a gun.mp3"

If I attempt to play it on the iPhone, this appears in the subsonic.log:

[2012-04-03 08:44:25,237] INFO StreamController - Got range: Range[0,1]
[2012-04-03 08:44:25,237] INFO PlaylistInputStream - admin listening to "Unknown Album/Janie's got a gun.mp3"
usmcguy
 
Posts: 4
Joined: Sun Apr 01, 2012 3:40 pm

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Tue Apr 03, 2012 12:53 pm

usmcguy wrote:Has this been tested on iOS yet?

I'm testing it out now on my iPhone 4 and music isn't playing. I look in the subsonic.log and here's what I see when I play a Song on my desktop (windows 7 running Google Chrome) browser:

[2012-04-03 08:45:21,162] INFO StreamController - Got range: Range[0,9223372036854775807]
[2012-04-03 08:45:21,163] INFO PlaylistInputStream - admin listening to "Unknown Album/Janie's got a gun.mp3"

If I attempt to play it on the iPhone, this appears in the subsonic.log:

[2012-04-03 08:44:25,237] INFO StreamController - Got range: Range[0,1]
[2012-04-03 08:44:25,237] INFO PlaylistInputStream - admin listening to "Unknown Album/Janie's got a gun.mp3"


Dude, use the iPhone app...
Jamstash Developer
Chrome App - https://chrome.google.com/webstore/detail/jccdpflnecheidefpofmlblgebobbloc
Beta Site - http://beta.jamstash.com
GitHub Project - https://github.com/tsquillario/Jamstash
User avatar
tsquillario
 
Posts: 206
Joined: Thu Jun 30, 2011 5:10 pm
Location: State College, PA

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Tue Apr 03, 2012 12:55 pm

usmcguy wrote:I don't get any errors in the Firebug Console, but in the Chrome Console I get:

Uncaught TypeError: Cannot read property 'length' of null
HexEncode:8081/MiniSub/js/app.js:1010
(anonymous function)

For somereason, after I end a session, my settings I put in the username password and server fields are lost. This almost sounds like a permissions issue, but to my knowledge the permissions are good. Where are the settings (username password, server) for MiniSub stored?

The version I'm using on the Mac is the version they have linked on the website. ( I'm using 4.6, not Beta2)

EDIT: So it appears my problem was on the settings page. I didn't notice the mouse over for the server field. I had only been putting in the IP and port of the Server. I didnt know it wanted "http://servername:port". Perhaps that should be a note and not just a mouse over field?


Are you hitting Save? It doesn't look like it's reading the username/password. All settings are saved in cookies.
Jamstash Developer
Chrome App - https://chrome.google.com/webstore/detail/jccdpflnecheidefpofmlblgebobbloc
Beta Site - http://beta.jamstash.com
GitHub Project - https://github.com/tsquillario/Jamstash
User avatar
tsquillario
 
Posts: 206
Joined: Thu Jun 30, 2011 5:10 pm
Location: State College, PA

Re: Subsonic HTML5 MiniPlayer

Postby usmcguy » Tue Apr 03, 2012 3:07 pm

tsquillario wrote:
usmcguy wrote:I don't get any errors in the Firebug Console, but in the Chrome Console I get:

Uncaught TypeError: Cannot read property 'length' of null
HexEncode:8081/MiniSub/js/app.js:1010
(anonymous function)

For somereason, after I end a session, my settings I put in the username password and server fields are lost. This almost sounds like a permissions issue, but to my knowledge the permissions are good. Where are the settings (username password, server) for MiniSub stored?

The version I'm using on the Mac is the version they have linked on the website. ( I'm using 4.6, not Beta2)

EDIT: So it appears my problem was on the settings page. I didn't notice the mouse over for the server field. I had only been putting in the IP and port of the Server. I didnt know it wanted "http://servername:port". Perhaps that should be a note and not just a mouse over field?


Are you hitting Save? It doesn't look like it's reading the username/password. All settings are saved in cookies.


This particular issue was my fault.
usmcguy
 
Posts: 4
Joined: Sun Apr 01, 2012 3:40 pm

Re: Subsonic HTML5 MiniPlayer

Postby gigon » Sun Apr 08, 2012 7:16 pm

Thank you for this great interface, it works fine on my PC (Win7/Opera) and on my iPad, too.

I have included it into my Subsonic Package for Synology NAS systems at http://eg-blog.de .
Subsonic Package for Synology DiskStations http://eg-blog.de
gigon
 
Posts: 46
Joined: Thu Dec 01, 2011 12:52 am

Re: Subsonic HTML5 MiniPlayer

Postby NTolerance » Mon Apr 09, 2012 8:37 pm

Thanks for your efforts on this!

I'm running the version 1.9.7 Chrome app on Linux and I'm still getting the audio stuttering/skipping. The issue is intermittent. Some tracks seem to play OK, but others skip constantly, all the way through. Playback works great on Firefox 11.
NTolerance
 
Posts: 33
Joined: Mon Aug 22, 2011 5:13 pm

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Mon Apr 09, 2012 8:46 pm

NTolerance wrote:Thanks for your efforts on this!

I'm running the version 1.9.7 Chrome app on Linux and I'm still getting the audio stuttering/skipping. The issue is intermittent. Some tracks seem to play OK, but others skip constantly, all the way through. Playback works great on Firefox 11.


As much as I love Chrome their HTML5 audio stack is garbage at the moment.
Jamstash Developer
Chrome App - https://chrome.google.com/webstore/detail/jccdpflnecheidefpofmlblgebobbloc
Beta Site - http://beta.jamstash.com
GitHub Project - https://github.com/tsquillario/Jamstash
User avatar
tsquillario
 
Posts: 206
Joined: Thu Jun 30, 2011 5:10 pm
Location: State College, PA

Re: Subsonic HTML5 MiniPlayer

Postby NTolerance » Tue Apr 10, 2012 4:34 pm

tsquillario wrote:
NTolerance wrote:Thanks for your efforts on this!

I'm running the version 1.9.7 Chrome app on Linux and I'm still getting the audio stuttering/skipping. The issue is intermittent. Some tracks seem to play OK, but others skip constantly, all the way through. Playback works great on Firefox 11.


As much as I love Chrome their HTML5 audio stack is garbage at the moment.


Ah, very well. Switching to Firefox!

Has anyone got desktop notifications working with Firefox 11? I've got the HTML5 desktop notifications extension installed and an exception has been added for my domain, yet I get no notifications.

Edit: Desktop notifications in Firefox are working now after restarting some things.
NTolerance
 
Posts: 33
Joined: Mon Aug 22, 2011 5:13 pm

PreviousNext

Return to Jamstash (formerly MiniSub)

Who is online

Users browsing this forum: No registered users and 1 guest