2021-07-13 20:23:20 +00:00
|
|
|
package c.a.r.m0.c;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
|
|
|
import com.discord.rtcconnection.mediaengine.MediaEngineConnection;
|
|
|
|
import d0.g0.s;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
|
|
|
import java.util.Objects;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: MediaEngineConnectionLegacy.kt */
|
2021-07-13 20:23:20 +00:00
|
|
|
public final class h extends o implements Function1<MediaEngineConnection.d, Unit> {
|
2021-06-27 20:44:35 +00:00
|
|
|
public final /* synthetic */ String $streamId;
|
|
|
|
public final /* synthetic */ long $userId;
|
|
|
|
public final /* synthetic */ int $videoSsrc;
|
|
|
|
public final /* synthetic */ e this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public h(e eVar, long j, String str, int i) {
|
|
|
|
super(1);
|
|
|
|
this.this$0 = eVar;
|
|
|
|
this.$userId = j;
|
|
|
|
this.$streamId = str;
|
|
|
|
this.$videoSsrc = i;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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
|
2021-07-13 20:23:20 +00:00
|
|
|
public Unit invoke(MediaEngineConnection.d dVar) {
|
|
|
|
MediaEngineConnection.d dVar2 = dVar;
|
|
|
|
m.checkNotNullParameter(dVar2, "it");
|
2021-06-27 20:44:35 +00:00
|
|
|
long j = this.$userId;
|
|
|
|
String str = this.$streamId;
|
|
|
|
Integer intOrNull = str != null ? s.toIntOrNull(str) : null;
|
|
|
|
Integer num = this.this$0.e.get(Long.valueOf(this.$userId));
|
|
|
|
int intValue = num != null ? num.intValue() : 0;
|
|
|
|
int i = this.$videoSsrc;
|
|
|
|
Objects.requireNonNull(this.this$0);
|
2021-07-13 20:23:20 +00:00
|
|
|
dVar2.onVideo(j, intOrNull, intValue, i, i > 0 ? i + 1 : 0);
|
2021-06-27 20:44:35 +00:00
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
}
|