Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.35 KB

File metadata and controls

43 lines (28 loc) · 1.35 KB

Selective Subscription Demo

Demo application showing selective subscription functionality with Fishjam and the Python Server SDK.

Prerequisites

Important

All commands should be run from the examples/selective_subscription directory

Quick Start

  1. Install dependencies (in the examples/selective_subscription directory):
    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

  1. Run the server:

    uv run ./main.py
  2. Open http://localhost:8000 in your browser

You create peers using the web UI at http://localhost:8000.

  1. Create peers with names
  2. Copy peer tokens and use them with a WebRTC client (e.g., minimal-react)
  3. Once peers have tracks, manage subscriptions through the web interface

API Endpoints

  • POST /api/peers - Create a peer with manual subscription mode
  • POST /api/subscribe_peer - Subscribe to all tracks from a peer
  • POST /api/subscribe_tracks - Subscribe to specific track IDs