Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previewing Microphone before joining the room #516

Open
patryk-sredzinski opened this issue Nov 27, 2024 · 0 comments
Open

Previewing Microphone before joining the room #516

patryk-sredzinski opened this issue Nov 27, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request Swift

Comments

@patryk-sredzinski
Copy link
Contributor

patryk-sredzinski commented Nov 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Swift
Projects
None yet
Development

No branches or pull requests

3 participants