Demo application showing selective subscription functionality with Fishjam and the Python Server SDK.
- Python 3.11+
- uv package manager
- Fishjam credentials (get them here)
Important
All commands should be run from the examples/selective_subscription directory
- Install dependencies (in the
examples/selective_subscriptiondirectory):uv sync
To run the app, first copy .env.example to .env and populate your environment variables.
Once you have populated .env, you can run the demo with
-
Run the server:
uv run ./main.py
-
Open http://localhost:8000 in your browser
You create peers using the web UI at http://localhost:8000.
- Create peers with names
- Copy peer tokens and use them with a WebRTC client (e.g., minimal-react)
- Once peers have tracks, manage subscriptions through the web interface
POST /api/peers- Create a peer with manual subscription modePOST /api/subscribe_peer- Subscribe to all tracks from a peerPOST /api/subscribe_tracks- Subscribe to specific track IDs