245 lines
6 KiB
Smali
245 lines
6 KiB
Smali
.class public final Lf/a/g/i;
|
|
.super Ljava/lang/Object;
|
|
.source "AppMediaPlayerFactory.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(Landroid/content/Context;)Lcom/discord/player/AppMediaPlayer;
|
|
.locals 28
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {v1, v0}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v9, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
|
|
|
invoke-static {v1, v0}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "com.discord"
|
|
|
|
const-string v2, "applicationId"
|
|
|
|
invoke-static {v0, v2}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v2, "logger"
|
|
|
|
invoke-static {v9, v2}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v2, Lf/h/a/c/h1/o;
|
|
|
|
invoke-static {v1, v0}, Lf/h/a/c/i1/c0;->G(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v2, v1, v0}, Lf/h/a/c/h1/o;-><init>(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
new-instance v10, Lf/a/g/j;
|
|
|
|
const-wide/32 v3, 0x6400000
|
|
|
|
invoke-direct {v10, v2, v3, v4}, Lf/a/g/j;-><init>(Lf/h/a/c/h1/o;J)V
|
|
|
|
new-instance v11, Lf/a/g/k;
|
|
|
|
invoke-direct {v11}, Lf/a/g/k;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-static {v0}, Lf/h/a/c/i1/e;->F(Z)V
|
|
|
|
const/16 v2, 0x9c4
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const-string v4, "bufferForPlaybackMs"
|
|
|
|
const-string v5, "0"
|
|
|
|
invoke-static {v2, v3, v4, v5}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
const/16 v6, 0x1388
|
|
|
|
const-string v7, "bufferForPlaybackAfterRebufferMs"
|
|
|
|
invoke-static {v6, v3, v7, v5}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
const/16 v3, 0x2710
|
|
|
|
const-string v5, "minBufferMs"
|
|
|
|
invoke-static {v3, v2, v5, v4}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v3, v6, v5, v7}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
const/16 v2, 0x7530
|
|
|
|
const-string v4, "maxBufferMs"
|
|
|
|
invoke-static {v2, v3, v4, v5}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Lf/h/a/c/i1/e;->F(Z)V
|
|
|
|
new-instance v13, Lf/h/a/c/h1/l;
|
|
|
|
const/high16 v2, 0x10000
|
|
|
|
invoke-direct {v13, v0, v2}, Lf/h/a/c/h1/l;-><init>(ZI)V
|
|
|
|
new-instance v4, Lf/h/a/c/x;
|
|
|
|
const/16 v15, 0x2710
|
|
|
|
const/16 v16, 0x7530
|
|
|
|
const/16 v3, 0x9c4
|
|
|
|
const/16 v23, 0x1388
|
|
|
|
const/16 v24, -0x1
|
|
|
|
const/16 v25, 0x1
|
|
|
|
const/16 v27, 0x0
|
|
|
|
move-object v12, v4
|
|
|
|
move v14, v15
|
|
|
|
move/from16 v17, v3
|
|
|
|
move/from16 v18, v23
|
|
|
|
move/from16 v19, v24
|
|
|
|
move/from16 v20, v25
|
|
|
|
move/from16 v21, v27
|
|
|
|
move/from16 v22, v27
|
|
|
|
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()"
|
|
|
|
invoke-static {v4, v5}, Lk0/o/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v5, Lf/h/a/c/z;
|
|
|
|
invoke-direct {v5, v1}, Lf/h/a/c/z;-><init>(Landroid/content/Context;)V
|
|
|
|
new-instance v6, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector;
|
|
|
|
invoke-direct {v6, v1}, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector;-><init>(Landroid/content/Context;)V
|
|
|
|
new-instance v17, Lf/h/a/c/x;
|
|
|
|
new-instance v7, Lf/h/a/c/h1/l;
|
|
|
|
invoke-direct {v7, v0, v2}, Lf/h/a/c/h1/l;-><init>(ZI)V
|
|
|
|
const/16 v19, 0x3a98
|
|
|
|
const v20, 0xc350
|
|
|
|
const v21, 0xc350
|
|
|
|
const/16 v26, 0x0
|
|
|
|
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
|
|
|
|
invoke-static/range {p0 .. p0}, Lf/h/a/c/h1/m;->j(Landroid/content/Context;)Lf/h/a/c/h1/m;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_0
|
|
move-object v8, v2
|
|
|
|
new-instance v12, Lf/h/a/c/v0/a;
|
|
|
|
sget-object v2, Lf/h/a/c/i1/g;->a:Lf/h/a/c/i1/g;
|
|
|
|
invoke-direct {v12, v2}, Lf/h/a/c/v0/a;-><init>(Lf/h/a/c/i1/g;)V
|
|
|
|
sget-object v13, Lf/h/a/c/i1/g;->a:Lf/h/a/c/i1/g;
|
|
|
|
invoke-static {v0}, Lf/h/a/c/i1/e;->F(Z)V
|
|
|
|
invoke-static {v0}, Lf/h/a/c/i1/e;->F(Z)V
|
|
|
|
new-instance v14, Lf/h/a/c/s0;
|
|
|
|
move-object v0, v14
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
move-object v2, v5
|
|
|
|
move-object v3, v6
|
|
|
|
move-object v5, v7
|
|
|
|
move-object v6, v12
|
|
|
|
move-object v7, v13
|
|
|
|
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/g;Landroid/os/Looper;)V
|
|
|
|
const-string v0, "SimpleExoPlayer\n \u2026ntrol)\n .build()"
|
|
|
|
invoke-static {v14, v0}, Lk0/o/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v14}, Lf/h/a/c/s0;->S()V
|
|
|
|
iget-object v0, v14, Lf/h/a/c/s0;->c:Lf/h/a/c/a0;
|
|
|
|
iget-object v0, v0, Lf/h/a/c/a0;->h:Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
new-instance v1, Lf/h/a/c/s$a;
|
|
|
|
invoke-direct {v1, v11}, Lf/h/a/c/s$a;-><init>(Lf/h/a/c/m0$a;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->addIfAbsent(Ljava/lang/Object;)Z
|
|
|
|
new-instance v0, Lcom/discord/player/AppMediaPlayer;
|
|
|
|
invoke-static {}, Ls0/p/a;->a()Lrx/Scheduler;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v1, "Schedulers.computation()"
|
|
|
|
invoke-static {v5, v1}, Lk0/o/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
move-object v1, v0
|
|
|
|
move-object v2, v14
|
|
|
|
move-object v3, v11
|
|
|
|
move-object v4, v10
|
|
|
|
move-object v6, v9
|
|
|
|
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
|
|
|
|
return-object v0
|
|
.end method
|