• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Managing Streams > Publishing Streams in Detail

5.3. Publishing Streams in Detail

The NetStream.publish( ) method can be used to publish live or recorded streams and to append data onto the end of an already recorded stream. To control how a stream is published, pass the string "live", "record", or "append" as the second parameter. For example, to append onto an already recorded stream:

out_ns = new NetStream(nc);
out_ns.publish("private/brian/greeting", "append");


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint