2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lf/a/g/i;
|
2020-07-08 16:44:49 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "AppMediaPlayerFactory.kt"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
# direct methods
|
|
|
|
.method public static final a(Landroid/content/Context;)Lcom/discord/player/AppMediaPlayer;
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 28
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v1, p0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "context"
|
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-28 19:40:16 +00:00
|
|
|
sget-object v9, Lcom/discord/app/AppLog;->e:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "com.discord"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v2, "applicationId"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v0, v2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v2, "logger"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v9, v2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v2, Lf/h/a/c/h1/o;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v1, v0}, Lf/h/a/c/i1/b0;->G(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v2, v1, v0}, Lf/h/a/c/h1/o;-><init>(Landroid/content/Context;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v10, Lf/a/g/j;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-wide/32 v3, 0x6400000
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v10, v2, v3, v4}, Lf/a/g/j;-><init>(Lf/h/a/c/h1/o;J)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v11, Lf/a/g/k;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v11}, Lf/a/g/k;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v0, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v0}, Lf/g/j/k/a;->u(Z)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v2, 0x9c4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v3, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v4, "bufferForPlaybackMs"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v5, "0"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v2, v3, v4, v5}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v6, 0x1388
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v7, "bufferForPlaybackAfterRebufferMs"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v6, v3, v7, v5}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v3, 0x2710
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v5, "minBufferMs"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v3, v2, v5, v4}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v3, v6, v5, v7}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v2, 0x7530
|
|
|
|
|
|
|
|
const-string v4, "maxBufferMs"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v2, v3, v4, v5}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v0}, Lf/g/j/k/a;->u(Z)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v13, Lf/h/a/c/h1/l;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/high16 v2, 0x10000
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v13, v0, v2}, Lf/h/a/c/h1/l;-><init>(ZI)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v4, Lf/h/a/c/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v15, 0x2710
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v16, 0x7530
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v3, 0x9c4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v23, 0x1388
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v24, -0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v25, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v27, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v12, v4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move v14, v15
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move/from16 v17, v3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move/from16 v18, v23
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move/from16 v19, v24
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move/from16 v20, v25
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move/from16 v21, v27
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move/from16 v22, v27
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct/range {v12 .. v22}, Lf/h/a/c/x;-><init>(Lf/h/a/c/h1/l;IIIIIIZIZ)V
|
|
|
|
|
|
|
|
const-string v5, "DefaultLoadControl.Build\u2026reateDefaultLoadControl()"
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v4, v5}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v5, Lf/h/a/c/z;
|
|
|
|
|
|
|
|
invoke-direct {v5, v1}, Lf/h/a/c/z;-><init>(Landroid/content/Context;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v6, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v6, v1}, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector;-><init>(Landroid/content/Context;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v17, Lf/h/a/c/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v7, Lf/h/a/c/h1/l;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v7, v0, v2}, Lf/h/a/c/h1/l;-><init>(ZI)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v19, 0x3a98
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const v20, 0xc350
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const v21, 0xc350
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/16 v26, 0x0
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object/from16 v18, v7
|
|
|
|
|
|
|
|
move/from16 v22, v3
|
|
|
|
|
|
|
|
invoke-direct/range {v17 .. v27}, Lf/h/a/c/x;-><init>(Lf/h/a/c/h1/l;IIIIIIZIZ)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static/range {p0 .. p0}, Lf/h/a/c/h1/m;->j(Landroid/content/Context;)Lf/h/a/c/h1/m;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v2, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_0
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v8, v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
new-instance v12, Lf/h/a/c/v0/a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
sget-object v2, Lf/h/a/c/i1/f;->a:Lf/h/a/c/i1/f;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v12, v2}, Lf/h/a/c/v0/a;-><init>(Lf/h/a/c/i1/f;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
sget-object v13, Lf/h/a/c/i1/f;->a:Lf/h/a/c/i1/f;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v0}, Lf/g/j/k/a;->u(Z)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v0}, Lf/g/j/k/a;->u(Z)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
new-instance v14, Lf/h/a/c/s0;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-object v0, v14
|
|
|
|
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v2, v5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-object v3, v6
|
|
|
|
|
|
|
|
move-object v5, v7
|
|
|
|
|
|
|
|
move-object v6, v12
|
|
|
|
|
|
|
|
move-object v7, v13
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct/range {v0 .. v8}, Lf/h/a/c/s0;-><init>(Landroid/content/Context;Lf/h/a/c/z;Lf/h/a/c/f1/h;Lf/h/a/c/e0;Lf/h/a/c/h1/e;Lf/h/a/c/v0/a;Lf/h/a/c/i1/f;Landroid/os/Looper;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v0, "SimpleExoPlayer\n \u2026ntrol)\n .build()"
|
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v14, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v14}, Lf/h/a/c/s0;->S()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v0, v14, Lf/h/a/c/s0;->c:Lf/h/a/c/a0;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v0, v0, Lf/h/a/c/a0;->h:Ljava/util/concurrent/CopyOnWriteArrayList;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
new-instance v1, Lf/h/a/c/s$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-direct {v1, v11}, Lf/h/a/c/s$a;-><init>(Lf/h/a/c/m0$a;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->addIfAbsent(Ljava/lang/Object;)Z
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v0, Lcom/discord/player/AppMediaPlayer;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {}, Ll0/p/a;->a()Lrx/Scheduler;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v1, "Schedulers.computation()"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v5, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v1, v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v2, v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v3, v11
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v4, v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v6, v9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/discord/player/AppMediaPlayer;-><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-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
return-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|