2021-06-27 20:44:35 +00:00
|
|
|
package c.a.r;
|
|
|
|
|
2021-06-27 20:53:42 +00:00
|
|
|
import c.a.r.k0.a;
|
|
|
|
import com.discord.rtcconnection.EncodeQuality;
|
2021-06-27 20:44:35 +00:00
|
|
|
import com.discord.rtcconnection.RtcConnection;
|
2021-06-27 20:53:42 +00:00
|
|
|
import d0.t.g0;
|
|
|
|
import d0.z.d.k;
|
2021-06-27 20:44:35 +00:00
|
|
|
import d0.z.d.m;
|
2021-06-27 20:53:42 +00:00
|
|
|
import java.util.LinkedHashMap;
|
2021-06-27 20:44:35 +00:00
|
|
|
import java.util.Map;
|
2021-06-27 20:53:42 +00:00
|
|
|
import kotlin.Pair;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
2021-06-27 20:44:35 +00:00
|
|
|
/* compiled from: RtcConnection.kt */
|
2021-06-27 20:53:42 +00:00
|
|
|
public final /* synthetic */ class z extends k implements Function1<Pair<? extends Map<String, ? extends EncodeQuality>, ? extends RtcConnection.State>, Unit> {
|
2021-06-27 20:44:35 +00:00
|
|
|
public z(RtcConnection rtcConnection) {
|
2021-06-27 20:53:42 +00:00
|
|
|
super(1, rtcConnection, RtcConnection.class, "onLocalMediaSinkWants", "onLocalMediaSinkWants(Lkotlin/Pair;)V", 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
|
|
public Unit invoke(Pair<? extends Map<String, ? extends EncodeQuality>, ? extends RtcConnection.State> pair) {
|
|
|
|
Pair<? extends Map<String, ? extends EncodeQuality>, ? extends RtcConnection.State> pair2 = pair;
|
|
|
|
m.checkNotNullParameter(pair2, "p1");
|
|
|
|
RtcConnection rtcConnection = (RtcConnection) this.receiver;
|
|
|
|
if (rtcConnection.P) {
|
|
|
|
Map map = (Map) pair2.component1();
|
|
|
|
if (m.areEqual((RtcConnection.State) pair2.component2(), RtcConnection.State.f.a)) {
|
|
|
|
rtcConnection.J.i(rtcConnection.f2074c, "local MediaSinkWants: " + map, null);
|
|
|
|
a aVar = rtcConnection.m;
|
|
|
|
if (aVar == null) {
|
|
|
|
RtcConnection.o(rtcConnection, "onLocalMediaSinkWants() socket was null.", null, null, 6);
|
|
|
|
} else {
|
|
|
|
LinkedHashMap linkedHashMap = new LinkedHashMap(g0.mapCapacity(map.size()));
|
|
|
|
for (Map.Entry entry : map.entrySet()) {
|
|
|
|
linkedHashMap.put(entry.getKey(), Integer.valueOf(((EncodeQuality) entry.getValue()).getValue()));
|
|
|
|
}
|
|
|
|
m.checkNotNullParameter(linkedHashMap, "wants");
|
|
|
|
aVar.b();
|
|
|
|
if (aVar.h >= 5) {
|
|
|
|
aVar.o(15, linkedHashMap);
|
|
|
|
}
|
|
|
|
}
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-27 20:53:42 +00:00
|
|
|
return Unit.a;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|