How to create a live streaming app with Bubble, Daily and Mux – Part 1
Part 1 in the series on how to build a live streaming app in Bubble using the Video, Audio, and Live Bundle with Mux integration, enabling users to set up, broadcast, and view streams directly within your app.
Welcome to Part 1 of building a live-streaming app using Bubble and the Video, audio & live bundle. This guide walks you through setting up your app, installing the bundle, and configuring privacy rules to get started with live streaming.
Let’s get started! If you’re familiar with Bubble basics, jump to the plugin setup section or begin from the top.
While the guide walks you through each step, you can also explore a finished version in the sample editor. Please note that, for security, sign-ups are disabled and API keys have been removed.
Prerequisites
To get started, you’ll need:
A paid Bubble account (premium plugins can only be installed on paid plans).
Then in the Access tokens tab of your Mux settings select “Generate a new token”
Then create a new token for the purposes of this tutorial, create a development token and ensure it has Mux video permissions
Save the Access token ID and Secret key
Paste the Daily API key into the plugin’s “API key “slot with Bearer (capital B) prefixed to it
Place the Access Token ID in the “Mux Token ID” slot and the Secret Key in the “Mux Token Secret” slot
⚠️
Note: Keep your API key secure, as it grants access to your Mux and Daily accounts.
3. Set up a stream data type
The stream data type will hold information about your streams.
Open the Data tab and create a new data type called stream.
Add the following fields to Stream:
description (text)
name (text)
owner token (text)
room id (text)
room name (text)
room URL (text)
rtmp URL (text)
stream key (text)
user (User)
4. Define privacy rules
Since you’ll store sensitive streaming details, it’s important to protect this information with privacy rules.
Go to the Privacy tab and create a rule called “stream privacy.”
Set rules so that only the stream’s creator can view all fields. For other users, limit access to only the name, room url, and Slug.
Keep in mind, that anyone with access to your Bubble app’s database can view the stream key. If your app requires stricter security, consider encrypting this data to protect it further.
Wrap-Up
Nice work! 🎉 You’ve set up your Bubble app, added the Video, audio & live bundle, and configured your data structure—key steps to kick off your live-streaming app.
Lola is the founder of Lunch Pail Labs. She enjoys discussing product, SaaS integrations, and running a business. Feel free to connect with her on Twitter or LinkedIn.