Forum Academy Marketplace Showcase Pricing Features

Are these possible in Bubble - calculating number of minutes spent in video chat?

Hello Bubblers,

I am a newbie in Bubble as I became so keen to learn it and build my own app in it.

The core of my app is linking expert and user through the app via video chat on demand and letting experts charge users for time spent (mostly in minutes not hours).

I am wondering if these features (linking parties in video chat and one party charging the other by minutes) are buildable in Bubble (I assume of course it is).

Any specific tech or plug-in or API to consider to implement those features?

Looking forward to advices and resources,

Thank you all.

1 Like

Hi @yj.johnrhee ! Welcome to Bubble. You can do this with the Daily video conferencing and chat plugin in Bubble. Here’s a how-to for integrating with Daily through the plugin. There’s a data call that comes with the plugin called meeting information and duration is a field so you’ll be able to know how much time in seconds a user spends on the call and then charge accordingly with Stripe!

Happy to jam on that if you try it out and need help with setup or answer any questions you have about using the plugin! Feel free to PM me if you’d like.


Thanks a million for help. I will try and PM you if I need some help.

Hi Lola

Does daily also have a clock/count-up element to show the duration as the call progresses?

1 Like

Thanks for reaching out @phrase9 It doesn’t currently have a call duration element but it’s something that we might add in the future!

Let us know if you add it. Its vital to my app function. When added I may move over to Daily.

Hi lola, Finally I am implementing Daily to my app. The purpose of using Daily is to facilitate video calls between users (1:1). Either party can initiate a call by clicking the CONNECT button and the call begins when the other party clicks the ACCEPT button. I followed your blog tutorial for but it was for the case that a Link URL is displayed in a page. My case is to send LINK URL to the other party in a popup. Can you show me how to send this URL data to the other party? Thanks.

1 Like

I sure can! I’ll post a tutorial for that use case in this thread and tag you by end of day Monday. Have a wonderful Sunday!

Hi @yj.johnrhee

I spun up a little demo app to demonstrate the connection piece and how to put the information in a popup. You can check out the editor here, and below is a rundown of the critical parts. Feel free to let me know if you have any other questions!

Basic Structure

This demo has two main pages: an index page for generating a connection and a room page for accessing the video via a direct link.

When someone visits the index page and is not a teacher, they see a connect button. Once they click the connect button, it sends a request for a video call to the teacher, which the teacher will see once they visit the index page. When the teacher selects the accept button, it will open up a popup where both users can start a call. There is only one teacher in this demo, but happy to jam on how you would execute this with multiple teachers/students.

Setting up the “student/not teacher” role

In the demo, a student is defined as anyone who visits the index page whose user’s role isn’t a teacher. Students will see a connect button that will initiate a request to the teacher. There’s some conditional logic on the connect button to make that happen (screenshotted below).

It’s always visible to anyone who isn’t a teacher that visits the page, and it’s only visible to a teacher once they have a pending request to accept.

When the student selects connect, it starts a workflow to create a “connection request” action. A connection request is the data type I’m using to store the video chat URL and whether the request is pending (ie not yet accepted by the teacher and displays that data in the popup.

Anytime a request is pending, it triggers an alert for the teacher, and the accept button becomes visible to the teacher.

Once the teacher accepts, a popup will appear for both the teacher and the student, which will enable them to see the video chat link or enter the room directly.

Setting up the teacher role

On the teacher’s end, when they visit the index page, they will see the accept button when they have a pending video call request to accept.

When a teacher accepts the request, it kicks off a workflow to create the room with the “Daily - create room” action. Then it will make changes to the connection request. Since there is just one teacher in my example, I chose the most recently created request. The last step here is to display the data in the popup.

Triggering the popup to show

In the demo, there is a “Do when” workflow action to show the popup when its URL is not empty, which will happen after a teacher accepts a video request.

Setting up the popup

The popup’s data is set to a “connection request,” which again is the data type housing the video URL information.

The group (optional) with all my text elements and buttons is also set to the “connection request” data type with the “parent groups connection request” as the source (the parent group, in this case, is the popup).

When the button enter room is clicked, it starts a workflow to hide the popup and then join the room with the “Daily - join a room” action.

Setting up a separate room page

If you want to have a direct link to your video call, you’ll create a page called “room” and set the page’s data type to “connection request” (or whichever data type you’re using to store your video information).

I then have one action on the room page when the “page is loaded” to join that room.


OMG @lola, thank you so much for such a detailed walkthrough. As a newbie to Bubble, it’s kinda overwhelming as my data field structure and flows are a little different, I am trying hard to apply the logic to my project. I will just try first and get back to you to ask for any further help if necessary. :heart_eyes:

1 Like

Not a problem! If you direct message me a link to your editor, I’m also happy to take a look and help with your setup.

Hi @lola, did you get my DM?

1 Like

yep, I just responded.

Thou Art Great @lola :clap:

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