729 lines
18 KiB
Smali
729 lines
18 KiB
Smali
.class public final Lcom/discord/player/AppMediaPlayer;
|
|
.super Ljava/lang/Object;
|
|
.source "AppMediaPlayer.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/player/AppMediaPlayer$Event;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lrx/subjects/PublishSubject;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/subjects/PublishSubject<",
|
|
"Lcom/discord/player/AppMediaPlayer$Event;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public b:Lrx/Subscription;
|
|
|
|
.field public final c:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
.field public final d:Lrx/subjects/BehaviorSubject;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
"Ljava/lang/Float;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final e:Le/k/a/b/v0;
|
|
|
|
.field public final f:Le/a/e/g;
|
|
|
|
.field public final g:Le/k/a/b/k1/l$a;
|
|
|
|
.field public final h:Lrx/Scheduler;
|
|
|
|
.field public final i:Lcom/discord/utilities/logging/Logger;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Le/k/a/b/v0;Le/a/e/g;Le/k/a/b/k1/l$a;Lrx/Scheduler;Lcom/discord/utilities/logging/Logger;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
iput-object p2, p0, Lcom/discord/player/AppMediaPlayer;->f:Le/a/e/g;
|
|
|
|
iput-object p3, p0, Lcom/discord/player/AppMediaPlayer;->g:Le/k/a/b/k1/l$a;
|
|
|
|
iput-object p4, p0, Lcom/discord/player/AppMediaPlayer;->h:Lrx/Scheduler;
|
|
|
|
iput-object p5, p0, Lcom/discord/player/AppMediaPlayer;->i:Lcom/discord/utilities/logging/Logger;
|
|
|
|
invoke-static {}, Lrx/subjects/PublishSubject;->o()Lrx/subjects/PublishSubject;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "PublishSubject.create<Event>()"
|
|
|
|
invoke-static {p1, p2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/player/AppMediaPlayer;->a:Lrx/subjects/PublishSubject;
|
|
|
|
new-instance p1, Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-direct {p1}, Lrx/subscriptions/CompositeSubscription;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/player/AppMediaPlayer;->c:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
iget-object p1, p0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
iget p1, p1, Le/k/a/b/v0;->B:F
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "BehaviorSubject.create<Float>(exoPlayer.volume)"
|
|
|
|
invoke-static {p1, p2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/player/AppMediaPlayer;->d:Lrx/subjects/BehaviorSubject;
|
|
|
|
iget-object p1, p0, Lcom/discord/player/AppMediaPlayer;->f:Le/a/e/g;
|
|
|
|
iget-object p1, p1, Le/a/e/g;->d:Lrx/subjects/PublishSubject;
|
|
|
|
const-string p2, "playerStateChangeSubject"
|
|
|
|
invoke-static {p1, p2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p2, Le/a/e/c;
|
|
|
|
invoke-direct {p2, p0}, Le/a/e/c;-><init>(Lcom/discord/player/AppMediaPlayer;)V
|
|
|
|
invoke-virtual {p1, p2}, Lrx/Observable;->c(Lrx/functions/Action1;)Lrx/Subscription;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Lcom/discord/player/AppMediaPlayer;->c:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-virtual {p2, p1}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/player/AppMediaPlayer;->f:Le/a/e/g;
|
|
|
|
iget-object p1, p1, Le/a/e/g;->e:Lrx/subjects/PublishSubject;
|
|
|
|
const-string p2, "isPlayingChangeSubject"
|
|
|
|
invoke-static {p1, p2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p2, Le/a/e/a;
|
|
|
|
invoke-direct {p2, p0}, Le/a/e/a;-><init>(Lcom/discord/player/AppMediaPlayer;)V
|
|
|
|
invoke-virtual {p1, p2}, Lrx/Observable;->c(Lrx/functions/Action1;)Lrx/Subscription;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Lcom/discord/player/AppMediaPlayer;->c:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-virtual {p2, p1}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/player/AppMediaPlayer;->f:Le/a/e/g;
|
|
|
|
iget-object p1, p1, Le/a/e/g;->f:Lrx/subjects/PublishSubject;
|
|
|
|
const-string p2, "playerErrorSubject"
|
|
|
|
invoke-static {p1, p2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p2, Le/a/e/b;
|
|
|
|
invoke-direct {p2, p0}, Le/a/e/b;-><init>(Lcom/discord/player/AppMediaPlayer;)V
|
|
|
|
invoke-virtual {p1, p2}, Lrx/Observable;->c(Lrx/functions/Action1;)Lrx/Subscription;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Lcom/discord/player/AppMediaPlayer;->c:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-virtual {p2, p1}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "logger"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "timerScheduler"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p1, "dataSourceFactory"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p1, "rxPlayerEventListener"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
const-string p1, "exoPlayer"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/discord/player/AppMediaPlayer;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->a:Lrx/subjects/PublishSubject;
|
|
|
|
new-instance v1, Lcom/discord/player/AppMediaPlayer$Event$c;
|
|
|
|
iget-object p0, p0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
invoke-virtual {p0}, Le/k/a/b/v0;->v()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-direct {v1, v2, v3}, Lcom/discord/player/AppMediaPlayer$Event$c;-><init>(J)V
|
|
|
|
invoke-virtual {v0, v1}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(F)V
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
invoke-virtual {v0}, Le/k/a/b/v0;->D()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
invoke-static {p1, v1, v2}, Le/k/a/b/l1/f0;->a(FFF)F
|
|
|
|
move-result v1
|
|
|
|
iget v2, v0, Le/k/a/b/v0;->B:F
|
|
|
|
cmpl-float v2, v2, v1
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
iput v1, v0, Le/k/a/b/v0;->B:F
|
|
|
|
invoke-virtual {v0}, Le/k/a/b/v0;->C()V
|
|
|
|
iget-object v0, v0, Le/k/a/b/v0;->g:Ljava/util/concurrent/CopyOnWriteArraySet;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArraySet;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Le/k/a/b/y0/a;
|
|
|
|
invoke-virtual {v1}, Le/k/a/b/y0/a;->f()Le/k/a/b/y0/b$a;
|
|
|
|
iget-object v1, v1, Le/k/a/b/y0/a;->d:Ljava/util/concurrent/CopyOnWriteArraySet;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/CopyOnWriteArraySet;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Le/k/a/b/y0/b;
|
|
|
|
invoke-interface {v2}, Le/k/a/b/y0/b;->w()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->d:Lrx/subjects/BehaviorSubject;
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Landroid/net/Uri;ZZJLcom/google/android/exoplayer2/ui/PlayerView;)V
|
|
.locals 16
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-wide/from16 v1, p4
|
|
|
|
move-object/from16 v3, p6
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
iget-object v4, v0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
invoke-virtual {v4}, Le/k/a/b/v0;->D()V
|
|
|
|
iget-object v5, v4, Le/k/a/b/v0;->b:[Le/k/a/b/s0;
|
|
|
|
array-length v6, v5
|
|
|
|
const/4 v7, 0x0
|
|
|
|
:goto_0
|
|
const/4 v15, 0x2
|
|
|
|
const/4 v13, 0x1
|
|
|
|
if-ge v7, v6, :cond_1
|
|
|
|
aget-object v8, v5, v7
|
|
|
|
move-object v9, v8
|
|
|
|
check-cast v9, Le/k/a/b/s;
|
|
|
|
iget v9, v9, Le/k/a/b/s;->d:I
|
|
|
|
if-ne v9, v15, :cond_0
|
|
|
|
iget-object v9, v4, Le/k/a/b/v0;->c:Le/k/a/b/b0;
|
|
|
|
invoke-virtual {v9, v8}, Le/k/a/b/b0;->a(Le/k/a/b/q0$b;)Le/k/a/b/q0;
|
|
|
|
move-result-object v8
|
|
|
|
const/4 v9, 0x4
|
|
|
|
invoke-virtual {v8, v9}, Le/k/a/b/q0;->a(I)Le/k/a/b/q0;
|
|
|
|
invoke-static {v13}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v8, v9}, Le/k/a/b/q0;->a(Ljava/lang/Object;)Le/k/a/b/q0;
|
|
|
|
invoke-virtual {v8}, Le/k/a/b/q0;->d()Le/k/a/b/q0;
|
|
|
|
:cond_0
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object v4, v0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
invoke-virtual {v3, v4}, Lcom/google/android/exoplayer2/ui/PlayerView;->setPlayer(Le/k/a/b/o0;)V
|
|
|
|
new-instance v3, Le/k/a/b/g1/t$a;
|
|
|
|
iget-object v4, v0, Lcom/discord/player/AppMediaPlayer;->g:Le/k/a/b/k1/l$a;
|
|
|
|
new-instance v5, Le/k/a/b/d1/f;
|
|
|
|
invoke-direct {v5}, Le/k/a/b/d1/f;-><init>()V
|
|
|
|
invoke-direct {v3, v4, v5}, Le/k/a/b/g1/t$a;-><init>(Le/k/a/b/k1/l$a;Le/k/a/b/d1/j;)V
|
|
|
|
new-instance v4, Le/k/a/b/g1/t;
|
|
|
|
iget-object v7, v3, Le/k/a/b/g1/t$a;->a:Le/k/a/b/k1/l$a;
|
|
|
|
iget-object v8, v3, Le/k/a/b/g1/t$a;->b:Le/k/a/b/d1/j;
|
|
|
|
iget-object v9, v3, Le/k/a/b/g1/t$a;->e:Le/k/a/b/c1/n;
|
|
|
|
iget-object v10, v3, Le/k/a/b/g1/t$a;->f:Le/k/a/b/k1/x;
|
|
|
|
iget-object v11, v3, Le/k/a/b/g1/t$a;->c:Ljava/lang/String;
|
|
|
|
iget v12, v3, Le/k/a/b/g1/t$a;->g:I
|
|
|
|
iget-object v3, v3, Le/k/a/b/g1/t$a;->d:Ljava/lang/Object;
|
|
|
|
move-object v5, v4
|
|
|
|
move-object/from16 v6, p1
|
|
|
|
const/4 v14, 0x1
|
|
|
|
move-object v13, v3
|
|
|
|
invoke-direct/range {v5 .. v13}, Le/k/a/b/g1/t;-><init>(Landroid/net/Uri;Le/k/a/b/k1/l$a;Le/k/a/b/d1/j;Le/k/a/b/c1/n;Le/k/a/b/k1/x;Ljava/lang/String;ILjava/lang/Object;)V
|
|
|
|
iget-object v3, v0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
invoke-virtual {v3}, Le/k/a/b/v0;->D()V
|
|
|
|
iget-object v5, v3, Le/k/a/b/v0;->C:Le/k/a/b/g1/p;
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
iget-object v6, v3, Le/k/a/b/v0;->m:Le/k/a/b/y0/a;
|
|
|
|
check-cast v5, Le/k/a/b/g1/k;
|
|
|
|
invoke-virtual {v5, v6}, Le/k/a/b/g1/k;->a(Le/k/a/b/g1/q;)V
|
|
|
|
iget-object v5, v3, Le/k/a/b/v0;->m:Le/k/a/b/y0/a;
|
|
|
|
invoke-virtual {v5}, Le/k/a/b/y0/a;->k()V
|
|
|
|
:cond_2
|
|
iput-object v4, v3, Le/k/a/b/v0;->C:Le/k/a/b/g1/p;
|
|
|
|
iget-object v5, v3, Le/k/a/b/v0;->d:Landroid/os/Handler;
|
|
|
|
iget-object v6, v3, Le/k/a/b/v0;->m:Le/k/a/b/y0/a;
|
|
|
|
iget-object v7, v4, Le/k/a/b/g1/k;->c:Le/k/a/b/g1/q$a;
|
|
|
|
invoke-virtual {v7, v5, v6}, Le/k/a/b/g1/q$a;->a(Landroid/os/Handler;Le/k/a/b/g1/q;)V
|
|
|
|
iget-object v5, v3, Le/k/a/b/v0;->o:Le/k/a/b/q;
|
|
|
|
invoke-virtual {v3}, Le/k/a/b/v0;->g()Z
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {v5, v6}, Le/k/a/b/q;->b(Z)I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {v3}, Le/k/a/b/v0;->g()Z
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {v3, v6, v5}, Le/k/a/b/v0;->a(ZI)V
|
|
|
|
iget-object v7, v3, Le/k/a/b/v0;->c:Le/k/a/b/b0;
|
|
|
|
invoke-virtual {v7, v14, v14, v14, v15}, Le/k/a/b/b0;->a(ZZZI)Le/k/a/b/l0;
|
|
|
|
move-result-object v8
|
|
|
|
iput-boolean v14, v7, Le/k/a/b/b0;->p:Z
|
|
|
|
iget v3, v7, Le/k/a/b/b0;->o:I
|
|
|
|
add-int/2addr v3, v14
|
|
|
|
iput v3, v7, Le/k/a/b/b0;->o:I
|
|
|
|
iget-object v3, v7, Le/k/a/b/b0;->f:Le/k/a/b/c0;
|
|
|
|
iget-object v3, v3, Le/k/a/b/c0;->j:Le/k/a/b/l1/c0;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-virtual {v3, v5, v14, v14, v4}, Le/k/a/b/l1/c0;->a(IIILjava/lang/Object;)Landroid/os/Message;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Landroid/os/Message;->sendToTarget()V
|
|
|
|
const/4 v10, 0x4
|
|
|
|
const/4 v11, 0x1
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-virtual/range {v7 .. v12}, Le/k/a/b/b0;->a(Le/k/a/b/l0;ZIIZ)V
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/player/AppMediaPlayer;->e()V
|
|
|
|
:cond_3
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
if-lez v5, :cond_4
|
|
|
|
iget-object v3, v0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
invoke-virtual {v3}, Le/k/a/b/v0;->t()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v3, v4, v1, v2}, Le/k/a/b/v0;->a(IJ)V
|
|
|
|
:cond_4
|
|
iget-object v1, v0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
move/from16 v2, p3
|
|
|
|
invoke-virtual {v1, v2}, Le/k/a/b/v0;->a(I)V
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
const-string v1, "playerView"
|
|
|
|
invoke-static {v1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v4
|
|
|
|
:cond_6
|
|
const-string v1, "progressiveMediaUri"
|
|
|
|
invoke-static {v1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v4
|
|
.end method
|
|
|
|
.method public final a()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
invoke-virtual {v0}, Le/k/a/b/r;->z()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final b()Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lrx/Observable<",
|
|
"Lcom/discord/player/AppMediaPlayer$Event;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->a:Lrx/subjects/PublishSubject;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final c()Lrx/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lrx/Observable<",
|
|
"Ljava/lang/Float;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->d:Lrx/subjects/BehaviorSubject;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final d()V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Le/k/a/b/v0;->a(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e()V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Le/k/a/b/v0;->a(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final f()V
|
|
.locals 5
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/discord/player/AppMediaPlayer;->d()V
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->b:Lrx/Subscription;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->c:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-virtual {v0}, Lrx/subscriptions/CompositeSubscription;->unsubscribe()V
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->e:Le/k/a/b/v0;
|
|
|
|
invoke-virtual {v0}, Le/k/a/b/v0;->D()V
|
|
|
|
iget-object v1, v0, Le/k/a/b/v0;->n:Le/k/a/b/p;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v1, v2}, Le/k/a/b/p;->a(Z)V
|
|
|
|
iget-object v1, v0, Le/k/a/b/v0;->o:Le/k/a/b/q;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-virtual {v1, v3}, Le/k/a/b/q;->a(Z)V
|
|
|
|
iget-object v1, v0, Le/k/a/b/v0;->p:Le/k/a/b/x0;
|
|
|
|
invoke-virtual {v1, v2}, Le/k/a/b/x0;->a(Z)V
|
|
|
|
iget-object v1, v0, Le/k/a/b/v0;->c:Le/k/a/b/b0;
|
|
|
|
invoke-virtual {v1}, Le/k/a/b/b0;->A()V
|
|
|
|
invoke-virtual {v0}, Le/k/a/b/v0;->B()V
|
|
|
|
iget-object v1, v0, Le/k/a/b/v0;->s:Landroid/view/Surface;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-boolean v4, v0, Le/k/a/b/v0;->t:Z
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
invoke-virtual {v1}, Landroid/view/Surface;->release()V
|
|
|
|
:cond_1
|
|
iput-object v3, v0, Le/k/a/b/v0;->s:Landroid/view/Surface;
|
|
|
|
:cond_2
|
|
iget-object v1, v0, Le/k/a/b/v0;->C:Le/k/a/b/g1/p;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-object v4, v0, Le/k/a/b/v0;->m:Le/k/a/b/y0/a;
|
|
|
|
check-cast v1, Le/k/a/b/g1/k;
|
|
|
|
invoke-virtual {v1, v4}, Le/k/a/b/g1/k;->a(Le/k/a/b/g1/q;)V
|
|
|
|
iput-object v3, v0, Le/k/a/b/v0;->C:Le/k/a/b/g1/p;
|
|
|
|
:cond_3
|
|
iget-boolean v1, v0, Le/k/a/b/v0;->I:Z
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iget-object v1, v0, Le/k/a/b/v0;->H:Le/k/a/b/l1/x;
|
|
|
|
invoke-static {v1}, Le/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2}, Le/k/a/b/l1/x;->b(I)V
|
|
|
|
iput-boolean v2, v0, Le/k/a/b/v0;->I:Z
|
|
|
|
:cond_4
|
|
iget-object v1, v0, Le/k/a/b/v0;->l:Le/k/a/b/k1/f;
|
|
|
|
iget-object v2, v0, Le/k/a/b/v0;->m:Le/k/a/b/y0/a;
|
|
|
|
check-cast v1, Le/k/a/b/k1/p;
|
|
|
|
iget-object v1, v1, Le/k/a/b/k1/p;->c:Le/k/a/b/l1/m;
|
|
|
|
invoke-virtual {v1, v2}, Le/k/a/b/l1/m;->a(Ljava/lang/Object;)V
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Le/k/a/b/v0;->D:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|