Skip to main content
August 19, 2009
Question

mp3 stream.play

  • August 19, 2009
  • 1 reply
  • 852 views

hi all,

I'm having trouble publishing a mp3 to a live stream using the stream class. I can get a normal stream to work but as soon as I try using a mp3 it seem stop publishing. The football stream seems to work but if i try to connect while using the mp3 i cannot connect. The only clue is in teh access.00.log which shows the mp3 connection.

access logs:

access.05.log:stream    play    2009-08-14      17:21:47        -       -       -       -       sportslive.mp3  -       0       0.000000        -  -

stream class docs:

http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000788.html

server side code is as follows:

trace("Starting...");

application.myStream = Stream.get("footballvirt");
if (application.myStream){
trace("attempting to play stream");
//application.myStream.play("football", -1,-1);
application.myStream.play("mp3:sportslive.mp3",0);
trace("completed mp3 comd");
};

var nc;
var ns;

// Called when a client connects
application.onConnect = function(client) {

        this.acceptConnection(client);

//new function for client call
        client.sendhellomsg = function( hellostr) {
        trace("msg rcved");
        return "Helloo " + hellostr + "!";
        };

};
application.onPublish = function(client, myStream) {

        trace(myStream.name + " is publishing into application " + application.name);

};

thanks

Andrew

    This topic has been closed for replies.

    1 reply

    August 19, 2009

    solved teh problem, was pointing to the wrong <VirtualDirectory> in Application.xml where the mp3 is located.