Results 1 to 4 of 4

Thread: Programatically unpublish/stop an incoming stream

  1. #1

    Default Programatically unpublish/stop an incoming stream

    I have discovered a bug in an existing client application which I need to workaround

    To solve it, I need to programatically stop and unpublish an incoming RTSP stream on the server side.

    Given an instance of IMediaStream, which I have, how can I trigger the 'unpublish' event so that it closes down, stops recording, etc cleanly?

  2. #2
    Join Date
    Dec 2007


    All you need is the application instance and the name of the stream to use the MediaCaster api to stop a stream:


  3. #3
    Join Date
    Sep 2011


    You can add something like this:
    IMediaStream .getRTPStream().getSession().shutdown()
    Be sure to wrap this into a try/catch block to ensure that any exceptions are caught.


  4. #4


    Didn't try the first but the second option works great. thanks.

Similar Threads

  1. Automatically stop and start incoming streams
    By Simon245 in forum General Forum
    Replies: 4
    Last Post: 09-19-2014, 08:41 AM
  2. Add live stream or VOD programatically
    By dnyanesh.gate in forum Wowza Streaming Server Java API
    Replies: 1
    Last Post: 06-20-2014, 05:03 AM

Posting Permissions

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