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: 

type of database for roku

Hi guys. Thanks for see my question and sorry for my bad english :roll:
I want to know which database types exist for roku. I need to retrieve a data that is in a mysql database.
I have read that I can use xml, I think, do not know. Humbly I welcome your comments. Thanks! :mrgreen:
0 Kudos
5 REPLIES 5
EnTerr
Roku Guru

Re: type of database for roku

Roku BRS platform has no direct support for any database. Which IMHO is for the better.

Instead, it is the server side that is expected to deal with the DBs. For example, a program ("channel") on Roku can contact your server over http and on receiving back data in XML or JSON form, it can parse them for use. (Well, for the most part: XML parser seems to have major omission; JSON is not complete either. But if you have the freedom to tweak the server response, that may suffice).
0 Kudos

Re: type of database for roku

"EnTerr" wrote:
Roku BRS platform has no direct support for any database. Which IMHO is for the better.

Instead, it is the server side that is expected to deal with the DBs. For example, a program ("channel") on Roku can contact your server over http and on receiving back data in XML or JSON form, it can parse them for use. (Well, for the most part: XML parser seems to have major omission; JSON is not complete either. But if you have the freedom to tweak the server response, that may suffice).


Aaaaah Thanks! EnTerr.
Now I'm searching the info necessary for i can retrieve the data. And sorry for the question again, but you have some material? Or some tutorial to understand more how to work with xml and roku. Please and Thank you very very much! :mrgreen:
0 Kudos
EnTerr
Roku Guru

Re: type of database for roku

"ludwig.benitez" wrote:
And sorry for the question again, but you have some material? Or some tutorial to understand more how to work with xml and roku.


Well, there is the documentation http://sdkdocs.roku.com/display/sdkdoc/roXMLElement . Also pointed to snippets in your other question
0 Kudos

Re: type of database for roku

"EnTerr" wrote:
Well, there is the documentation http://sdkdocs.roku.com/display/sdkdoc/roXMLElement . Also pointed to snippets in your other question


Thanks friend, for the help! :mrgreen:
0 Kudos
EnTerr
Roku Guru

Re: type of database for roku

PS. By the way, if you have the luxury of being able to choose the format of data exchange between Roku and the server, i recommend JSON over XML. JSON is simpler (everything comes in the form of nested dictionaries and arrays vs XML where you will have to do things like .getText() or elem@attr) and leaner (less network traffic). Often we developers don't have a choice of the exchange format since the back-end already exists and the server factory produces a specific kind of "sausage" (be it in XML or JSON or HTML or binary flavor) and we have to figure out how to consume it. But in another thread you mentioned having to write server side in PHP, so seems you can choose what to send.
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.