MiniSub - Subsonic HTML5 Web App (Archive)

Jamstash is an HTML5 Mini Player for the Subsonic streaming server

Moderator: moderators

Re: Subsonic HTML5 MiniPlayer

Postby widmr » Mon Jul 09, 2012 2:33 pm

Thanks for this awesome player!

If i've understood the JS functions the right way, when doubleclick'ing on a "track li" the songs should start playing (like clicking on the play icon) shouldn't it?
This won't work in Chrome / Safari (newest version) - is there a fix? Because many users double click on a row and wonder why the song will not be played!

Would be great, if the user will be multi user functional + please fix the plaintext PW in the cookie!

Keep on this awesome work!

Greets
Andreas
widmr
 
Posts: 2
Joined: Mon Jul 09, 2012 2:04 pm

Re: Subsonic HTML5 MiniPlayer

Postby RRRob » Mon Jul 09, 2012 7:37 pm

Something broke in v2.0.2 (Chrome app) for me, connecting to Subsonic 4.7b2. The duration/random access bar in the player has stopped functioning, and the player won't automatically advance from one track to the next (manually hitting the track advance button works, though). I'm getting the following debug messages in the javascript console:

Code: Select all
TAG LIBRARY app.js:52
LOAD ARTISTS api.js:2
http://<subnet>.subsonic.org/rest/getIndexes.view?u=<username>&p=enc:<password>&v=1.6.0&c=MiniSub&f=jsonp&musicFolderId=0 api.js:14
SUCCESS api.js:26
TAG LIBRARY app.js:52
LOAD ARTISTS api.js:2
http://<subnet>.subsonic.org/rest/getIndexes.view?u=<username>&p=enc:<password>&v=1.8.0&c=MiniSub&f=jsonp&musicFolderId=0 api.js:14
SM HTML5 STATUS player.js:59
usingFlash: false player.js:61
audio/mpeg; codecs="mp3": true player.js:61
audio/mp4; codecs="mp4a.40.2": true player.js:61
m4a: true player.js:61
aac: true player.js:61
audio/ogg; codecs=vorbis: true player.js:61
audio/wav; codecs="1": true player.js:61
mp3: true player.js:61
audio/mp3: true player.js:61
mp4: true player.js:61
audio/mp4: true player.js:61
audio/m4a: true player.js:61
audio/aac: true player.js:61
ogg: true player.js:61
audio/ogg: true player.js:61
wav: true player.js:61
audio/wav: true player.js:61
canPlayType: function a(a){var b,e,f=!1;if(!d||"function"!==typeof d.canPlayType)return!1;if(a instanceof Array){for(b=0,e=a.length;b<e&&!f;b++)if(c.html5[a[b]]||d.canPlayType(a[b]).match(c.html5Test))f=!0,c.html5[a[b]]=!0,c.flash[a[b]]=!(!c.preferFlash||!u||
!a[b].match(Ua));return f}a=d&&"function"===typeof d.canPlayType?d.canPlayType(a):!1;return!(!a||!a.match(c.html5Test))} player.js:61
loaded:0 total:1 player.js:69
loaded:1 total:1 player.js:69
position:203.69300246238708 duration:undefined player.js:76
position:457.45301246643066 duration:undefined player.js:76
position:707.97199010849 duration:undefined player.js:76
position:954.4919729232788 duration:undefined player.js:76
position:1208.2509994506836 duration:undefined player.js:76
position:1463.0110263824463 duration:undefined player.js:76

etc.

Using the force Flash option breaks the player for me entirely — it sits doing nothing after loading the track tag metadata.

Code: Select all
TAG LIBRARY app.js:52
LOAD ARTISTS api.js:2
http://<subnet>.subsonic.org/rest/getIndexes.view?u=<username>&p=enc:<password>&v=1.6.0&c=MiniSub&f=jsonp&musicFolderId=0 api.js:14
SUCCESS api.js:26
TAG LIBRARY app.js:52
LOAD ARTISTS api.js:2
http://<subnet>.subsonic.org/rest/getIndexes.view?u=<username>&p=enc:<password>&v=1.8.0&c=MiniSub&f=jsonp&musicFolderId=0 api.js:14
SM HTML5 STATUS player.js:59
usingFlash: true player.js:61
audio/mpeg; codecs="mp3": true player.js:61
audio/mp4; codecs="mp4a.40.2": true player.js:61
m4a: true player.js:61
aac: true player.js:61
audio/ogg; codecs=vorbis: true player.js:61
audio/wav; codecs="1": true player.js:61
mp3: true player.js:61
audio/mp3: true player.js:61
mp4: true player.js:61
audio/mp4: true player.js:61
audio/m4a: true player.js:61
audio/aac: true player.js:61
ogg: true player.js:61
audio/ogg: true player.js:61
wav: true player.js:61
audio/wav: true player.js:61
canPlayType: function a(a){var b,e,f=!1;if(!d||"function"!==typeof d.canPlayType)return!1;if(a instanceof Array){for(b=0,e=a.length;b<e&&!f;b++)if(c.html5[a[b]]||d.canPlayType(a[b]).match(c.html5Test))f=!0,c.html5[a[b]]=!0,c.flash[a[b]]=!(!c.preferFlash||!u||
!a[b].match(Ua));return f}a=d&&"function"===typeof d.canPlayType?d.canPlayType(a):!1;return!(!a||!a.match(c.html5Test))} player.js:61
soundManager.createSound(): Audio support is not available. soundmanager2-jsmin.js:76
Uncaught TypeError: Object false has no method 'play' player.js:115

I've cleared the server player list and my local browser cache for good measure, but am still seeing the problems.
User avatar
RRRob
 
Posts: 11
Joined: Mon Jun 27, 2011 6:02 pm

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Tue Jul 10, 2012 1:16 am

RRRob wrote:Something broke in v2.0.2 (Chrome app) for me, connecting to Subsonic 4.7b2. The duration/random access bar in the player has stopped functioning, and the player won't automatically advance from one track to the next (manually hitting the track advance button works, though). I'm getting the following debug messages in the javascript console:


Just tested with Subsonic 4.7beta2 on Chrome 20.0.1132.47 on my Win7 64bit machine. Not having any issues, streaming good, switches to the next track like it should....
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 widmr » Tue Jul 10, 2012 10:54 am

widmr wrote:Thanks for this awesome player!

If i've understood the JS functions the right way, when doubleclick'ing on a "track li" the songs should start playing (like clicking on the play icon) shouldn't it?
This won't work in Chrome / Safari (newest version) - is there a fix? Because many users double click on a row and wonder why the song will not be played!

Would be great, if the user will be multi user functional + please fix the plaintext PW in the cookie!

Keep on this awesome work!

Greets
Andreas


tsquillario can you reproduce the doubleclick problem?

Thanks!
widmr
 
Posts: 2
Joined: Mon Jul 09, 2012 2:04 pm

Re: Subsonic HTML5 MiniPlayer

Postby RRRob » Wed Jul 11, 2012 5:24 pm

tsquillario wrote:
RRRob wrote:Something broke in v2.0.2 (Chrome app) for me, connecting to Subsonic 4.7b2. The duration/random access bar in the player has stopped functioning, and the player won't automatically advance from one track to the next (manually hitting the track advance button works, though). I'm getting the following debug messages in the javascript console:


Just tested with Subsonic 4.7beta2 on Chrome 20.0.1132.47 on my Win7 64bit machine. Not having any issues, streaming good, switches to the next track like it should....

Tried deleting and reinstalling the Chrome app — still have the problem.

Hmm… which OS is the Subsonic server you're testing with running on? I'm working with 4.7b2 on OS X, and there are some differences between the releases for the different operating systems.
User avatar
RRRob
 
Posts: 11
Joined: Mon Jun 27, 2011 6:02 pm

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Sun Jul 15, 2012 3:37 pm

7/15/2012 - 2.0.3
Fixed double click bug
Fixed plaintext password issue
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 Der Kommissar » Sun Jul 15, 2012 8:23 pm

Hey!

Nice work with the GUI - I really like it. After some debugging I got library fetching to work nicely, but I'm having an issue though with playback on Chromium:

Code: Select all
http://my_ip:80/rest/getIndexes.view?u=admin&p=enc:6e6b6c6b736e696f65723130&v=1.7.0&c=MiniSub&f=jsonp api.js:14
Uncaught TypeError: Cannot read property 'length' of undefined player.js:16
$.ajax.success player.js:16
f.Callbacks.o jquery-1.7.2.min.js:2
f.Callbacks.p.fireWith jquery-1.7.2.min.js:2
w jquery-1.7.2.min.js:4
f.support.ajax.f.ajaxTransport.send.d jquery-1.7.2.min.js:4


While Opera seems to give more insight... :
Code: Select all
LOAD ARTISTS
http://my_ip/rest/getIndexes.view?u=admin&p=enc:6e6b6c6b736e696f65723130&v=1.7.0&c=MiniSub&f=jsonp
Uncaught exception: TypeError: Cannot convert 'data["subsonic-response"].directory.child' to object

Error thrown at line 16, column 16 in <anonymous function: success>(data) in http://my_ip/MiniSub/js/libs/player.js:
    if (data["subsonic-response"].directory.child.length > 0)
called via Function.prototype.apply() from line 2, column 29359 in <anonymous function: f.Callbacks>(b, f) in http://my_ip/MiniSub/js/plugins/jquery-1.7.2.min.js:
    if(c[m].apply(b,f)===!1&&a.stopOnFalse)
called from line 2, column 30902 in <anonymous function: fireWith>(b, c) in http://my_ip/MiniSub/js/plugins/jquery-1.7.2.min.js:
    d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c));
called from line 4, column 24458 in w(a, c, l, m) in http://my_ip/MiniSub/js/plugins/jquery-1.7.2.min.js:
    v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))
called from line 4, column 36227 in <anonymous function: d>(a, e) in http://my_ip/MiniSub/js/plugins/jquery-1.7.2.min.js:
    m&&g(j,k,m,l)


Is this a server-side problem?
Der Kommissar
 
Posts: 2
Joined: Sun Jul 15, 2012 8:09 pm

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Sun Jul 15, 2012 9:06 pm

Der Kommissar wrote:Hey!
Nice work with the GUI - I really like it. After some debugging I got library fetching to work nicely, but I'm having an issue though with playback on Chromium:


Pushed another update. Enable the Debug option in Preferences.
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 RRRob » Mon Jul 16, 2012 3:06 pm

RRRob wrote:
tsquillario wrote:
RRRob wrote:Something broke in v2.0.2 (Chrome app) for me, connecting to Subsonic 4.7b2. The duration/random access bar in the player has stopped functioning, and the player won't automatically advance from one track to the next (manually hitting the track advance button works, though). I'm getting the following debug messages in the javascript console:


Just tested with Subsonic 4.7beta2 on Chrome 20.0.1132.47 on my Win7 64bit machine. Not having any issues, streaming good, switches to the next track like it should....

Tried deleting and reinstalling the Chrome app — still have the problem.

Hmm… which OS is the Subsonic server you're testing with running on? I'm working with 4.7b2 on OS X, and there are some differences between the releases for the different operating systems.

More information; I don't see the problem when using the Chrome app with the OS X version of Chrome to access the server, just when I use the Chrome app with the Windows version of Chrome.
User avatar
RRRob
 
Posts: 11
Joined: Mon Jun 27, 2011 6:02 pm

Re: Subsonic HTML5 MiniPlayer

Postby Der Kommissar » Wed Jul 18, 2012 6:34 am

tsquillario wrote:
Der Kommissar wrote:Hey!
Nice work with the GUI - I really like it. After some debugging I got library fetching to work nicely, but I'm having an issue though with playback on Chromium:


Pushed another update. Enable the Debug option in Preferences.

That was my output in console. Although, as of now, it's magically started working all of a sudden. Nice.
Der Kommissar
 
Posts: 2
Joined: Sun Jul 15, 2012 8:09 pm

Re: Subsonic HTML5 MiniPlayer

Postby Avathar » Thu Jul 19, 2012 2:01 pm

Hi!

Nice player so far. Using the chrome app and did not encouter any issues.
A feature request, i don't know if it's possible, but is there a way to use the keyboard media keys, even if the tab/app is not focused? That would be the ultimate killer feature for me ;)
Avathar
 
Posts: 8
Joined: Sun Dec 18, 2011 11:09 am

Re: Subsonic HTML5 MiniPlayer

Postby peterrus » Wed Jul 25, 2012 11:42 am

protip ;) : You dont need to place the minisub files on a serve, as it is purely html5 + javascript you can just open the index.html file localy in your browser. I use this in combination with Fogger on ubuntu to create a nice subsonic desktop player that isn't using the resource hog called Flash.

Further: recursive playback of directorys: is this a planned feature?
peterrus
 
Posts: 2
Joined: Wed Jul 25, 2012 11:37 am

Re: Subsonic HTML5 MiniPlayer

Postby tsquillario » Wed Jul 25, 2012 1:43 pm

peterrus wrote:protip ;) : You dont need to place the minisub files on a serve, as it is purely html5 + javascript you can just open the index.html file localy in your browser. I use this in combination with Fogger on ubuntu to create a nice subsonic desktop player that isn't using the resource hog called Flash.

Further: recursive playback of directorys: is this a planned feature?


What exactly do you mean by "recursive playback of directories"? Please explain...
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 peterrus » Wed Jul 25, 2012 11:13 pm

tsquillario wrote:
peterrus wrote:protip ;) : You dont need to place the minisub files on a serve, as it is purely html5 + javascript you can just open the index.html file localy in your browser. I use this in combination with Fogger on ubuntu to create a nice subsonic desktop player that isn't using the resource hog called Flash.

Further: recursive playback of directorys: is this a planned feature?


What exactly do you mean by "recursive playback of directories"? Please explain...


Sorry wrote that in a hurry,

When I press play on a folder that contains nested subfolders of various levels it adds all song in these subdirectories as well. So I can play for example every song by an artist.
peterrus
 
Posts: 2
Joined: Wed Jul 25, 2012 11:37 am

Re: Subsonic HTML5 MiniPlayer

Postby bigfatpaulyj » Thu Aug 02, 2012 9:04 am

Hi guys, just wondering if this supports Video. I tried to play a video file but it did not work. Is there plans to add Video support in future?
If you need help i might be able to help out (i'm a developer too).
bigfatpaulyj
 
Posts: 5
Joined: Wed Jun 22, 2011 1:09 pm

PreviousNext

Return to Jamstash (formerly MiniSub)

Who is online

Users browsing this forum: No registered users and 20 guests