Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Keepingshtum
Channel Surfer

Passing authentication parameters for feed videos

So this is probably a noob question, but how does one pass authentication parameters when fetching video content?

I'm currently using the SGDEX views to lay out a basic channel and using the sample videos Roku has provided e.g http://roku.content.video.llnw.net/...mp4

I've got a seedbox where I'm hosting the feed itself and the videos. To fetch the feed, I use request.AddHeader to pass authentication to the seedbox. I was wondering how to do that for each individual video- or whether this is the best approach. 

Also, is there a way to authenticate once and then fetch videos until a user logs off the channel? 
I read through https://developer.roku.com/en-ot/docs/references/brightscript/interfaces/ifhttpagent.md
But it leads me to believe that even if I create a cert on the seedbox, it won't run while the channel is sideloaded ( i.e no way to know if it's actually working before publishing)

Any pointers and tips would be most appreciated!

0 Kudos
2 REPLIES 2
Keepingshtum
Channel Surfer

Re: Passing authentication parameters for feed videos

So I'm still stuck on this , but I did find something about HttpHeaders. I'm trying to do something like this now:


.

.

.

m.video = CreateObject("roSGNode", "MediaView")
httpAgent = CreateObject("roHttpAgent")
m.video.HttpHeaders = "Authorization:My authorization"
m.video.setHttpAgent(httpAgent)
(I'm using SGDEX, hence the MediaView)
.
.
.
m.video.content = m.details.content
m.video.jumpToItem = m.details.itemFocused

but this seems to have no effect. Maybe I'm just adding it to the wrong attribute, maybe it's not applicable for SGDEX. Any hints or nudges welcome as usual!
0 Kudos
joetesta
Roku Guru

Re: Passing authentication parameters for feed videos

Are you seeing anything in debug while trying this? 
I'm not familiar with SGDEX but as far as secure video, have a look at this section about "Data bindings"


https://developer.roku.com/en-ot/docs/references/scenegraph/media-playback-nodes/video.md#data-bindi...

aspiring
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.