Skip to content

Previewing Microphone before joining the room #516

Closed
@patryk-sredzinski

Description

@patryk-sredzinski

Is there any way that I can run the microphone track and preview it before joining to any room?
I am able to do it with camera by creating local track and starting it, but for audio track it looks like I need it to publish it first to the room which is something I don't really want.

Would be nice that when I start the microphone/audio local track it actually launches the microphone and I am able to read it's buffers.

let localAudioTrack = LocalAudioTrack.createTrack()
try await localAudioTrack.start()
AudioManager.shared.add(localAudioRenderer: self)

The code above does not render any buffers until I publish it to a room.
I can also confirm that my microphone is not enabled as I cannot see the orange dot on my iPhone

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions