Results 1 to 6 of 6

Thread: Is it possible to generate a .stream file using a http get request?

  1. #1
    Join Date
    Jan 2015
    Posts
    10

    Question Is it possible to generate a .stream file using a http get request?

    Is it possible to generate a .stream file using a http get request?

    for example:
    http://[wowza-ip-address]:8086/someinterface?streamname=mynewstreamfile.stream&application=live&restreamurl=rtmp://someotherserver:1935/live/_definst_/streamName
    I would like a new file called mynewstreamfile.stream to be generated under '\content' or '\content\live' having the content:
    rtmp://someotherserver:1935/live/_definst_/streamName
    thanks

  2. #2
    Join Date
    Jun 2011
    Posts
    1,037

    Default

    Hi,
    There isn't a http request that will do that, but you can simply create a .stream file in the content folder which contains the URL required.
    Then if you what to automatically start that stream after the file is created you can use this method.

    Daren

  3. #3
    Join Date
    Jan 2015
    Posts
    10

    Default

    Thanks for your reply,

    Actually, in my application the addresses (in the .stream file) are changing constantly and should be created for each user and deleted when user logs out.
    I guess I would need to create a custom httpprovider (for each wowza instance) which generates .stream files on demand.
    Is there a good tutorial for creating or extending httpprovider?

    I'm using Wowza Streaming Engine 4

    thanks!
    Amir
    Last edited by amgman; 04-27-2015 at 01:45 PM.

  4. #4
    Join Date
    Jun 2011
    Posts
    1,037

    Default

    Hi,
    There isn't a complete tutorial as such, but there are several examples here that can provide good starting points.

    Daren

  5. #5
    Join Date
    Jan 2015
    Posts
    10

    Default

    There is a way:

    examples taken from here in the Stream Management section:
    http://www.wowza.com/forums/content....owza-REST-APIs

    Get a list of stream files
    curl -X GET --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_de...ve/streamfiles

    Add a stream file
    curl -X POST --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' http://localhost:8087/v2/servers/_de...reamfiles/axis -d'
    {
    "restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles",
    "streamFiles": [
    {
    "id": "connectAppName= testlive&appInstance=_definst_&mediaCasterType=rtp",
    "href": "http://localhohst:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles/connectAppName=testlive&appInstance=_definst_&mediaCasterType=rtp"
    }
    ]
    }'


    Connect a stream file
    curl -X PUT --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/metallica/actions/connect?connectAppName=testlive&appInstance=_definst_&mediaCasterType=rtp"

    Remove a stream file
    curl -X DELETE --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_de...reamfiles/axis

  6. #6

    Default

    Thank you for sharing your findings here.

    Salvadore

Similar Threads

  1. Generate unique url for each request
    By gopy29 in forum General Forum
    Replies: 1
    Last Post: 03-06-2015, 03:55 AM
  2. dvr folder cannot generate manifest.txt file
    By guy1260 in forum AddOn: Wowza nDVR
    Replies: 1
    Last Post: 01-22-2013, 12:10 PM
  3. Generate HTTP Live Streaming continuously?
    By superanaxo in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 01-12-2012, 04:15 PM
  4. link to generate smil file using transcoder?
    By beyond in forum AddOn: Transcoder
    Replies: 1
    Last Post: 01-05-2012, 03:45 PM

Posting Permissions

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