Results 1 to 2 of 2

Thread: Possible to piggyback off published stream and record it on the server side in Wowza

  1. #1
    Join Date
    Dec 2011
    Posts
    6

    Default Possible to piggyback off published stream and record it on the server side in Wowza

    We have users publishing streams from flash player to Wowza and I want to be able to record them on the server side. What I have done in the past in FMS is do something similiar to the following:

    // rough example but it should get the point across
    application.onPublish = function( client, stream )
    {
        nc = new NetConnection();
        nc.connect( "rtmp://localhost/appname", BLAH BLAH );
        ns = new NetStream( nc );
        ns.attach( stream );
        ns.publish( stream_name, "record" );
    }
    Is it possible to do something similar in Wowza? It seems like a simple concept. Before we started using this code the user on the client side was sending 2 streams, 1 to publish and 1 to record. So we changed it so the user on the client side only has to send 1 stream and we do the recording like above on the server side. Additionally, isn't there a way for the flash player code to send a live stream and have it record at the same time (save a file on the disk)?
    Last edited by joedg1; 12-15-2011 at 10:52 AM.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    There are 3 ways to record in Wowza:

    1) If you use StreamType "live-record", all live streams to an application will be recorded.

    2) LiveStreamRecord package/API
    http://www.wowza.com/forums/content....ream-on-demand

    3) Refer to VideoRecording example in the examples folder where Wowza is installed. The StreamType is "default", recording is controlled by Flash client.
    netstream.publish("myStream", "record");
    //or  
    netstream.publish("myStream", "append");
    Richard

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •