Company
Date Published
Author
Liza Shulyayeva
Word count
1600
Language
English
Hacker News points
None

Summary

Daily's call object is the entry point for interacting with participants, room state, and all other aspects of your Daily-powered video or audio call. Developers may think they need multiple call objects when building features that require users to be present in multiple calls simultaneously, but this approach is actually an anti-pattern that should not be used. Instead, developers can use track subscriptions to manage media tracks and achieve their desired functionality without needing multiple call objects. Track subscriptions allow for more granular control over what participants see and hear, enabling features such as breakout rooms, broadcasting, and observing other participants in the background. However, there are special considerations that may require extra attention when using track subscriptions, including calls with large numbers of participants and sensitive security requirements. By understanding how to use track subscriptions effectively, developers can build complex and engaging features without running into issues with multiple call objects.