0 Replies Latest reply on Aug 31, 2016 12:00 AM by liz22197191

    Can't play a stream from remote server

    liz22197191

      when I user AMS/FMS server-side api "Stream".The document 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");

      }