Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
alx
Level 7

Http Headers

I am trying to send authentication headers but i'm stuck.

Can some one shed some light on how to do this?

Thanks
0 Kudos
4 Replies
EnTerr
Level 8

Re: Http Headers

You talking about ifUrlTransfer.SetUserAndPassword() or what? Be specific, show code/details.
0 Kudos
alx
Level 7

Re: Http Headers

No, I'm referring how to add headers to the video player url.
0 Kudos
Roku Employee
Roku Employee

Re: Http Headers

"alx" wrote:
No, I'm referring how to add headers to the video player url.


Are you possibly looking to add custom HTTP headers, as you can do using ifHttpAgent AddHeader / SetHeaders?
https://sdkdocs.roku.com/display/sdkdoc/ifHttpAgent#ifHttpAgent-AddHeader(nameasString,valueasString...

This API is available for roVideoScreen, roVideoPlayer, etc.
0 Kudos
alx
Level 7

Re: Http Headers

Yes!

That is what I was looking for.

Thanks!
0 Kudos