Can't play a stream from remote server
when I user AMS/FMS server-side api "Stream".The documentation says that "Stream" can pull a stream from a remote server.But can not pull a stream from any remote server.Access to the local stream nothing.why?
Code:
var nc;
var myStream;
application.onAppStart = function(){
nc = new NetConnection();
myStream = Stream.get("localstream");
myStream.onStatus= function(info){
trace(info.code);
}
nc.onStatus = function(info){
trace (info.code);
if(info.code == "NetConnection.Connect.Success" ){
myStream.play("hks", -1, -1, true, nc);
}
}
nc.connect("rtmp://live.hkstv.hk.lxdns.com/live");
}
