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

Get the user-agent

Hey guys, I've seen it is possible to set up a specific user-agent, but I'd like to actually be able to get the default one that is being used, any idea on how to do that?
Thanks!
-Ignacio
0 Kudos
2 REPLIES 2
ignacio
Visitor

Re: Get the user-agent

Roku/DVP-5.0 (025.00E08043A)

I was able to get it by looking at the server log, It still would be nice to get it somehow on runtime in case I need to change it.
Thanks!
0 Kudos
destruk
Binge Watcher

Re: Get the user-agent

I think that user agent will change depending on the model of roku making the request. So you'll probably want to only check the first four letters or set the user agent manually in the application you are creating.
viewtopic.php?f=34&t=57084&p=390373&hilit=user.agent#p390373
0 Kudos