Store video and permit certain signed-in users to access it, but deny others
Hi!
I am developing an app. I have created sign-up and sign-in services which are working fine.
1) Where can I store some videos that can be assessed through the video control?
2) When a user signs in, I need him to be directed to a page which contains a video screen. When he clicks on the video screen, any video which he has the permission to view should start playing. How do I grant permission to certain signed-in users to view a video but not others?.
For example,
User_1 can view Video_12, but cannot view other videos.
User_2 can view Video_5, but cannot view other videos (you get the point)?
Please, give me a sense of how to approach the above 2 challenges.
Thank you.