FMS Republishing Not Showing Stream
I'm utilizing the developer edition of FMS and am trying to republish a stream that is being broadcast with Flash Media Live Encoder (FMLE) unfortunately, I am unable to get any audio or video to display in the client application. The client app can get the stream from the published to app (e.g. CamChat) but not from the republished stream. Following is the output of the trace statements from the SSAS as well as the source for main.asc:
Error output: (to FMS Admin Console)
Rebroadcast is starting...
NetConnection> code: NetConnection.Connect.Success
Stream> code: NetStream.Publish.Start
Stream> details:
Stream> details: livestream
Stream> code: NetStream.Play.Reset
Stream> code: NetStream.Play.StreamNotFound
Stream> details: livestream
Stream> code: NetStream.Play.Stop
Stream> details: livestream
main.asc:
var localStream = "rtmp://localhost/CamChat";
application.onAppStart = function()
{
application.allowDebug = true;
trace("Rebroadcast is starting...");
}
application.onConnect = function( client )
{
this.acceptConnection( client );
trace("Connect client id: " + client.id);
client.onBWDone = function( info ) {
trace("Server onBWDone: " + info);
}
}
//---------- Rebroadcast the stream ----------//
nc = new NetConnection();
nc.connect(localStream);
nc.onStatus = function(info)
{
trace("NetConnection> code: " + info.code);
if(info.code == "NetConnection.Connect.Success")
{
rebroadcast_s = new Stream.get("livestream");
rebroadcast_s.onStatus = function(info)
{
trace("Stream> code: " + info.code);
trace("Stream> details: " + info.details);
};
rebroadcast_s.play("livestream", 0, -1, true, nc);
//rebroadcast_s.record("record");
}
};
The ultimate goal is to subscribe to stream(s) that will be coming from our Limelight FMS and record them to our local FMIS server.
