forked from 8xFF/atm0s-media-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: auto or manual peer info subscribe (8xFF#135)
This PR introduces a room scope mode for each endpoint. There are two modes: - Auto: All peer and track events will be fired to the endpoint. - Manual: Only subscribed peers will trigger events at the endpoint. This feature is particularly useful for creating an online event platform like Gather.town. We're only interested in certain users nearby. When a user is close, we'll call room.subscribe(peer_id), and when they're far away, we'll call room.unsubscribe(peer_id).
- Loading branch information
Showing
4 changed files
with
163 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.