Skip to content

feat: LiveKitRoom, RoomAudioRenderer, PORTING.md, fix useIsMuted dep array bug, fix AudioTrack import path#1

Draft
OrcVole wants to merge 1 commit into
stoatchat:mainfrom
OrcVole:feat/phase-1-foundation
Draft

feat: LiveKitRoom, RoomAudioRenderer, PORTING.md, fix useIsMuted dep array bug, fix AudioTrack import path#1
OrcVole wants to merge 1 commit into
stoatchat:mainfrom
OrcVole:feat/phase-1-foundation

Conversation

@OrcVole

@OrcVole OrcVole commented Mar 12, 2026

Copy link
Copy Markdown

This PR adds the missing foundation components and fixes two bugs found
while reading the existing code.

Added:

  • LiveKitRoom — root provider component, creates Room, manages
    connection lifecycle, provides RoomContext to descendants
  • RoomAudioRenderer — renders hidden audio elements for all remote
    participants, making them audible; uses existing useTracks and AudioTrack
  • PORTING.md — guide documenting the systematic React-to-Solid translation
    patterns used in this library, including known gotchas

Fixed:

  • useIsMuted — was passing a dependency array as the second argument to
    createEffect, which Solid silently ignores. Replaced with createMemo so
    the observable recreates reactively when the track reference changes.
  • AudioTrack — absolute import path from 'src/signals' replaced with
    relative from '../../signals', which broke outside the dev environment.

Happy to adjust anything based on feedback before this is merged.

…g, fix AudioTrack import, add PORTING.md

Signed-off-by: LoudLemur <LoudLemur@users.noreply.gogs.demo.cloudron.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant