Multipoint streaming (+ Justin.TV)
Hello,
I am trying to get multipoint streaming set up with all of my dedicated boxes + Justin.tv. I have spend hours looking around trying to find a good way to achieve this, but to no avail.
I am very much a noob when it comes to the server side scripting. To give you an example, it took me 2 hours to find out that main.far was a zip file and that main.asc was inside of it. I have looked at all of the documentation on server to server but its just nonsense to me. Here is my snipit for the Justin.TV (I have not even tried the server to server part yet).
application.onPublish = function(client, myStream) {
trace(myStream.name + " is publishing into application " + application.name);
// This is an example of using the multi-point publish feature to republish
// streams to another application instance on the local server.
if (application.name == "efragtv/_definst_"){
trace("Republishing the stream into efragtv/anotherinstance");
nc = new NetConnection();
nc.connect( "rtmp://live.justin.tv/app" );
ns = new NetStream(nc);
// called when the server NetStream object has a status
ns.onStatus = function(info) {
trace("Stream Status: " + info.code)
if (info.code == "NetStream.Publish.Start") {
trace("The stream is now publishing");
}
}
ns.setBufferTime(2);
ns.attach(myStream);
ns.publish( "live_12345_abc123", "live" );
}
}
I dont even know where to begin when it comes to dedicated box to dedicated box, so any help you can provide would be great. I have been at this for 5 hours now so i am going to bed and start fresh in the morning. Thanks in advance for you help.
