Skip to content

Commit

Permalink
render tracks with unknown source, as long as they are of the audio kind
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocupe committed Sep 28, 2023
1 parent ce03381 commit 2b77ee5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/react/src/components/RoomAudioRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ export interface RoomAudioRendererProps {
* @public
*/
export function RoomAudioRenderer({ volume }: RoomAudioRendererProps) {
const tracks = useTracks([Track.Source.Microphone, Track.Source.ScreenShareAudio], {
updateOnlyOn: [],
onlySubscribed: false,
}).filter((ref) => !isLocal(ref.participant));
const tracks = useTracks(
[Track.Source.Microphone, Track.Source.ScreenShareAudio, Track.Source.Unknown],
{
updateOnlyOn: [],
onlySubscribed: false,
},
).filter((ref) => !isLocal(ref.participant) && ref.publication.kind === Track.Kind.Audio);

React.useEffect(() => {
for (const track of tracks) {
Expand Down

0 comments on commit 2b77ee5

Please sign in to comment.