Results 1 to 4 of 4

Thread: publishing stream using "live", "record", "append"

Hybrid View

  1. #1
    Join Date
    May 2010
    Posts
    2

    Smile publishing stream using "live", "record", "append"

    Hi there,

    We currently have an FMS and Red5 app that uses the client-side netstream.publish command to tell the server if we want to record the stream or not. We just recently started playing around with Wowza, and it seems that Wowza doesn't listen to the "howToPublish" parameter, but it depends on the "StreamType" setting in the Application.xml file to determine whether or not to record the stream.

    Is it possible to have Wowza record the stream based on the "howToPublish" parameter, so that a stream is recorded based on the client-side app logic?

    Thank you,
    -Costin

  2. #2
    Join Date
    Dec 2007
    Posts
    25,880

    Default

    The "howToPublish" parameter of NetStream.publish command does not work.

    But you can do it client-side by changing the StreamType from the client like this:

    Code:
    netconnection.call("setStreamType",null, "record"); // or "live-record"
    // then create new NetStream object with the NetConnection object
    var netstream:NetStream = new NetStream(netconnection);
    netstream.publish("myStream");
    "append" does have meaning however. If you do not use the "append" flag, subsequent publish commands with the same stream name will cause earlier versions to be versioned:

    myStream.flv will be the most recent.
    myStream_0.flv will be the previous recording.
    myStream_1.flv etc.

    If you do it like this myStream.flv will be appended instead:
    Code:
    netstream.publish("myStream","append");

    Richard

  3. #3
    Join Date
    May 2010
    Posts
    2

    Default

    Thank you for the quick reply Richard. Unfortunately, our publisher is a home grown application, where its not so easy to add that type of code to it. Granted, for Flash Apps this would be a piece of cake, but it may also break compatibility with FMS or Red5.

    Just curious, why was this implemented this way? Any plans to make it more compatible with FMS/Red5?

  4. #4
    Join Date
    Dec 2007
    Posts
    25,880

    Default

    It's a different approach. It allows for specialized streaming. There is no plan to change it that I know of.

    Richard

Tags for this Thread

Posting Permissions

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