[RELEASE] Subsonic

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
aaronb Offline
Senior Member
Posts: 202
Joined: Apr 2007
Reputation: 0
Location: Colorado
Post: #16
t0mm0 Wrote:sorry to be a pain, but can you turn on debugging in xbmc?

Of course, anything you need me to do to help debug. Not a pain at all, thanks for the time you've spent building this

http://pastebin.com/ZnfJjuuD

t0mm0 Wrote:couple more questions....
what type of file is the original you are trying to stream (mp3, aac etc.)?
do any files stream?
and have you tried 'play using' and choosing dvd player - does that work?

thanks,

t0mm0

It's an mp3

Tried "play using" and files do play correctly with dvdplayer
find quote
t0mm0 Offline
Fan
Posts: 486
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #17
aaronb Wrote:Of course, anything you need me to do to help debug. Not a pain at all, thanks for the time you've spent building this

http://pastebin.com/ZnfJjuuD

It's an mp3

hmmmm, weird. it looks like the folowing line is the culprit:
Code:
22:44:01 T:7720 M:1692831744   DEBUG: CFileCurl::GetMimeType - http://192.168.0.10:8082/rest/download.view?p=password&c=xbmc&u=aaron&f=json&v=1.5.0&id=483a5c4d757369635c41626c652042616b657220466f785c566f696365735c3031204f637​46f6265722e6d7033 -> failed

it should return "audio/mpeg" for mp3 streams.

well, i have no idea why it doesn't with your server, but as....

aaronb Wrote:Tried "play using" and files do play correctly with dvdplayer

i played around with the playercorefactory stuff and this will force xbmc to use dvdplayer (this also makes playback work whether you set transcoding on or off!)

Code:
<playercorefactory>
    <rules action="prepend">
        <rule name="subsonic" filename=".*/rest/(stream|download).view.*" player="dvdplayer"/>
    </rules>
</playercorefactory>

i you don't already have a playercorefactory.xml in your userdata directory then make a file and add the above in it.

if you already have one, just insert the line:
Code:
<rule name="subsonic" filename=".*/rest/(stream|download).view.*" player="dvdplayer"/>
directly after the <rules> tag.

see http://wiki.xbmc.org/index.php?title=HOW...a_playback for more info on playercorefactory.xml

i suppose i could try and automate this in future as there appears to be no better way to force the player at the moment.

hope that works for you!

t0mm0
(This post was last modified: 2011-04-29 23:33 by t0mm0.)
find quote
marcusjb Offline
Member
Posts: 56
Joined: Jun 2008
Reputation: 0
Post: #18
I can't explain how excited I am that someone did this. I'm getting this error:

http://pastebin.com/wiREYNb5

even when I use the demo server.
find quote
t0mm0 Offline
Fan
Posts: 486
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #19
marcusjb Wrote:I can't explain how excited I am that someone did this. I'm getting this error:

http://pastebin.com/wiREYNb5

even when I use the demo server.

that's strange - you're not trying to use the non-xbox version on an xbox are you?

it's complaining about simplejson being missing, but if you installed on a non-xbox machine using the repo then it should have automatically downloaded and installed it if you didn't already have it.

t0mm0
find quote
dictatortot Offline
Junior Member
Posts: 1
Joined: Apr 2011
Reputation: 0
Post: #20
long time lurker here - i had to register to thank you for your work on this. everything seems to be working well for me so far!
find quote
t0mm0 Offline
Fan
Posts: 486
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #21
dictatortot Wrote:long time lurker here - i had to register to thank you for your work on this. everything seems to be working well for me so far!

thanks for signing up to say thanks Wink

if you have any ideas to make it better please let me know and i'll see what i can do.

thanks,

t0mm0
find quote
marcusjb Offline
Member
Posts: 56
Joined: Jun 2008
Reputation: 0
Post: #22
t0mm0 Wrote:that's strange - you're not trying to use the non-xbox version on an xbox are you?

it's complaining about simplejson being missing, but if you installed on a non-xbox machine using the repo then it should have automatically downloaded and installed it if you didn't already have it.

t0mm0

I'm definitely not using an xbox. When I installed the repo it was weird, i went into it and nothing showed so i had to use the "refresh" option to get it to show the addons. As soon as i get home I'll remove the repo and reinstall.
find quote
marcusjb Offline
Member
Posts: 56
Joined: Jun 2008
Reputation: 0
Post: #23
So i removed, subsonic addon, removed the repository. closed xbmc, reopened, redownloaded repository, installed from zip, added subsonic (server settings were still there) and same problem.

http://pastebin.com/BNbysbsY

I'm using XBMCupdate.exe so i'm pretty current on build. Rev: 110424 on Win 7 Ultimate 32bit.

I'm also using AWX, so i don't know if that's a concern.

Is it supposed to install simplejson with the addon or with the repository?
find quote
marcusjb Offline
Member
Posts: 56
Joined: Jun 2008
Reputation: 0
Post: #24
I manually installed simplejson and its working fine now. I'll happily remove it if you'd like me to troubleshoot for you.
find quote
t0mm0 Offline
Fan
Posts: 486
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #25
marcusjb Wrote:I manually installed simplejson and its working fine now. I'll happily remove it if you'd like me to troubleshoot for you.

i just tried again with a fresh profile and today's build of the pvr branch from the ppa and simplejson was pulled in as expected so i don't think there's anything wrong with the addon.xml.

the only thing i can think of is maybe there is a problem with the build you are using?

well as long as you have it working now and nobody else is having the problem i think we'll leave it alone at the moment Wink

thanks for the offer anyway!

t0mm0
find quote
waltermmm Offline
Junior Member
Posts: 3
Joined: Apr 2011
Reputation: 0
Post: #26
Thank you very much for this nice addon. Much appreciated.

I'm a new user to XBMC. I haven't found out how to install and activate this addon.

I have downloaded the zip file from the first post, clicked in XBMC "install addon from zip file". Then I got the message that it has been sucksessfully installed, but I can't find the addon in the "enabled addon" list.


Can you please helb me?

Thanks you

Walter
find quote
t0mm0 Offline
Fan
Posts: 486
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #27
waltermmm Wrote:I have downloaded the zip file from the first post, clicked in XBMC "install addon from zip file". Then I got the message that it has been sucksessfully installed, but I can't find the addon in the "enabled addon" list.

that just installs the repository. now you have to go into 'get addons' and find the subsonic addon to install just like you would any other addon.

hope that helps,

t0mm0
find quote
marcusjb Offline
Member
Posts: 56
Joined: Jun 2008
Reputation: 0
Post: #28
Just set up my friends system to access my server at home, plays fine except playlists, i'm getting an error:

http://pastebin.com/wR2E4kwr
find quote
t0mm0 Offline
Fan
Posts: 486
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #29
marcusjb Wrote:Just set up my friends system to access my server at home, plays fine except playlists, i'm getting an error:

http://pastebin.com/wR2E4kwr

i'll take a look tonight.

can you switch on debugging in the subsonic addon settings and post it again?
find quote
aaronb Offline
Senior Member
Posts: 202
Joined: Apr 2007
Reputation: 0
Location: Colorado
Post: #30
t0mm0 Wrote:hmmmm, weird. it looks like the folowing line is the culprit:
Code:
22:44:01 T:7720 M:1692831744   DEBUG: CFileCurl::GetMimeType - http://192.168.0.10:8082/rest/download.view?p=password&c=xbmc&u=aaron&f=json&v=1.5.0&id=483a5c4d757369635c41626c652042616b657220466f785c566f696365735c3031204f637​46f6265722e6d7033 -> failed

it should return "audio/mpeg" for mp3 streams.

well, i have no idea why it doesn't with your server, but as....



i played around with the playercorefactory stuff and this will force xbmc to use dvdplayer (this also makes playback work whether you set transcoding on or off!)

Code:
<playercorefactory>
<playercorefactory>
    <rules action="prepend">
        <rule name="subsonic" filename=".*/rest/(stream|download).view.*" player="dvdplayer"/>
    </rules>

i you don't already have a playercorefactory.xml in your userdata directory then make a file and add the above in it.

if you already have one, just insert the line:
Code:
<rule name="subsonic" filename=".*/rest/(stream|download).view.*" player="dvdplayer"/>
directly after the <rules> tag.

see http://wiki.xbmc.org/index.php?title=HOW...a_playback for more info on playercorefactory.xml

i suppose i could try and automate this in future as there appears to be no better way to force the player at the moment.

hope that works for you!

t0mm0

Sorry, I was out of town for a few days. I created the playercorefactory.xml, and I'm still getting errors. Log:

http://pastebin.com/PS47BinW
find quote
Post Reply