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

When I try to get RTCAudioSource, I got Thread 1: EXC_BAD_ACCESS (code=1, address=0xa61303450) #108

Open
motodimago opened this issue Aug 4, 2021 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@motodimago
Copy link

Hi! Thank you for the great library!

I'm trying to change consumer's volume.
So I wrote this code.
But I got error Thread 1: EXC_BAD_ACCESS (code=1, address=0xa61303450) to get RTCAudioSource

for consumer in self.consumers.values {
	if consumer.getKind() == "audio" {
		(consumer.getTrack() as! RTCAudioTrack).source <- I got error.
	}
}

Actually, I want to do this

let volume:Double = 5;
for consumer in self.consumers.values {
	if consumer.getKind() == "audio" {
		(consumer.getTrack() as! RTCAudioTrack).source.volume = volume
	}
}

Should I try another way?
Thanks!

@sjidkov
Copy link

sjidkov commented Sep 2, 2021

Hello,

Im having the same issue and was wondering if there was any progress on it?

Thanks for the lib btw, great work!!!

Stas

@ethand91 ethand91 added bug Something isn't working help wanted Extra attention is needed labels Nov 5, 2021
@bhchae76
Copy link

I have the same issue.
Can someone help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants