Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Starting and stoping live streams programmatically

  1. #1

    Default Starting and stoping live streams programmatically

    I need to start and stop a live stream programmatically.

    I've been told before to look into HTTPProviders for this, which appear to allow me to create an API to interact with as far as I can tell, and the authentication would work the same way that it does for the localhost:8500/streammanager interface (am I right here?).

    My question is that if the HTTPProvider allows me to create a streammanager like API, then why can't I just use the streammanger API?

    It looks like I just need to create a form post to the 'streamAction' page with the right data and that would work? assuming I get the authentication part working right.. does anyone have any tips on how to do this authentication too, if it is possible?

    Thanks,

  2. #2
    Join Date
    Dec 2007
    Posts
    28,412

    Default

    If you are stopping and starting MediaCaster streams, e.g. IP camera or mpeg-ts stream, then you can use StreamManager.

    If you are talking about stopping and starting RTMP or RTP push encoder, a software or hardware encoder that is pushing a stream to Wowza, StreamManager or HTTPProvider won't work.

    Richard

  3. #3

    Default

    Quote Originally Posted by rrlanham View Post
    If you are stopping and starting MediaCaster streams, e.g. IP camera or mpeg-ts stream, then you can use StreamManager.
    This one, IP camera.

    How can I use the streammanager? is it possible to make a http request to get these start/stop actions done?

  4. #4

    Default

    Is it possible to execute actions on the streammanager via command line? http request (appears so)? or programmatically via Java class living in the same Java environment or something?

  5. #5
    Join Date
    May 2011
    Posts
    495

    Default

    You can use HTTP requests and send those requests to the Stream Manager or use the MediaCaster API directly to stop/start streams.

    -Lisa

  6. #6

    Default

    Since we want to be able to scale (ie: introduce as many wowza servers as we want), I'm thinking http requests would be a better method. This does look possible, if I read the html source code for the stream manager, but is there not any documentation for this?

  7. #7
    Join Date
    Dec 2007
    Posts
    28,412

    Default

    The MediaCaster API which StreamManager uses is very simple really:

    http://www.wowza.com/forums/content....-stop-a-stream

    Richard

  8. #8
    Join Date
    Dec 2007
    Posts
    28,412

    Default

    Also, before StreamManager was built-in to Wowza 2 it was an Addon that included source code, which will work in Wowza 3:

    http://www.wowza.com/forums/showthre...-and-SHOUTcast

    Richard

  9. #9

    Default

    "Is it possible to execute actions on the streammanager via command line?"

    See here: Sample Java class for creating a command line interface to control Wowza Media Server

  10. #10

    Default

    Quote Originally Posted by rrlanham View Post
    The MediaCaster API which StreamManager uses is very simple really:

    http://www.wowza.com/forums/content....-stop-a-stream

    Richard
    I don't understand how this is useful to me.. I have one server, server A, running anything on it let's say it's NodeJS, and I have another server, server B, running Wowza, and I want server A to tell server B to start a live stream... so I want to do a http request to the stream manager to start the stream..

    So, how is Java code examples supposed to help me?

    Where is the documentation for the stream manager? or is there none? and if there is none, then why is there none? Is starting IP cameras on cell phone networks, which requires ondemand streaming, not a common enough use case?


    Please don't point me to another Java code example..

Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 12-04-2012, 08:49 AM
  2. Replies: 3
    Last Post: 11-08-2012, 09:53 AM
  3. Automatically starting live streams
    By mahmut.makal in forum Tutorials Discussion
    Replies: 2
    Last Post: 07-23-2012, 01:00 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
  •