[mod_proxy] Playlist not downloaded when clicking play

Need help? Post your questions here.

Moderator: moderators

[mod_proxy] Playlist not downloaded when clicking play

Postby false87 » Sat Jun 19, 2010 9:06 pm

New to the forum and software (which rocks by the way 8) ), not new to *nix.

Let me first say that I've been playing with Subsonic for about 3 days now and I really like it. Installation and configuration was a breeze, and the users are very happy (it feels simple (it's not) and efficient).

But I have one problem which I can't seem to resolve:

I've configured Apache to act as a proxy for Subsonic.
Relevant part of httpd.conf and subsonic.sh:

httpd.conf
Code: Select all
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>
ProxyPass /subsonic http://localhost:7070/subsonic
ProxyPassReverse /subsonic http://localhost:7070/subsonic

# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
ProxyVia On


subsonic.sh:
Code: Select all
SUBSONIC_CONTEXT_PATH=/subsonic


When accessing Subsonic via local address (http://server:7070/subsonic) everything is working like it's supposed to. The configured players (one via flash and one external with playlist) work perfectly. However when I access Subsonic through the proxified link (http://server/subsonic) the flashplayer (embedded) works as expected, but the external one doesn't. The playlist.m3u file is never downloaded, there is no response from the page at all (except the button clicked animation of the play button off course), all the other functions are working correctly. The playlist is correctly generated and is displayed at the bottom of the page. It doesn't matter what I try to play; something that needs/doesn't need transcoding.

Seems the proxy is messing with the scripts on the page, but I can't seem to figure out why or how.

Any ideas?

Software:
OS: ClearOS 5.1 (CentOS 5)
Apache 2.2.3
false87
 
Posts: 3
Joined: Sat Jun 19, 2010 8:15 pm

Postby false87 » Mon Jun 21, 2010 2:10 pm

From address http://server/subsonic, this is the output form firebug when clicking play:
Code: Select all
throw 'allowScriptTagRemoting is false.';
//#DWR-INSERT
//#DWR-REPLY
var s0=[];var s1={};s0[0]=s1;
s1.album="";s1.albumUrl="http://gateway/subsonic/main.view?pathUtf8Hex=2f6d656469612f766964656f732f747673";s1.artist="";s1.bitRate=null;s1.contentType="video/avi";s1.duration=null;s1.durationAsString=null;s1.fileSize="2.19 GB";s1.format="avi";s1.genre=null;s1.streamUrl="http://gateway/subsonic/stream?player=1&pathUtf8Hex=2f6d656469612f766964656f732f7476732f4a6f756e657945646765556e6976657273652e6d6b76";s1.title="JouneyEdgeUniverse";s1.trackNumber=null;s1.year=null;
dwr.engine._remoteHandleCallback('28','0',{entries:s0,gain:0.85,index:0,repeatEnabled:false,sendM3U:false,stopEnabled:false});


The streamurl is not correct mod_proxy should modify it but it doesn't?
Also it states sendM3U is false, but it should be true like here:

From address http://server:7070/subsonic:

Code: Select all
throw 'allowScriptTagRemoting is false.';
//#DWR-INSERT
//#DWR-REPLY
var s0=[];var s1={};s0[0]=s1;
s1.album="";s1.albumUrl="http://gateway:7070/subsonic/main.view?pathUtf8Hex=2f6d656469612f766964656f732f747673";s1.artist="";s1.bitRate=null;s1.contentType="video/avi";s1.duration=null;s1.durationAsString=null;s1.fileSize="2.19 GB";s1.format="avi";s1.genre=null;s1.streamUrl="http://gateway:7070/subsonic/stream?player=1&pathUtf8Hex=2f6d656469612f766964656f732f7476732f4a6f756e657945646765556e6976657273652e6d6b76";s1.title="JouneyEdgeUniverse";s1.trackNumber=null;s1.year=null;
dwr.engine._remoteHandleCallback('4','0',{entries:s0,gain:0.85,index:0,repeatEnabled:false,sendM3U:true,stopEnabled:false});


The play command does reach subsonic by the way, it started transcoding when I click play, the m3u is never send.
My best guess is that mod_proxy is not touching the urls inside the script.

!!!!!!!EDIT!!!!!!!!
The issue resolved itself after complete reinstall of subsonic, also deleted everyting used and created by subsonic before reinstalling. I'll never know what is was I guess :( .
false87
 
Posts: 3
Joined: Sat Jun 19, 2010 8:15 pm

Postby mgrant » Mon Jun 21, 2010 5:32 pm

Have you checked the "control player automatically" checkbox in player settings? If not, then no playlist is offered for download and it's up to you to start the player and point it to the correct URL.

-mg
mgrant
 
Posts: 76
Joined: Mon Mar 03, 2008 1:15 am

Postby false87 » Thu Jun 24, 2010 11:49 am

mgrant wrote:Have you checked the "control player automatically" checkbox in player settings? If not, then no playlist is offered for download and it's up to you to start the player and point it to the correct URL.

-mg


Yes I did, but in both cases the settings were exactly the same, the only difference was the proxy in between.
false87
 
Posts: 3
Joined: Sat Jun 19, 2010 8:15 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 33 guests