Skip to main content
Participant
October 23, 2007
Question

Simulated Live with OD file

  • October 23, 2007
  • 4 replies
  • 549 views
Hi Guys and Gals,

Is it possible with FMS to simulate a live stream using an OD file. i.e. Can you start an OD file streaming at a specific point (say 10am), then when someone tries to connect to it (say 10:20am), it plays as if they missed the first 20 minutes. An ideal situation would be without using the FM Encoder and not passing in parameters to the file. tia, T
    This topic has been closed for replies.

    4 replies

    so_and_soAuthor
    Participant
    November 15, 2007
    Brilliant, after much searching, I found the right combo...

    Serverside in main.asc under app folder:


    application.onAppStart = function()
    {
    application.playStream = Stream.get("simlivestream");
    if(application.playStream)
    {
    application.playStream.play("simlive", -2); //name of flv to play
    }
    }

    On client side:

    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://flashmediaserver/appname");
    var ns:NetStream = new NetStream(nc);
    ns.play("simlivestream");
    vPlayer.attachVideo(ns);

    This was the resource: http://www.adobe.com/devnet/flashmediaserver/articles/learning_fms2_excerpt/learning_fms2_ch09.pdf

    Thanks Kevin for pointing me in the right direction!

    T
    so_and_soAuthor
    Participant
    November 14, 2007
    Awesome! Thank you :) I am trying to do this, going through the documentation, and am unable to make it happen. Do you (or anyone) know of a good tutorial on setting up the main.asc and the client to do this? Thanks again
    Participating Frequently
    November 7, 2007
    Create a server-side stream, and play() the recorded stream. The stream will play normally, even if no client is subscribed to the stream. When a client does subscribe, playback will start at whatever position the recorded stream happens to be at.

    You can actually play multiple files in sequence, so that when one recording ends the next one will begin. This is called a "server-side playlist".
    so_and_soAuthor
    Participant
    November 7, 2007
    Do I need to use the On2 SDK to accomplish this? I've noticed a company called Mogulus can do it.