Results 1 to 2 of 2

Thread: connect to RSTP incoming stream programmatically

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2014

    Default connect to RSTP incoming stream programmatically

    I am new to Wowza, testing the capabilities.
    I followed the instructions of the post "How to re-stream video from an IP camera (RTSP/RTP re-streaming)"
    and I will use the Microsoft Smooth Streaming or/and the ADOBE HDS.
    My question has to do with the behavior of the incoming RSTP streams.
    Can we control the already defined stream in server (or even to create it on-fly ), programmatically ?
    to start the streaming when we want and to disconnect when we don't need it any more ?
    In our system, we have few seconds(2-3) before the user actually starts the player. We need low latency <= 1 sec, during the streaming.
    We have locations with a number of cameras and we should connect them , based on the incident or by the frequency of recent history.
    So, using a web service to control the streams/channels in the server , is the best solution in terms of resources optimization.

    Last edited by stefan_ts; 10-12-2014 at 09:47 PM.

  2. #2


    Hello Stefan. Thank you for considering Wowza for your streaming needs, and welcome to the forum.

    There is nothing built in to do exactly what you are trying to achieve, but it could be done with a little custom work.

    You could start with this:
    How to monitor content folder for .sdp and .stream files to start publishing streams (ServerListenerStartupStreamsMonitor)
    And work out adding and removing .stream files as needed.

    Another option would be to utilize this HTTPProvider to start/stop the stream (Following the second example here) :
    How to parse post or get variables in an HTTPProvider

    If you find that you need additional assistance with this implementation, you can post a request to the find a consultant forum

    Kind regards,


Similar Threads

  1. advice on how to create a stream programmatically
    By tartartartartar in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 01-02-2014, 05:19 PM
  2. How to check source stream status - MediaCasterConnection.connect: Failed to connect
    By herkules in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 11-20-2013, 07:11 PM
  3. Replies: 7
    Last Post: 04-02-2013, 08:31 AM
  4. control receive stream(stream manager) programmatically?
    By sktniran in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 11-22-2011, 12:07 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