Login with single access

Hi, I’m new here, and in the bubble. I am developing a platform and I need to restrict a single user’s access to a video player. It works like this, the person buys a ticket and enters his login to see a video, but this login is only for one person at a time, if someone logs in with the same login, he would drop the first one. If anyone can help me in that regard, I am grateful

This may not be exactly what you’re looking for, but might give you some ideas:

Thinking about the problem,

  1. you could assign a key to each video, using Random (s) generator Plugin | Bubble for example, and then when a user plays the video, copy this key to the user (When User Clicks Play, Trigger Workflow → Make Changes to Thing → User’s key = Current Page/Video’s key).

  2. Then copy the user id to each Video (When User Clicks Play, Trigger Workflow → Make Changes to Thing → Video’s Current User = Current User id).

  3. You may need to then run a Worklow that runs every 5 seconds and When Current Video’s Key does not equal Current Users’ id, Stop playing/disable the video (you could issue an Alert and uncheck the “Esc to disable”)

Number 3, depending on how the user is playing the video, maybe can be accomplished through other methods.

Good luck!

You can use this action in the workflow where the user logs in :wink:Screenshot 2020-09-03 at 09.51.02

This topic was automatically closed after 70 days. New replies are no longer allowed.