This is a live stream app HTML starter project based on this tutorial. No need to save. While you develop your site, your changes will happen ✨ immediately in the preview window. On the left you'll see the files that make up your site, including HTML, JavaScript, and CSS. We also use Tailwind CSS for styling. This app is for live streamers to create his/her new stream and go live with it. You could also check the live video on the live.html page!
← README.md
: That's this file, where we tell about our website does and how we built it.
← index.html
: This is the main web page for streamer site.
← live.html
: This is the main web page for viewer site when streamer still go on live.
← style.css
: CSS files add styling. However, we also use Tailwind css on the page.
← script.js
: Interactivity of the buttons & APIs with Javascript function.
Open each file and check out the comments (in gray).
- Open studio.inlive.app on your browser and login with your google account.
- Go to the integration page.
- Create an application key. Make sure you copy the key after you create it because you won’t be able to see it again later.
On this glitch app, you will be required to input your API Key before proceeding further.
- From preparing API Key above step, paste it into the input field, then hit the
Submit
button. Notes: We're using dynamic API Key value here. - If your API Key is correct, it will show the
Create Stream
input & button field. - If you don't submit your API Key, it will show a warning text on red color. You couldn't proceed further unless you input your API Key.
- You need to create a new stream. Type your new stream name on the input field.
- Hit the
Create Stream
button. It triggerscreateStream
function which will send the input field value (number 1) to the create stream API and send a return stream id & slug that we will use for streaming. If you haven't type any name on the input field, it will randomize its own name. - Hit the
Start Stream
button. It triggersstartStream
function which initialprepareStream
,initStream
, andstartStreaming
function. Notes: It will take a while for streaming to start. It will show textStreaming started!
up the buttons if this step is completed. Notes: Using dynamic id on the API. - After step 3, it means you already go live!
- Hit the
Get Stream
button after textStreaming started!
appears. It triggersgetStream
function and return a link to view your own video live streaming (automaticly copied). - Paste the link on your browser to view (will be played by shaka player). Notes: For those who would like to use the manifest URI, it will show on the below text.
- Hit
End Stream
button. It triggersendStream
function and an alert of a textStreaming ended!
will show if successfully ended.
Want a minimal version of this project to build your own website? Check out Blank Website!
Glitch is a friendly community where millions of people come together to build web apps and websites.
- Need more help? Check out our Help Center for answers to any common questions.
- Ready to make it official? Become a paid Glitch member to boost your app with private sharing, more storage and memory, domains and more.