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
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
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
Wow, that’s awesome! Thank you so much!
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?
The Component Reference lists supported interfaces for each component. http://sdkdocs.roku.com/display/sdkdoc/roVideoPlayer