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

protecting piracy to view private channel

I have a membership service where members have unlimited access to videos.

We will be creating a Private Channel, which will allow members of my website to view the same content on Roku.

I need help understanding how the registration and authentication is performed. Once a user links their Roku via rendezvous, they will have access. How do we revoke access once the membership is expired?

The members table stores username/password/membership status (1=active, 0=expired).
So should we also store the Device Service Token in this table to associate the account with a Roku box?

If a member does not have roku box id store in our db, or his status is expired, an XML file with the list of videos would not be generated.

How would I notify the user on the Roku box, that his membership has expired?

I would want the steps to be like this:
1. Go to our private channel
2. If device is linked to service, go to step 4, else, go to step 3
3. Register/link device to account.
4. If member active, proceed to showing content, else display a screen that informs the membership is expired, instructing the user to go to desktop to reactivate account.

What happens if the Roku channel is left open while the membership expires? At this point, since the channel already checked for membership status once, it would still allow access to the channel, but my XML files with content and authentication tokens would return empty. How can I in some way poll for the status, upon status change , the viewer should be presented with the same dialog box in step 4.

Finally, it would be very useful to have a complete example in the SDK that mimincs Hulu Plus or Netflix's channels to see how they perform these authentication steps.
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.