You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Demo application showing selective subscription functionality with [Fishjam](https://fishjam.io) and the Python Server SDK.
4
+
5
+
## Prerequisites
6
+
7
+
- Python 3.11+
8
+
-[uv](https://docs.astral.sh/uv/) package manager
9
+
- Fishjam credentials ([get them here](https://fishjam.io/app))
10
+
11
+
## Quick Start
12
+
13
+
1. Install dependencies(in project root):
14
+
```bash
15
+
uv sync
16
+
```
17
+
18
+
2. Run the server:
19
+
```bash
20
+
FISHJAM_ID=<your-id> \
21
+
FISHJAM_MANAGEMENT_TOKEN=<your-token> \
22
+
uv run examples/selective_subscription/main.py
23
+
```
24
+
25
+
3. Open http://localhost:8000 in your browser
26
+
27
+
## Usage
28
+
29
+
1. Create peers with names
30
+
2. Copy peer tokens and use them with a WebRTC client (e.g., [minimal-react](https://github.com/fishjam-cloud/web-client-sdk/tree/main/examples/react-client/minimal-react))
31
+
3. Once peers have tracks, manage subscriptions through the web interface
32
+
33
+
### API Endpoints
34
+
35
+
-`POST /api/peers` - Create a peer with manual subscription mode
36
+
-`POST /api/subscribe_peer` - Subscribe to all tracks from a peer
37
+
-`POST /api/subscribe_tracks` - Subscribe to specific track IDs
0 commit comments