Results 1 to 9 of 9

Thread: Get full URL in iRandomAccessReader

  1. #1
    Join Date
    Oct 2011
    Posts
    9

    Default Get full URL in iRandomAccessReader

    Hi,

    I am using iRandomAccessReader for customizing the reading of content and need to be able to get the full URL as it was entered in the player. The mediaName passed in is only a segment of that full URL and cuts off any of the URL after the stream name. For example, I have a URL like rtsp://myserver.com:1935/vod/r22/abc/secure/mp4:test.mp4?a=123456789&r=test1234567 which I put into the Open URL of QuickTime Player. The mediaName in iRandomAccessReader shows as /abc/secure/test.mp4, but I need the entire URL including the part after the stream name. Any suggestions on how to retrieve that while in the iRandomAccessReader interface?

    Thanks!

  2. #2
    Join Date
    Oct 2011
    Posts
    9

    Default

    I have decided to access the data above in an onRTPSessionCreate or onHTTPSessionCreate. As a result, I need to pass a special parameter from the onRTPSessionCreate to the init on an iRandomAccessReader interface. What is the best way to accomplish that?

  3. #3
    Join Date
    Oct 2011
    Posts
    9

    Default

    Is this even possible? Just want to set a parameter in onRTSPCreateSession that can be read in the init of iRandomAccessReader. Any suggestions would be welcome because I'm stumped on the best way to achieve this or even if it is doable. Thanks in advance for any suggestions.

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

    Default

    I don't think it is all in one piece anywhere, but all the parts should be there.

    Richard

  5. #5
    Join Date
    Oct 2011
    Posts
    9

    Default

    Okay, thanks Richard, but any suggestions beyond that on where to even start? I figure it must be possible but I have found nowhere that I can set up something in an onRTSPSessionCreate that would then be accessible in the iRandomAccessReader init function. Figure there may be some way of passing parameters that I'm just missing, but perhaps not.

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

    Default

    Actually, according to better sources, there might not be a good way to do this from RTSP. There is an IMediaStream interface passed through this process, but not sure if you always get it.

    Richard

  7. #7
    Join Date
    Oct 2011
    Posts
    9

    Default

    Eh. I was afraid that may end up being the case. Thanks for checking into it for me though!!

  8. #8

    Default

    You should be able to pass variables through the IMediaStream object that is passed to the random access reader.

    Charlie

  9. #9
    Join Date
    Oct 2011
    Posts
    9

    Default

    Charlie, thanks - I'll try that.

    Another question - if I call rtpSession.rejectSession() in onRtpSessionCreate, the iRandomAccessReader still gets called - is that normal? Shouldn't it abort the session and not try to read the stream?
    Last edited by mstate1981; 11-14-2011 at 11:28 PM.

Similar Threads

  1. stream.getHTTPStreamerSession().getSessionId() null in custom IRandomAccessReader
    By SaschaA. in forum Server-side Modules and Code Samples Discussion
    Replies: 5
    Last Post: 02-03-2014, 03:48 AM
  2. IRandomAccessReader doesn't trigger
    By skorolev in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 06-14-2013, 02:33 AM
  3. iRandomAccessReader never calls read
    By mstate1981 in forum Video On Demand Streaming Discussion
    Replies: 4
    Last Post: 11-06-2011, 12:32 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
  •