Results 1 to 2 of 2

Thread: alias map :: parse substring of string.name.part2

  1. #1
    Join Date
    May 2013
    Posts
    1

    Question alias map :: parse substring of stream.name.part2

    Hey Folks,

    I am attempting to create an alias map to my origin servers from edge. The edge servers run from a single application, however the origin have separate applications per stream.

    Edge streams:
    rtmp://my.edge.server/MYAPP/test1.stream
    rtmp://my.edge.server/MYAPP/test2.stream
    rtmp://my.edge.server/MYAPP/test3.stream

    Assuming possible ${Stream.Name.Part2} values are:
    "test1.stream"
    "test2.stream"
    "test3.stream"

    I need to parse "test1", "test2" and "test3" from these names (dropping the ".stream" part), such that the origin streams would be:

    rtmp://my.origin.server/test1/test1.stream
    rtmp://my.origin.server/test2/test2.stream
    rtmp://my.origin.server/test3/test3.stream

    Something like the following:

    *=rtmp://my.origin.server/${Stream.Name.Part2(minus .stream)}/${Stream.Name.Part2}

    Cheers,

    Al.
    Last edited by paradoxni; 05-16-2013 at 06:59 AM.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Are you able to get what you need from the variables documented in the StreamNameAlias addon? If you cannot get what you need you can use the IMediaStreamNameAliasProvider2 api:

    http://www.wowza.com/forums/content....der2-interface

    Richard

Similar Threads

  1. Understand expandEnvironmentVariables(String, java.util.Map)
    By spiritsoul in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 08-14-2013, 05:43 PM
  2. How to parse whole url string that came to wowza
    By xzerth in forum Server-side Modules and Code Samples Discussion
    Replies: 4
    Last Post: 08-21-2012, 05:18 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
  •