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 · 4 comments
Open

Previewing Microphone before joining the room #516

patryk-sredzinski opened this issue Nov 27, 2024 · 4 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

@patryk-sredzinski
Copy link
Contributor Author

Hey, I would like to search for it a bit deeper in the SDK, but I'd love to get at least some highlights where to start searching for this

@hiroshihorie
Copy link
Member

Hi, I'm already working on this.

@patryk-sredzinski
Copy link
Contributor Author

Awesome, Is there any PR or anything that you could link into this Issue so I could observe those changes. Do you have any ETA for this? Thanks @hiroshihorie

@hiroshihorie
Copy link
Member

This is the PR: webrtc-sdk/webrtc#158
I'm still working on this.

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