Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: VOD - Redirect a user from a url to a new path

  1. #1
    Join Date
    May 2012
    Posts
    20

    Default VOD - Redirect a user from a url to a new path

    I would like to take a requested URL from a client and instead show them a video that is at a different location on the server.

    How do I read the requested URL?
    How do I set the location of the file to be streamed using the WMS SDKs and modules to something else?


    I am currently using onRTPSessionCreate(RTPSession rtpSession) in a module and trying to find the url the client connected with over RTSP.

    Thank you in advance for your help.

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

    Default

    Take a look at this article:
    http://www.wowza.com/forums/content....rver-side-code

    Richard

  3. #3
    Join Date
    May 2012
    Posts
    20

    Default

    I think I may have worded my question poorly. I would like to receive a URL similar to this, rtsp://192.168.1.22:1935/vod/videoID and then take the videoID, resolve the path to the file on the server, and return the video to the client without them knowing that the url is anything different than what they entered. On a different server I was able to receive the connection URL and change where the server was looking for the file it was streaming, giving it the correct local path on the server that corresponds to the videoID and then stream that file on demand to the client.

  4. #4

    Default

    You can do that with the Stream Name Alias package.

  5. #5
    Join Date
    May 2012
    Posts
    20

    Default

    I chose to use the IMediaStreamNameAliasProvider2. Using this example I have been able to see the stream URLs that the client has sent, but I have yet to have success changing them. By the looks of the example code I should just need to return the new name. I tried to do this with my .stream files, but it is not working. How would I take a url and point it to a live video that is being sent over udp? I currently have a .stream file that contains
    udp://127.0.0.1:port
    and it works without aliasing.

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

    Default

    StreamNameAlias only concerns the stream name, not the URL.

    Richard

  7. #7
    Join Date
    May 2012
    Posts
    20

    Default

    I was reading through this forum thread and the last post points to what I need to do. I need to resolve a file location from a DB for VOD and I need to take a custom URL that is sent to a client from elsewhere and then resolve it to the correct URL for live.

    I have started with live and I would like take a url from a client and point to a video coming over a udp connection like I was able to do with the .stream file. After looking at the thread I mentioned above I am coming to the understanding that the .stream files cannot be used with IMediaStreamNameAliasProvider2. If this is the case how would I take a stream name and point it to a udp URL without using the .stream file?

    Thank you for your help so far Richard. After I have live working I will move on to VOD.

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

    Default

    You resolve the alias in one of the resolvePlayAlias methods, or resolveStreamAlias.

    You might just need the StreamNameAlias addon which includes a mapping file that is used to resolve aliases

    http://www.wowza.com/forums/content....e-alias-module

    Richard

  9. #9
    Join Date
    May 2012
    Posts
    20

    Default

    The StreamNameAlias package will not work because it requires a file and I need to resolve my VOD stream names from a DB.

    You resolve the alias in one of the resolvePlayAlias methods, or resolveStreamAlias.
    What should I be returning as a string for Live videos if not the UDP URL?

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

    Default

    Then you have to resolve the alias in one of the resolvePlayAlias methods, or resolveStreamAlias.

    Richard

Page 1 of 2 12 LastLast

Similar Threads

  1. stream not exist redirect vod
    By MARY2006 in forum Live Streaming and Encoder Discussion
    Replies: 8
    Last Post: 04-01-2014, 12:39 PM
  2. Problem with the path to vod file
    By domarack in forum Video On Demand Streaming Discussion
    Replies: 2
    Last Post: 01-18-2012, 08:02 AM
  3. Redirect unauthorized clients from LIVE to VOD
    By lokki7 in forum Server-side Modules and Code Samples Discussion
    Replies: 9
    Last Post: 11-09-2011, 07:45 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
  •