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
}
}
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 getRTCAudioSource
Actually, I want to do this
Should I try another way? Thanks!