Const
Function to update the local audio producer state.
await resumeSendTransportAudio({
parameters: {
audioProducer: producer,
localAudioProducer: localProducer,
islevel: '1',
hostLabel: 'Host',
lock_screen: false,
shared: false,
updateAudioProducer: updateProducerFunction,
updateLocalAudioProducer: updateLocalProducerFunction,
videoAlreadyOn: false,
updateUpdateMainWindow: updateWindowFunction,
prepopulateUserMedia: prepopulateFunction,
prepopulateLocalUserMedia: prepopulateLocalFunction,
},
});
Resumes the send transport for audio and updates the UI and audio producer state accordingly.
This function supports both a primary and a local audio producer, delegating the local logic to a separate function.