Results 1 to 6 of 6

Thread: How to name a stream dinamically

  1. #1
    Join Date
    Jul 2014
    Posts
    15

    Post How to name a stream dinamically

    Hello,

    I need a help to resolve an issue here. It is as follows:

    I need to capture the request parameters coming from a flash player (url) before the creation of the stream, the Wowza is using the url sent to name the stream.

    In fact, the need is to retrieve the request string before the Wowza assign this value to the stream and to name the stream dynamically.

    I'm using jwplayer and this is how I'm accessing the wowza application.

    <div id="myElement1">Loading the player...</div>
    
    <script type="text/javascript">
        jwplayer("myElement1").setup({
            file: "rtmp://localhost/minhaapp/dvr=portaria,id=62,cam=1,tipo=PRINCIPAL",
    		height: 480,
    		width: 704,
    		image: "/assets/myVideo.jpg",
    		rtmp: {
    			bufferlength: 1.0,
    		}
        });
    </script>
    The wowza is creating the stream named "dvr=portaria,id=62,cam=1,tipo=PRINCIPAL", when in fact, these are the parameters I need to use in the application.
    I have not found a way to capture the parameters before the stream creation and name the stream with another name.

    Any tips on how to do this?

    PS. Sorry for the english! =)

  2. #2
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Hi,

    Do it like this

    file: "rtmp://localhost/minhaapp?dvr=portaria&id=62&cam=1&tipo=PRINCIPAL"
    Then follow this guide to extract and parse the querystring

    Richard

  3. #3
    Join Date
    Jul 2014
    Posts
    15

    Default

    Hi Richard,

    I did the settings as the tutorial, but I did not understand how to implement com.example.MyCustomClass class to extract the parameters.

    Do you have an example?

  4. #4
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Hi Victor,

    You need Eclipse with the Wowza IDE addon.

    And take a look at the Wowza IDE guide. This guide is a little out-dated with references to the stand-alone Wowza IDE (which is no longer available) and Wowza 3 paths, but it is still the essential guide to implementing Wowza application Modules, HTTPProviders and ServerListeners

    Richard

  5. #5
    Join Date
    Jul 2014
    Posts
    15

    Default

    Thanks Richard,

    I need just a light to find the way.

    Can I use a Wowza interface to extract the parameters? Is there one that i can use?

    Or what's event method where I can intercept the url data?

    I'm so new on Wowza. Do you have a clue?

  6. #6
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    This guide (as below) shows how to do what you want to do in an Application Module, using the Wowza API onConnect() method.

    Richard

Posting Permissions

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