Looping to Live Stream - onPublish?
Hello everyone,
I'm an extreme newbie, and I finally have my videos looping, but I want them to stop looping and cut to a live stream whenever we go live with our broadcast. Can someone go into detail as to the code I need to switch from the looping videos to the live stream? I'm pretty sure it's done with onPublish, but again, I'm a newbie so I need all the help I can get.
Here is my main.asc. Thanks in advance!
application.onAppStart = function(){
this.clientStream = Stream.get("clientPlayStream");
this.clientStream.play("myfile", 0, -1);
application.onStatus = function(info){
if(info.code=="NetStream.Play.Stop") {
//do some code in here to restart the stream
this.clientStream.play("myfile", 0, -1);
}
}
}
