Forum Discussion

lmsilva's avatar
lmsilva
Visitor
12 years ago

specify user-agent for videoplayer requests

Dear all,

Does anybody know if it is possible to pass my own user-agent for ifVideoPlayer streaming GET requests?
In other words, I suspect the place where I'm getting my ifVideoPlayer.url stream is checking for "valid" user-agents so I want to try and change it...

Thank you,
Luis
  • renojim's avatar
    renojim
    Community Streaming Expert
    It's in the ifHttpAgent interface:
    AddHeader("user-agent","user agent string")

    -JT
  • I did find that but...how can I use it from an roVideoPlayer object?
    I understand I could do it if I were creating my own http requests but the roVideoPlayer object manages the http connections by itself, right?
    Or is there a way to bind the roVideoPlayer http connection to my own http object?

    Thank you!
    Luis
  • renojim's avatar
    renojim
    Community Streaming Expert
    The roVideoPlayer object supports the ifHttpAgent interface, so if you have
    vp = CreateObject("roVideoPlayer")
    then you can do
    vp.AddHeader("user-agent","user agent string")

    -JT
  • How can I find out what other interfaces objects have access to??
    Is there some place on the documentation where this is explained? I had never seen it?