Home / Companies / Daily / Blog / Post Details
Content Deep Dive

Adding screen sharing support to our spatialization demo (Part 6)

Blog post from Daily

Post Details
Company
Date Published
Author
Liza Shulyayeva
Word Count
3,202
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

This is an overview of how to add a new screen sharing feature to a spatialization demo using Daily's real-time video and audio APIs. The feature allows users to share their screen with others in the same room, either globally or within focus zones. To implement this feature, you'll need to check if the user's browser supports screen sharing, enable it in the Daily room configuration, and manually retrieve the screen video stream using `MediaDevices.getDisplayMedia()`. You'll also need to create a button to toggle screen sharing on and off, as well as handle cases where the user is leaving or joining a call. The feature uses a Room class to manage state changes and a World instance to update participant tracks, including screen shares. To display the screen share, you can reuse existing camera tile logic by introducing an enum called `zonemateTileKind` and using it to call a common function `showZonemate()`.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 1,262 387 113 +28%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.