50 lines
2.3 KiB
Java
50 lines
2.3 KiB
Java
package c.a.q;
|
|
|
|
import c.a.q.n0.a;
|
|
import com.discord.rtcconnection.EncodeQuality;
|
|
import com.discord.rtcconnection.RtcConnection;
|
|
import d0.t.g0;
|
|
import d0.z.d.k;
|
|
import d0.z.d.m;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
import kotlin.Pair;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: RtcConnection.kt */
|
|
public final /* synthetic */ class a0 extends k implements Function1<Pair<? extends Map<String, ? extends EncodeQuality>, ? extends RtcConnection.State>, Unit> {
|
|
public a0(RtcConnection rtcConnection) {
|
|
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.f2201a0) {
|
|
Map map = (Map) pair2.component1();
|
|
if (m.areEqual((RtcConnection.State) pair2.component2(), RtcConnection.State.f.a)) {
|
|
rtcConnection.U.i(rtcConnection.k, "local MediaSinkWants: " + map, null);
|
|
a aVar = rtcConnection.v;
|
|
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.G.a();
|
|
if (aVar.q >= 5) {
|
|
aVar.n(15, linkedHashMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return Unit.a;
|
|
}
|
|
}
|