mediasoup-ios-client icon indicating copy to clipboard operation
mediasoup-ios-client copied to clipboard

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

Open motodimago opened this issue 2 years ago • 2 comments

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!

motodimago avatar Aug 04 '21 05:08 motodimago

Hello,

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

Thanks for the lib btw, great work!!!

Stas

sjidkov avatar Sep 02 '21 17:09 sjidkov

I have the same issue. Can someone help me?

bhchae76 avatar Apr 12 '22 04:04 bhchae76