You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: