Code Share
Discussion List
-
Retrieving information about the latest active Daily meeting session
Quick TypeScript snippet to retrieve info about the latest active Daily meeting session for a given room name via our REST API. I'm trying out a version of this in a Netlify func to implement some admin webinar functionality, to let hosts see who is already in a webinar room before they join. // getActiveMeetingSession()…
-
Circular video tiles with an animated border for the active speaker
Threw together a small example to show how someone could implement some tile styling (making tiles circular), and consume Daily's active speaker events to create an animated border around the active speaker. The border color also serves as an indicator to whether someone has their mic on or off (yellow for mic on, black…
-
Ever wanted to save your device preferences for a Daily call?
If you’re building a custom call UI with Daily’s callObject, you can save the user’s device preference (i.e. their preferred mic, camera, and speakers) by passing the useDevicePreferenceCookies property to dailyConfig while creating the callObject, like below: const callObject = DailyIframe.createCallObject({ url:…
-
Transcript on top of Daily recordings
If you'd like to add captions to your Daily recordings, you can combine the transcription feature with the new VCS recording feature like so: callObject.on('app-message', (newText) => { if (msg.fromId === 'transcription' && msg.data.is_final) { call.updateLiveStreaming({ layout: { preset: "custom", composition_params: {…
-
Add transcripts to your recordings
Using a custom VCS layout and live transcription, you can make sure those transcripts show up on the recorded stream using this code snippet: callObject.on('app-message', (newText) => { if (msg.fromId === 'transcription' && msg.data.is_final) { call.updateRecording({ layout: { preset: "custom", composition_params: {…
-
Aura reader for two!
I made an aura reader collaborative app (you need two participants), and it uses Daily and the Daily Hooks library! Here's the source code and a link to the app: https://github.com/ablwr/aura-reader-for-two If you have ever wondered how to identify or outline faces for Daily video streams, this app does that, so you can…
-
Update your Daily Prebuilt with different themes!
Here's a snippet that lets you add a few different popular text editor themes to your Daily call, updated on click. <html> <head> <title>Custom themed video chat</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <script crossorigin src="https://unpkg.com/@daily-co/daily-js"></script> <style> body…
-
Creating Daily rooms in Go
Here is a quick snippet I threw together to create Daily rooms in Go. This inspired me to make a little library to interact with our REST API in general so there's likely more to come, but in the meantime here's some very basic room-creation logic. Let me know if you run into any problems! package daily import ( "bytes"…
Categories
Popular Tags
- daily-prebuilt 37
- weekly-update 36
- WebRTC 18
- daily-js 18
- changelog 16
- customize 11
- audio 10
- daily-react 10
- bug 10
- daily-prebuilt 10
- REST API 8
- getting-started 8
- react 7
- dashboard 7
- VCS 7
- client-side 7
- react-native 6
- safari 6
- tracks 6
- screen-sharing 6
- AI 6
- recording 6
- device-permissions 5
- chrome 5
- micAudioMode 5
Upcoming Events
-
[Technical Webinar] Build an interactive live streaming video experience
Join Daily on Wednesday, June 7 at 12pm ET / 9am PT for an exciting event about the future of interactive live video. During the event, you’ll get access to exclusive content, including: Discover what interactive live streaming is and why developers in the video space need to know about it. Understand why WebRTC is the…