mp3 stream.play
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:
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
