.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 34 move-object/from16 v1, p0 sget-object v9, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog; if-eqz v9, :cond_1 new-instance v0, Lf/h/a/c/h1/o; const-string v2, "com.discord" invoke-static {v1, v2}, Lf/h/a/c/i1/c0;->G(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; move-result-object v2 invoke-direct {v0, v1, v2}, Lf/h/a/c/h1/o;->(Landroid/content/Context;Ljava/lang/String;)V new-instance v10, Lf/a/g/j; const-wide/32 v2, 0x6400000 invoke-direct {v10, v0, v2, v3}, Lf/a/g/j;->(Lf/h/a/c/h1/o;J)V new-instance v11, Lf/a/g/k; invoke-direct {v11}, Lf/a/g/k;->()V const/16 v19, -0x1 const/16 v20, 0x1 const/16 v22, 0x0 const/16 v0, 0x2710 const/16 v2, 0x7530 const/16 v3, 0x9c4 const/16 v4, 0x1388 const/4 v5, 0x1 invoke-static {v5}, Lf/h/a/c/i1/e;->F(Z)V const-string v6, "bufferForPlaybackMs" const-string v7, "0" const/4 v8, 0x0 invoke-static {v3, v8, v6, v7}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V const-string v12, "bufferForPlaybackAfterRebufferMs" invoke-static {v4, v8, v12, v7}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V const-string v7, "minBufferMs" invoke-static {v0, v3, v7, v6}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V invoke-static {v0, v4, v7, v12}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V const-string v3, "maxBufferMs" invoke-static {v2, v0, v3, v7}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V invoke-static {v5}, Lf/h/a/c/i1/e;->F(Z)V new-instance v0, Lf/h/a/c/h1/l; const/high16 v2, 0x10000 invoke-direct {v0, v5, v2}, Lf/h/a/c/h1/l;->(ZI)V new-instance v4, Lf/h/a/c/x; const/16 v26, 0x2710 const/16 v27, 0x7530 const/16 v17, 0x9c4 const/16 v18, 0x1388 const/16 v28, 0x9c4 const/16 v29, 0x1388 const/16 v30, -0x1 const/16 v31, 0x1 const/16 v33, 0x0 move-object/from16 v23, v4 move-object/from16 v24, v0 move/from16 v25, v26 move/from16 v32, v33 invoke-direct/range {v23 .. v33}, Lf/h/a/c/x;->(Lf/h/a/c/h1/l;IIIIIIZIZ)V const-string v0, "DefaultLoadControl.Build\u2026reateDefaultLoadControl()" invoke-static {v4, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V new-instance v3, Lf/h/a/c/z; invoke-direct {v3, v1}, Lf/h/a/c/z;->(Landroid/content/Context;)V new-instance v6, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector; invoke-direct {v6, v1}, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector;->(Landroid/content/Context;)V new-instance v12, Lf/h/a/c/x; new-instance v13, Lf/h/a/c/h1/l; invoke-direct {v13, v5, v2}, Lf/h/a/c/h1/l;->(ZI)V const/16 v14, 0x3a98 const v15, 0xc350 const v16, 0xc350 const/16 v21, 0x0 invoke-direct/range {v12 .. v22}, Lf/h/a/c/x;->(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 v0 if-eqz v0, :cond_0 goto :goto_0 :cond_0 invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper; move-result-object v0 :goto_0 move-object v8, v0 new-instance v12, Lf/h/a/c/v0/a; sget-object v0, Lf/h/a/c/i1/g;->a:Lf/h/a/c/i1/g; invoke-direct {v12, v0}, Lf/h/a/c/v0/a;->(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 {v5}, Lf/h/a/c/i1/e;->F(Z)V invoke-static {v5}, 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, v3 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;->(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}, Lj0/n/c/h;->checkExpressionValueIsNotNull(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;->(Lf/h/a/c/m0$a;)V invoke-virtual {v0, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->addIfAbsent(Ljava/lang/Object;)Z new-instance v6, Lcom/discord/player/AppMediaPlayer; invoke-static {}, Lr0/p/a;->a()Lrx/Scheduler; move-result-object v4 const-string v0, "Schedulers.computation()" invoke-static {v4, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V move-object v0, v6 move-object v1, v14 move-object v2, v11 move-object v3, v10 move-object v5, v9 invoke-direct/range {v0 .. v5}, Lcom/discord/player/AppMediaPlayer;->(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 v6 :cond_1 const-string v0, "logger" invoke-static {v0}, Lj0/n/c/h;->c(Ljava/lang/String;)V const/4 v0, 0x0 throw v0 .end method