steep-balloon-41261
12/15/2022, 5:36 PMmagnificent-art-43333
12/15/2022, 8:13 PMpolite-kilobyte-67570
12/15/2022, 8:28 PMsetVolume on the either the RemoteParticipant or on the RemoteAudioTrack. There’s also an open issue on enabling your usecase with ScreenShareAudio more directly via the participant here: https://github.com/livekit/client-sdk-js/issues/442
For now you’d have to call that function directly on the RemoteAudioTrack until the participant level feature for screen share audio has landed!polite-kilobyte-67570
12/15/2022, 8:32 PMkind-laptop-44287
12/15/2022, 8:34 PMpolite-kilobyte-67570
12/15/2022, 8:35 PMgainNode to control the volume!kind-laptop-44287
12/15/2022, 8:35 PMkind-laptop-44287
12/15/2022, 8:35 PMpolite-kilobyte-67570
12/15/2022, 8:36 PMTrackMuted event.polite-kilobyte-67570
12/15/2022, 8:44 PMgetUserMedia
• create a source from it with audioContext.createMediaStreamSource(myTrack)
• create a destination with audioContext.createMediaStreamDestination()
• link them up with mySource.connect(myGainNode); myGainNode.connect(myDestination)
• manually publish that track with localParticipant.publishTrack(myDestination.stream.getAudioTracks()[0])
(this is totally untested, but the basic workflow should be correct)