'How can I Restrict Users on OTT Platform (Like 3 Stream/Account) [Device Limitation]

I'm working on a OTT Platform For API using Django Rest Framework & for Website React & for App React Native.

I'm trying to add Device limitation on account like 3 user can watch at a same time per account. How can I do it?



Solution 1:[1]

There is two options for that 1. Websocket and another one is firebase.

Solution 2:[2]

You can create a model Device linked to your User in which you will save the different devices a user is using. And then you'll add a clean method to prevent from creating more than three devices.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sanjay Sikdar
Solution 2 Benbb96