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

**URL:** https://community.wowza.com/t/publishing-stream-using-live-record-append/34739
**Category:** Wowza Streaming Engine
**Created:** [May 7, 2010, 12:04pm UTC](https://community.wowza.com/t/publishing-stream-using-live-record-append/34739 "2010-05-07T12:04:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![costin\_tuculescu](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@costin\_tuculescu](https://community.wowza.com/u/costin_tuculescu)
#### Post date: [May 7, 2010, 12:04pm UTC](https://community.wowza.com/t/publishing-stream-using-live-record-append/34739/1 "2010-05-07T12:04:51Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 7, 2010, 8:15pm UTC](https://community.wowza.com/t/publishing-stream-using-live-record-append/34739/2 "2010-05-07T20:15:35Z")

</div>

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:

```auto
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:

```auto
netstream.publish("myStream","append");

```

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 7, 2010, 8:41pm UTC](https://community.wowza.com/t/publishing-stream-using-live-record-append/34739/3 "2010-05-07T20:41:06Z")

</div>

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

Richard

---

<div class="post-metadata">

### Author: ![costin\_tuculescu](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@costin\_tuculescu](https://community.wowza.com/u/costin_tuculescu)
#### Post date: [May 7, 2010, 12:22pm UTC](https://community.wowza.com/t/publishing-stream-using-live-record-append/34739/4 "2010-05-07T12:22:55Z")

</div>

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?
