246 lines
6.6 KiB
Smali
246 lines
6.6 KiB
Smali
.class public Lco/discord/media_engine/VideoStreamRenderer;
|
|
.super Lorg/webrtc/SurfaceViewRenderer;
|
|
.source "VideoStreamRenderer.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lco/discord/media_engine/VideoStreamRenderer$Muxer;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final Muxer:Lco/discord/media_engine/VideoStreamRenderer$Muxer;
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static streams:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Set<",
|
|
"Lco/discord/media_engine/VideoStreamRenderer;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field public streamIdentifier:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lco/discord/media_engine/VideoStreamRenderer$Muxer;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lco/discord/media_engine/VideoStreamRenderer$Muxer;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lco/discord/media_engine/VideoStreamRenderer;->Muxer:Lco/discord/media_engine/VideoStreamRenderer$Muxer;
|
|
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
sput-object v0, Lco/discord/media_engine/VideoStreamRenderer;->streams:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0, p1}, Lorg/webrtc/SurfaceViewRenderer;-><init>(Landroid/content/Context;)V
|
|
|
|
const-string p1, ""
|
|
|
|
iput-object p1, p0, Lco/discord/media_engine/VideoStreamRenderer;->streamIdentifier:Ljava/lang/String;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "ctx"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-direct {p0, p1, p2}, Lorg/webrtc/SurfaceViewRenderer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const-string p1, ""
|
|
|
|
iput-object p1, p0, Lco/discord/media_engine/VideoStreamRenderer;->streamIdentifier:Ljava/lang/String;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "attrs"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "ctx"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final synthetic access$Muxer()Lco/discord/media_engine/VideoStreamRenderer$Muxer;
|
|
.locals 1
|
|
|
|
sget-object v0, Lco/discord/media_engine/VideoStreamRenderer;->Muxer:Lco/discord/media_engine/VideoStreamRenderer$Muxer;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getStreams$cp()Ljava/util/Map;
|
|
.locals 1
|
|
|
|
sget-object v0, Lco/discord/media_engine/VideoStreamRenderer;->streams:Ljava/util/Map;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic access$setStreams$cp(Ljava/util/Map;)V
|
|
.locals 0
|
|
|
|
sput-object p0, Lco/discord/media_engine/VideoStreamRenderer;->streams:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic attachToStream$default(Lco/discord/media_engine/VideoStreamRenderer;Lcom/hammerandchisel/libdiscord/Discord;Ljava/lang/String;Lorg/webrtc/RendererCommon$RendererEvents;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
if-nez p5, :cond_1
|
|
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2, p3}, Lco/discord/media_engine/VideoStreamRenderer;->attachToStream(Lcom/hammerandchisel/libdiscord/Discord;Ljava/lang/String;Lorg/webrtc/RendererCommon$RendererEvents;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p1, "Super calls with default arguments not supported in this target, function: attachToStream"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final attachToStream(Lcom/hammerandchisel/libdiscord/Discord;Ljava/lang/String;Lorg/webrtc/RendererCommon$RendererEvents;)V
|
|
.locals 4
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lco/discord/media_engine/VideoStreamRenderer;->streamIdentifier:Ljava/lang/String;
|
|
|
|
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_2
|
|
|
|
invoke-super {p0}, Lorg/webrtc/SurfaceViewRenderer;->clearImage()V
|
|
|
|
invoke-super {p0}, Lorg/webrtc/SurfaceViewRenderer;->release()V
|
|
|
|
sget-object v0, Lco/discord/media_engine/VideoStreamRenderer;->Muxer:Lco/discord/media_engine/VideoStreamRenderer$Muxer;
|
|
|
|
iget-object v3, p0, Lco/discord/media_engine/VideoStreamRenderer;->streamIdentifier:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, p1, p0, v3}, Lco/discord/media_engine/VideoStreamRenderer$Muxer;->removeSink(Lcom/hammerandchisel/libdiscord/Discord;Lco/discord/media_engine/VideoStreamRenderer;Ljava/lang/String;)V
|
|
|
|
:cond_2
|
|
if-eqz p2, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const-string p2, ""
|
|
|
|
:goto_1
|
|
iput-object p2, p0, Lco/discord/media_engine/VideoStreamRenderer;->streamIdentifier:Ljava/lang/String;
|
|
|
|
iget-object p2, p0, Lco/discord/media_engine/VideoStreamRenderer;->streamIdentifier:Ljava/lang/String;
|
|
|
|
invoke-interface {p2}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const/4 v1, 0x0
|
|
|
|
:goto_2
|
|
if-nez v1, :cond_5
|
|
|
|
invoke-static {}, Lco/discord/media_engine/SharedEglBaseContext;->getEglContext()Lorg/webrtc/EglBase$Context;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-super {p0, p2, p3}, Lorg/webrtc/SurfaceViewRenderer;->init(Lorg/webrtc/EglBase$Context;Lorg/webrtc/RendererCommon$RendererEvents;)V
|
|
|
|
sget-object p2, Lco/discord/media_engine/VideoStreamRenderer;->Muxer:Lco/discord/media_engine/VideoStreamRenderer$Muxer;
|
|
|
|
iget-object p3, p0, Lco/discord/media_engine/VideoStreamRenderer;->streamIdentifier:Ljava/lang/String;
|
|
|
|
invoke-virtual {p2, p1, p0, p3}, Lco/discord/media_engine/VideoStreamRenderer$Muxer;->addSink(Lcom/hammerandchisel/libdiscord/Discord;Lco/discord/media_engine/VideoStreamRenderer;Ljava/lang/String;)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|