Support for rtmp streaming server

0
Can you please tell me how to add support for audio streaming to muscol?

It seems that JW Player supports streaming, but that muscol does not support it really yet (at least with exposed parameters).
I see that JW Player supports it by passing an additional flashvar called 'streamer' to the SWFObject.

I changed the JWPlayer helper.php file to add the streamer flash variable, as a hack to test, but it doesn't work.

Could you please provide the correct way to add this to muscol?

Thank you,
John
Responses (6)
  • Accepted Answer

    Thursday, January 28 2010, 10:39 AM - #Permalink
    0
    hmm.. this is not direclty implemented. the hack you did should work, if you did it right. I mean, my advice would have been.. "open helper.php and add the necessary code...".

    check that you paths to files on your streaming server are correct... and also check that you have permission to stream from that server..
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 28 2010, 05:43 PM - #Permalink
    0
    I managed to get streaming to work by hacking the helper.php in the jwplayer plugin. I had been modifying the identical line in the module helper.php and that hadn't worked.

    However for it to work, I have to give it the entire path and filename to the mp3 file. using muscol variables doesn't work.

    Here is the hack that works on line #104:

    s".$unique_id.".addParam('flashvars','streamer=rtmp://stream.apmmusic.com/myapm_stream_app&file=".'/audio/BR/BRU_BR_0480/BRU_BR_0480_00101.mp3'. $string_params . "&autostart=false&repeat=list');

    Here is the hack that doesn't:

    s".$unique_id.".addParam('flashvars','streamer=rtmp://stream.apmmusic.com/myapm_stream_app&file=".$playlist_url. $string_params . "&autostart=false&repeat=list');

    Thanks,
    John
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 28 2010, 05:48 PM - #Permalink
    0
    but.. the first hack only plays ONE file!! :S right? I mean, that specific file.

    the module plays a PLAYLIST. that means that is the playlist that needs to contain the right filenames.

    so.. have you tried to write "/audio/BR/BRU_BR_0480/BRU_BR_0480_00101.mp3" (well, one different for each song of course) on each filename (on the song form)?

    if you send me a link to your site I'll tell you how you can see what files is trying to play the module, so you probably will find out why it does not work right now.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 28 2010, 06:03 PM - #Permalink
    0
    I guess we have to divide this into two issues then. The 1st an individual song within the plugin and the 2nd; a playlist.

    For the single song, the url in the song config is:
    /audio/BR/BRU_BR_0480/BRU_BR_0480_00101.mp3

    But somehow the variable is not passed correctly. (only hardcoding the mp3 path works). It doesn't play but the hardcoded version does.

    Our site url is:

    http://www.website-dev.apmdev.com/
    The reply is currently minimized Show
  • Accepted Answer

    Friday, January 29 2010, 05:51 PM - #Permalink
    0
    Here's what the non-working version expands to within Mozilla View Source.
    s1264786891.addParam('flashvars','streamer=rtmp://stream.apmmusic.com/myapm_stream_app&file=%2Fcomponent%2Fmuscol%2F%3Fview%3Dalbum%26id%3D8%26format%3Dfeed%26type%3Dxspf&width=250&height=20&playlist=none&autostart=false&repeat=list');
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, January 30 2010, 06:11 PM - #Permalink
    0
    look at this:

    http://www.website-dev.apmdev.com/component/muscol/?view=album&id=8&format=feed&type=xspf

    as you can see the file that is trying to play is

    rtmp://stream.apmmusic.com/audio//audio/br/bru_br_0480/bru_br_0480_00101.mp3

    there's a double AUDIO folder, probably this is the error

    you probably added this twice, one on songs server and the other to songs path... you should erase one, and be careful also to not add too many "/" !!

    I mean, I guess the file should be

    rtmp://stream.apmmusic.com//audio/br/bru_br_0480/bru_br_0480_00101.mp3

    instead of

    rtmp://stream.apmmusic.com/audio//audio/br/bru_br_0480/bru_br_0480_00101.mp3

    ;)
    The reply is currently minimized Show
Your Reply