Custom main.asc to livepkgr stream publish HLS ,HDS issue
,i trying create server custom fms application publish stream livepkgr .
fmle -> custom fms application ->livepkgr .
i using livepkgr hls , hds service .
so using following method publish on livepkgr , simple .
application.onpublish =function(clientobj,streamobj)
{
var nc=new netconnection();
nc.connect("rtmp://ec2-54-216-5-141.eu-west-1.compute.amazonaws.com/livepkgr/");
var ns=new netstream(nc);
ns.setbuffertime(10);
ns.attach(streamobj);
var sname = string(streamobj.name);
ns.publish(sname + "?adbe-live-event=liveevent", "livepkgr");
ns.onstatus = function(info) {
trace("stream status: " + info.code)
if (info.code == "netstream.publish.start") {
trace("the stream publishing livepkgr");
}
}
}
i using amazon ec2 fms instance , cloudfoundation . in fact working , after time 3-4 min stream stopped playing on both hls , hds . rtmp stream playing ok . when publish stream direct livepkgr playing fine .
thank in advance .
More discussions in Adobe Media Server
adobe
Comments
Post a Comment