2020-05-17 12:40:10 +00:00
|
|
|
.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 e:Lcom/discord/player/MediaSource;
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
.field public final f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public final g:Lf/a/g/k;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
.field public final h:Lf/h/a/c/h1/j$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
.field public final i:Lrx/Scheduler;
|
|
|
|
|
|
|
|
.field public final j:Lcom/discord/utilities/logging/Logger;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-25 02:57:47 +00:00
|
|
|
.method public constructor <init>(Lf/h/a/c/s0;Lf/a/g/k;Lf/h/a/c/h1/j$a;Lrx/Scheduler;Lcom/discord/utilities/logging/Logger;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object p2, p0, Lcom/discord/player/AppMediaPlayer;->g:Lf/a/g/k;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-object p3, p0, Lcom/discord/player/AppMediaPlayer;->h:Lf/h/a/c/h1/j$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/player/AppMediaPlayer;->i:Lrx/Scheduler;
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/player/AppMediaPlayer;->j:Lcom/discord/utilities/logging/Logger;
|
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-static {}, Lrx/subjects/PublishSubject;->g0()Lrx/subjects/PublishSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "PublishSubject.create<Event>()"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1, p2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget p1, p1, Lf/h/a/c/s0;->B:F
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-static {p1}, Lrx/subjects/BehaviorSubject;->h0(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "BehaviorSubject.create<Float>(exoPlayer.volume)"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1, p2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/player/AppMediaPlayer;->d:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/player/AppMediaPlayer;->g:Lf/a/g/k;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p1, Lf/a/g/k;->d:Lrx/subjects/PublishSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string p2, "playerStateChangeSubject"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1, p2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance p2, Lf/a/g/e;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p2, p0}, Lf/a/g/e;-><init>(Lcom/discord/player/AppMediaPlayer;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance p3, Lf/a/g/f;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p3, p0}, Lf/a/g/f;-><init>(Lcom/discord/player/AppMediaPlayer;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {p1, p2, p3}, Lrx/Observable;->S(Lrx/functions/Action1;Lrx/functions/Action1;)Lrx/Subscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/player/AppMediaPlayer;->g:Lf/a/g/k;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p1, Lf/a/g/k;->e:Lrx/subjects/PublishSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string p2, "isPlayingChangeSubject"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1, p2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance p2, Lf/a/g/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p2, p0}, Lf/a/g/a;-><init>(Lcom/discord/player/AppMediaPlayer;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance p3, Lf/a/g/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p3, p0}, Lf/a/g/b;-><init>(Lcom/discord/player/AppMediaPlayer;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {p1, p2, p3}, Lrx/Observable;->S(Lrx/functions/Action1;Lrx/functions/Action1;)Lrx/Subscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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;->e:Lcom/discord/player/MediaSource;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p1, Lcom/discord/player/MediaSource;->e:Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, ""
|
|
|
|
|
|
|
|
:goto_0
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/player/AppMediaPlayer;->g:Lf/a/g/k;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p2, p2, Lf/a/g/k;->f:Lrx/subjects/PublishSubject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string p3, "playerErrorSubject"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p2, p3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance p3, Lf/a/g/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p3, p0, p1}, Lf/a/g/c;-><init>(Lcom/discord/player/AppMediaPlayer;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance p1, Lf/a/g/d;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p1, p0}, Lf/a/g/d;-><init>(Lcom/discord/player/AppMediaPlayer;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {p2, p3, p1}, Lrx/Observable;->S(Lrx/functions/Action1;Lrx/functions/Action1;)Lrx/Subscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public static synthetic b(Lcom/discord/player/AppMediaPlayer;Lcom/discord/player/MediaSource;ZZJLcom/google/android/exoplayer2/ui/PlayerView;Lcom/google/android/exoplayer2/ui/PlayerControlView;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 10
|
|
|
|
|
|
|
|
and-int/lit8 v0, p8, 0x2
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move v4, p2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
and-int/lit8 v0, p8, 0x4
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move v5, p3
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
and-int/lit8 v0, p8, 0x8
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
move-wide v6, v0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-wide v6, p4
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
and-int/lit8 v0, p8, 0x20
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v9, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-object v2, p0
|
|
|
|
|
|
|
|
move-object v3, p1
|
|
|
|
|
|
|
|
move-object/from16 v8, p6
|
|
|
|
|
|
|
|
invoke-virtual/range {v2 .. v9}, Lcom/discord/player/AppMediaPlayer;->a(Lcom/discord/player/MediaSource;ZZJLcom/google/android/exoplayer2/ui/PlayerView;Lcom/google/android/exoplayer2/ui/PlayerControlView;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public final a(Lcom/discord/player/MediaSource;ZZJLcom/google/android/exoplayer2/ui/PlayerView;Lcom/google/android/exoplayer2/ui/PlayerControlView;)V
|
|
|
|
.locals 23
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v0, p0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v1, p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-wide/from16 v2, p4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v4, p6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v5, p7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v6, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v1, :cond_b
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v4, :cond_a
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object v1, v0, Lcom/discord/player/AppMediaPlayer;->e:Lcom/discord/player/MediaSource;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v7, v0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v7}, Lf/h/a/c/s0;->S()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v8, v7, Lf/h/a/c/s0;->b:[Lf/h/a/c/p0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
array-length v9, v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v10, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v11, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_0
|
|
|
|
const/4 v12, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v13, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-ge v11, v9, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aget-object v14, v8, v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-interface {v14}, Lf/h/a/c/p0;->u()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v15
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-ne v15, v12, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v12, v7, Lf/h/a/c/s0;->c:Lf/h/a/c/a0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v12, v14}, Lf/h/a/c/a0;->a(Lf/h/a/c/n0$b;)Lf/h/a/c/n0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v12
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v14, 0x4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v12, v14}, Lf/h/a/c/n0;->e(I)Lf/h/a/c/n0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v13}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v13
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v12, v13}, Lf/h/a/c/n0;->d(Ljava/lang/Object;)Lf/h/a/c/n0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v12}, Lf/h/a/c/n0;->c()Lf/h/a/c/n0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v11, v11, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_1
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v7, v0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v4, v7}, Lcom/google/android/exoplayer2/ui/PlayerView;->setPlayer(Lf/h/a/c/m0;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v4, v0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v5, v4}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setPlayer(Lf/h/a/c/m0;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
:cond_2
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v4, v0, Lcom/discord/player/AppMediaPlayer;->h:Lf/h/a/c/h1/j$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
new-instance v17, Lf/h/a/c/a1/f;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-direct/range {v17 .. v17}, Lf/h/a/c/a1/f;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
sget-object v18, Lf/h/a/c/z0/i;->a:Lf/h/a/c/z0/i;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
new-instance v19, Lf/h/a/c/h1/r;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-direct/range {v19 .. v19}, Lf/h/a/c/h1/r;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/high16 v21, 0x100000
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v15, v1, Lcom/discord/player/MediaSource;->d:Landroid/net/Uri;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
new-instance v1, Lf/h/a/c/d1/s;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v20, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v22, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v14, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v16, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-direct/range {v14 .. v22}, Lf/h/a/c/d1/s;-><init>(Landroid/net/Uri;Lf/h/a/c/h1/j$a;Lf/h/a/c/a1/j;Lf/h/a/c/z0/i;Lf/h/a/c/h1/u;Ljava/lang/String;ILjava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v4, v0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v4}, Lf/h/a/c/s0;->S()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v5, v4, Lf/h/a/c/s0;->C:Lf/h/a/c/d1/p;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v5, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v7, v4, Lf/h/a/c/s0;->m:Lf/h/a/c/v0/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-interface {v5, v7}, Lf/h/a/c/d1/p;->c(Lf/h/a/c/d1/q;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v5, v4, Lf/h/a/c/s0;->m:Lf/h/a/c/v0/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v5, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v7, Ljava/util/ArrayList;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v8, v5, Lf/h/a/c/v0/a;->g:Lf/h/a/c/v0/a$b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v8, v8, Lf/h/a/c/v0/a$b;->a:Ljava/util/ArrayList;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v7, v8}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v7}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v8, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
check-cast v8, Lf/h/a/c/v0/a$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget v9, v8, Lf/h/a/c/v0/a$a;->c:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v8, v8, Lf/h/a/c/v0/a$a;->a:Lf/h/a/c/d1/p$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v5, v9, v8}, Lf/h/a/c/v0/a;->V(ILf/h/a/c/d1/p$a;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_3
|
|
|
|
throw v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_4
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-object v1, v4, Lf/h/a/c/s0;->C:Lf/h/a/c/d1/p;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v5, v4, Lf/h/a/c/s0;->d:Landroid/os/Handler;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v7, v4, Lf/h/a/c/s0;->m:Lf/h/a/c/v0/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v1, v5, v7}, Lf/h/a/c/d1/k;->g(Landroid/os/Handler;Lf/h/a/c/d1/q;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v5, v4, Lf/h/a/c/s0;->o:Lf/h/a/c/r;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v4}, Lf/h/a/c/s0;->f()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v5, :cond_9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v7, :cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget v6, v5, Lf/h/a/c/r;->d:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v6, :cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v5, v13}, Lf/h/a/c/r;->a(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_5
|
|
|
|
const/4 v5, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_6
|
|
|
|
const/4 v5, -0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_2
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v4}, Lf/h/a/c/s0;->f()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v4, v6, v5}, Lf/h/a/c/s0;->R(ZI)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v14, v4, Lf/h/a/c/s0;->c:Lf/h/a/c/a0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v14, v13, v13, v13, v12}, Lf/h/a/c/a0;->I(ZZZI)Lf/h/a/c/i0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v15
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-boolean v13, v14, Lf/h/a/c/a0;->p:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget v4, v14, Lf/h/a/c/a0;->o:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
add-int/2addr v4, v13
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput v4, v14, Lf/h/a/c/a0;->o:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v4, v14, Lf/h/a/c/a0;->f:Lf/h/a/c/b0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v4, v4, Lf/h/a/c/b0;->j:Lf/h/a/c/i1/z;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v4, v4, Lf/h/a/c/i1/z;->a:Landroid/os/Handler;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v4, v10, v13, v13, v1}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v1}, Landroid/os/Message;->sendToTarget()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v16, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v17, 0x4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v18, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v19, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual/range {v14 .. v19}, Lf/h/a/c/a0;->V(Lf/h/a/c/i0;ZIIZ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz p2, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v1, v0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v1, v13}, Lf/h/a/c/s0;->n(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_7
|
|
|
|
const-wide/16 v4, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
cmp-long v1, v2, v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-lez v1, :cond_8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v1, v0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v1}, Lf/h/a/c/s0;->m()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v1, v4, v2, v3}, Lf/h/a/c/s0;->e(IJ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_8
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v1, v0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v1}, Lf/h/a/c/s0;->S()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v1, v1, Lf/h/a/c/s0;->c:Lf/h/a/c/a0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move/from16 v2, p3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v1, v2}, Lf/h/a/c/a0;->u(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return-void
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_9
|
|
|
|
throw v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_a
|
|
|
|
const-string v1, "playerView"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
throw v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_b
|
|
|
|
const-string v1, "mediaSource"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
throw v6
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public final c()V
|
|
|
|
.locals 8
|
|
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v0, v1}, Lf/h/a/c/s0;->n(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->b:Lrx/Subscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->c:Lrx/subscriptions/CompositeSubscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0}, Lrx/subscriptions/CompositeSubscription;->unsubscribe()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v0}, Lf/h/a/c/s0;->S()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v2, v0, Lf/h/a/c/s0;->n:Lf/h/a/c/q;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v3, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v2, :cond_b
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-boolean v4, v2, Lf/h/a/c/q;->c:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v4, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v4, v2, Lf/h/a/c/q;->a:Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v5, v2, Lf/h/a/c/q;->b:Lf/h/a/c/q$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v4, v5}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-boolean v1, v2, Lf/h/a/c/q;->c:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_1
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v2, v0, Lf/h/a/c/s0;->o:Lf/h/a/c/r;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v4, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v2, v4}, Lf/h/a/c/r;->a(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v2, v0, Lf/h/a/c/s0;->p:Lf/h/a/c/u0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-boolean v1, v2, Lf/h/a/c/u0;->a:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v2, v0, Lf/h/a/c/s0;->c:Lf/h/a/c/a0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v2, :cond_a
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v5, "ExoPlayerImpl"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v6, "Release "
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v6}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v2}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v7}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v7, " ["
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v7, "ExoPlayerLib/2.11.3"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v7, "] ["
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
sget-object v7, Lf/h/a/c/i1/c0;->e:Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v7, "] ["
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static {}, Lf/h/a/c/c0;->b()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v7, "]"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v5, v6}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v5, v2, Lf/h/a/c/a0;->f:Lf/h/a/c/b0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
monitor-enter v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:try_start_0
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-boolean v6, v5, Lf/h/a/c/b0;->z:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-nez v6, :cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v6, v5, Lf/h/a/c/b0;->k:Landroid/os/HandlerThread;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6}, Landroid/os/HandlerThread;->isAlive()Z
|
|
|
|
|
|
|
|
move-result v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-nez v6, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_2
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v6, v5, Lf/h/a/c/b0;->j:Lf/h/a/c/i1/z;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v7, 0x7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v6, v7}, Lf/h/a/c/i1/z;->c(I)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v6, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_0
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-boolean v7, v5, Lf/h/a/c/b0;->z:Z
|
2020-07-08 16:44:49 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-nez v7, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:try_start_1
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Object;->wait()V
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:catch_0
|
|
|
|
const/4 v6, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_3
|
|
|
|
if-eqz v6, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:try_start_2
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_4
|
|
|
|
monitor-exit v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_5
|
|
|
|
:goto_1
|
|
|
|
monitor-exit v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_2
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v5, v2, Lf/h/a/c/a0;->e:Landroid/os/Handler;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v5, v3}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v2, v1, v1, v1, v4}, Lf/h/a/c/a0;->I(ZZZI)Lf/h/a/c/i0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-object v1, v2, Lf/h/a/c/a0;->t:Lf/h/a/c/i0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v0}, Lf/h/a/c/s0;->K()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v1, v0, Lf/h/a/c/s0;->s:Landroid/view/Surface;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v1, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-boolean v2, v0, Lf/h/a/c/s0;->t:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v2, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/Surface;->release()V
|
|
|
|
|
|
|
|
:cond_6
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-object v3, v0, Lf/h/a/c/s0;->s:Landroid/view/Surface;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_7
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v1, v0, Lf/h/a/c/s0;->C:Lf/h/a/c/d1/p;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v2, v0, Lf/h/a/c/s0;->m:Lf/h/a/c/v0/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-interface {v1, v2}, Lf/h/a/c/d1/p;->c(Lf/h/a/c/d1/q;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-object v3, v0, Lf/h/a/c/s0;->C:Lf/h/a/c/d1/p;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_8
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-boolean v1, v0, Lf/h/a/c/s0;->I:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-nez v1, :cond_9
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v1, v0, Lf/h/a/c/s0;->l:Lf/h/a/c/h1/e;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v2, v0, Lf/h/a/c/s0;->m:Lf/h/a/c/v0/a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-interface {v1, v2}, Lf/h/a/c/h1/e;->d(Lf/h/a/c/h1/e$a;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-object v1, v0, Lf/h/a/c/s0;->D:Ljava/util/List;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
throw v3
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit v5
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
throw v3
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
throw v3
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final d(F)V
|
|
|
|
.locals 3
|
|
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/player/AppMediaPlayer;->f:Lf/h/a/c/s0;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v0}, Lf/h/a/c/s0;->S()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static {p1, v1, v2}, Lf/h/a/c/i1/c0;->k(FFF)F
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget v2, v0, Lf/h/a/c/s0;->B:F
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
cmpl-float v2, v2, v1
|
|
|
|
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-25 02:57:47 +00:00
|
|
|
iput v1, v0, Lf/h/a/c/s0;->B:F
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v0}, Lf/h/a/c/s0;->L()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v0, v0, Lf/h/a/c/s0;->g:Ljava/util/concurrent/CopyOnWriteArraySet;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArraySet;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
check-cast v2, Lf/h/a/c/w0/k;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-interface {v2, v1}, Lf/h/a/c/w0/k;->m(F)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
: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
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|