Skip to main content
Participating Frequently
April 23, 2009
Question

Push live-stream of flv from one server to another

  • April 23, 2009
  • 1 reply
  • 957 views

Hi!

I'd like to push a prerecorded flv as live stream to another server, from wich clients can receive the video as live stream.

Besides some connection-code i do:

var res = "";

var playStream = res = Stream.get("myStream");

playStream.onStatus = function(pInfo) {trace("status: " + pInfo.code + " / " + pInfo.description);}

trace("res1: " + res);

res = playStream.play("monitorStream");

trace("res2: " + res);

var newStream = new NetStream(this.connections[pUrl]);

res = newStream.attach(playStream);

trace("res3: " + res);

newStream.publish(this.streamId, "live");

The debug output looks like this:

res1: [object Stream]

res3: true

res2: true

status: NetStream.Publish.Start / myStream is now published.

status: NetStream.Play.Reset / Playing and resetting monitorStream.

status: NetStream.Play.Start / Started playing monitorStream.

monitorStream.flv lies on my FMS. So from the debug-output everything looks fine. But i don´t see any video, when i play the published stream on client-side. The outgoing stream itself is correctly published. Any suggestions?

    This topic has been closed for replies.

    1 reply

    April 24, 2009

    A multi-point publishing sample installs with FMS:

    {rootinstall}\documentation\samples\livestreams

    The FMS docs reference the sample here:

    http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d56e-7ffb.html

    HTH,

    Jody

    Participating Frequently
    April 24, 2009

    Thanks for your reply, but that doesn´t solve my problem.

    I know how to publish to another server, but the difference to your example-link is, that there is no stream coming from a client. The stream i want to push has to be genereated by the pushing-server itself.