Forum Discussion
RokuJoel
14 years agoBinge Watcher
"bandal" wrote:
Thanks for the quick response. I have the desire and initiative, but it seems it is taking me longer to learn than I thought. With so many out there that have created the wheel over and over in various ways, I would think more would want to share the tools with friends. I will try your examples to see what I get.
I highly recommend StackOverflow and the StackExchange web network as an incredible tool for self education, and for solving problems (albeit in a rather piecemeal way) as you encounter them.
On the Brightscript side try to think out the various steps:
- > get a unique code from the server
- > check every 30 seconds or so if a user has entered that code
- > if the user has entered that code, then store the code in the Roku's permanent memory, and allow the user to proceed to view your content.
On the server side, you will want to associate the code with both the users account information, and the device's unique serial number. You will use the unique code as a "login" key for the device in the future, and the serial number will help to identify the device/user so that if the device is sold to another person, when they link that same device, you will know that you need to move the associated serial number out of the first user's record, to another user's record. You will look for that unique code (not the device's unique ID) in all http requests to your server for content, and reject any requests that don't have a code in your database.
Hope that helps a bit.
- Joel