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
**`LiveKitBridge`** -- The main entry point. Owns the full room lifecycle: SDK initialization, room connection, track publishing, and frame callback management.
98
98
99
-
**`BridgeAudioTrack` / `BridgeVideoTrack`** -- RAII handles for published local tracks. Created via `createAudioTrack()` / `createVideoTrack()`. When the `shared_ptr` is dropped, the track is automatically unpublished and all underlying SDK resources are freed. Call `pushFrame()` to send audio/video data to remote participants.
99
+
**`BridgeAudioTrack` / `BridgeVideoTrack`** -- RAII handles for published local tracks. Created via `publishAudioTrack()` / `publishVideoTrack()`. When the `shared_ptr` is dropped, the track is automatically unpublished and all underlying SDK resources are freed. Call `pushFrame()` to send audio/video data to remote participants.
100
100
101
101
**`BridgeRoomDelegate`** -- Internal (not part of the public API; lives in `src/`). Listens for `onTrackSubscribed` / `onTrackUnsubscribed` events from the LiveKit SDK and wires up reader threads automatically.
|`connect(url, token, options)`| Connect to a LiveKit room. Initializes the SDK, creates a Room, and connects with auto-subscribe enabled. |
147
147
|`disconnect()`| Disconnect and release all resources. Joins all reader threads. Safe to call multiple times. |
148
148
|`isConnected()`| Returns whether the bridge is currently connected. |
149
-
|`createAudioTrack(name, sample_rate, num_channels, source)`| Create and publish a local audio track with the given `TrackSource` (e.g. `SOURCE_MICROPHONE`, `SOURCE_SCREENSHARE_AUDIO`). Returns an RAII `shared_ptr<BridgeAudioTrack>`. |
150
-
|`createVideoTrack(name, width, height, source)`| Create and publish a local video track with the given `TrackSource` (e.g. `SOURCE_CAMERA`, `SOURCE_SCREENSHARE`). Returns an RAII `shared_ptr<BridgeVideoTrack>`. |
149
+
|`publishAudioTrack(name, sample_rate, num_channels, source)`| Create and publish a local audio track with the given `TrackSource` (e.g. `SOURCE_MICROPHONE`, `SOURCE_SCREENSHARE_AUDIO`). Returns an RAII `shared_ptr<BridgeAudioTrack>`. |
150
+
|`publishVideoTrack(name, width, height, source)`| Create and publish a local video track with the given `TrackSource` (e.g. `SOURCE_CAMERA`, `SOURCE_SCREENSHARE`). Returns an RAII `shared_ptr<BridgeVideoTrack>`. |
151
151
|`setOnAudioFrameCallback(identity, source, callback)`| Register a callback for audio frames from a specific remote participant + track source. |
152
152
|`setOnVideoFrameCallback(identity, source, callback)`| Register a callback for video frames from a specific remote participant + track source. |
153
153
|`clearOnAudioFrameCallback(identity, source)`| Clear the audio callback for a specific remote participant + track source. Stops and joins the reader thread if active. |
0 commit comments