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: 
greubel
Visitor

PrefetchPoster and SetHeaders

The "roSpringboardScreen" HTTP headers are not propagated out on a PrefetchPoster( ) request.

---------- Snippet ----------
hdrs = CreateObject( "roAssociativeArray" )
hdrs.AddReplace( "Cookie", "Monster" )

sb = CreateObject( "roSpringboardScreen" )
sb.SetContent( obj )
sb.SetHeaders( hdrs )
sb.PrefetchPoster( obj.LookUp("SDPosterUrl"), obj.LookUp("HDPosterUrl") )

---------- With Prefetch ----------
1 10:01:19.367e arg[0] = GET /iTunes%20Tables/link81/cover.jpg HTTP/1.1
1 10:01:19.367e arg[1] = Connection=close
1 10:01:19.367e arg[2] = Host=192.168.1.6:8000
1 10:01:19.367e arg[3] = User-Agent=Roku/DVP-2.9 (012.09E01529A)
1 10:01:19.367e arg[4] =

---------- Without Prefetch ----------
1 10:05:07.455e arg[0] = GET /iTunes%20Tables/link81/cover.jpg HTTP/1.1
1 10:05:07.455e arg[1] = Connection=close
1 10:05:07.455e arg[2] = Cookie=Monster
1 10:05:07.455e arg[3] = Host=192.168.1.6:8000
1 10:05:07.455e arg[4] = User-Agent=Roku/DVP-2.9 (012.09E01529A)
1 10:05:07.455e arg[5] =
0 Kudos
1 REPLY 1
RokuKevin
Visitor

Re: PrefetchPoster and SetHeaders

Thanks greubel. We'll take a look at that.

--Kevin
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.