.class public final Lf/a/e/e; .super Ljava/lang/Object; .source "AppMediaPlayerFactory.kt" # static fields .field public static final a:Lf/a/e/e; # direct methods .method public static constructor ()V .locals 1 new-instance v0, Lf/a/e/e; invoke-direct {v0}, Lf/a/e/e;->()V sput-object v0, Lf/a/e/e;->a:Lf/a/e/e; return-void .end method .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public final a(Landroid/content/Context;)Lcom/discord/player/AppMediaPlayer; .locals 24 move-object/from16 v1, p1 const/4 v0, 0x0 if-eqz v1, :cond_2 sget-object v9, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog; if-eqz v9, :cond_1 new-instance v0, Lf/k/a/b/k1/r; const-string v2, "com.discord" invoke-static {v1, v2}, Lf/k/a/b/l1/f0;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; move-result-object v2 invoke-direct {v0, v1, v2}, Lf/k/a/b/k1/r;->(Landroid/content/Context;Ljava/lang/String;)V new-instance v10, Lf/a/e/f; const-wide/32 v2, 0x6400000 invoke-direct {v10, v0, v2, v3}, Lf/a/e/f;->(Lf/k/a/b/k1/r;J)V new-instance v11, Lf/a/e/g; invoke-direct {v11}, Lf/a/e/g;->()V const/16 v19, -0x1 const/16 v20, 0x1 const/16 v22, 0x0 const/16 v0, 0x2710 const/16 v2, 0x7530 const/4 v3, 0x1 invoke-static {v3}, Lf/k/a/b/l1/e;->d(Z)V const-string v4, "bufferForPlaybackMs" const-string v5, "0" const/16 v6, 0x9c4 const/4 v7, 0x0 invoke-static {v6, v7, v4, v5}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V const-string v8, "bufferForPlaybackAfterRebufferMs" const/16 v15, 0x1388 invoke-static {v15, v7, v8, v5}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V const-string v12, "minBufferMs" invoke-static {v0, v6, v12, v4}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V invoke-static {v0, v15, v12, v8}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V const-string v14, "maxBufferMs" invoke-static {v2, v0, v14, v12}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V invoke-static {v3}, Lf/k/a/b/l1/e;->d(Z)V new-instance v13, Lf/k/a/b/k1/o; const/high16 v0, 0x10000 invoke-direct {v13, v3, v0}, Lf/k/a/b/k1/o;->(ZI)V new-instance v2, Lf/k/a/b/w; const/16 v0, 0x2710 const/16 v16, 0x7530 const/16 v17, 0x9c4 const/16 v18, 0x1388 move-object v12, v2 move-object/from16 v23, v14 move v14, v0 move v15, v0 move/from16 v21, v22 invoke-direct/range {v12 .. v22}, Lf/k/a/b/w;->(Lf/k/a/b/k1/o;IIIIIIZIZ)V const-string v0, "DefaultLoadControl.Build\u2026reateDefaultLoadControl()" invoke-static {v2, v0}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V new-instance v12, Lf/k/a/b/y; invoke-direct {v12, v1}, Lf/k/a/b/y;->(Landroid/content/Context;)V new-instance v13, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector; invoke-direct {v13, v1}, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector;->(Landroid/content/Context;)V invoke-static {v3}, Lf/k/a/b/l1/e;->a(Z)V invoke-static {v3}, Lf/k/a/b/l1/e;->a(Z)V const/16 v0, 0x3a98 invoke-static {v6, v7, v4, v5}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V const/16 v14, 0x1388 invoke-static {v14, v7, v8, v5}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V const-string v15, "minBufferAudioMs" invoke-static {v0, v6, v15, v4}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V const-string v3, "minBufferVideoMs" const v7, 0xc350 invoke-static {v7, v6, v3, v4}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V invoke-static {v0, v14, v15, v8}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V invoke-static {v7, v14, v3, v8}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V move-object/from16 v4, v23 invoke-static {v7, v0, v4, v15}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V invoke-static {v7, v7, v4, v3}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V const-string v3, "backBufferDurationMs" const/4 v4, 0x0 invoke-static {v4, v4, v3, v5}, Lf/k/a/b/w;->a(IILjava/lang/String;Ljava/lang/String;)V int-to-long v4, v0 invoke-static {v4, v5}, Lf/k/a/b/t;->a(J)J int-to-long v3, v7 invoke-static {v3, v4}, Lf/k/a/b/t;->a(J)J int-to-long v3, v7 invoke-static {v3, v4}, Lf/k/a/b/t;->a(J)J int-to-long v3, v6 invoke-static {v3, v4}, Lf/k/a/b/t;->a(J)J int-to-long v3, v14 invoke-static {v3, v4}, Lf/k/a/b/t;->a(J)J const/4 v0, 0x0 int-to-long v3, v0 invoke-static {v3, v4}, Lf/k/a/b/t;->a(J)J invoke-static/range {p1 .. p1}, Lf/k/a/b/k1/p;->a(Landroid/content/Context;)Lf/k/a/b/k1/p; move-result-object v5 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 v6, Lf/k/a/b/y0/a; sget-object v0, Lf/k/a/b/l1/g;->a:Lf/k/a/b/l1/g; invoke-direct {v6, v0}, Lf/k/a/b/y0/a;->(Lf/k/a/b/l1/g;)V sget-object v7, Lf/k/a/b/l1/g;->a:Lf/k/a/b/l1/g; const/4 v0, 0x1 invoke-static {v0}, Lf/k/a/b/l1/e;->d(Z)V invoke-static {v0}, Lf/k/a/b/l1/e;->d(Z)V new-instance v14, Lf/k/a/b/v0; move-object v0, v14 move-object/from16 v1, p1 move-object v4, v2 move-object v2, v12 move-object v3, v13 invoke-direct/range {v0 .. v8}, Lf/k/a/b/v0;->(Landroid/content/Context;Lf/k/a/b/y;Lf/k/a/b/i1/h;Lf/k/a/b/g0;Lf/k/a/b/k1/f;Lf/k/a/b/y0/a;Lf/k/a/b/l1/g;Landroid/os/Looper;)V const-string v0, "SimpleExoPlayer\n \u2026ntrol)\n .build()" invoke-static {v14, v0}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v14}, Lf/k/a/b/v0;->D()V iget-object v0, v14, Lf/k/a/b/v0;->c:Lf/k/a/b/b0; iget-object v0, v0, Lf/k/a/b/b0;->h:Ljava/util/concurrent/CopyOnWriteArrayList; new-instance v1, Lf/k/a/b/r$a; invoke-direct {v1, v11}, Lf/k/a/b/r$a;->(Lf/k/a/b/o0$b;)V invoke-virtual {v0, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->addIfAbsent(Ljava/lang/Object;)Z new-instance v0, Lcom/discord/player/AppMediaPlayer; invoke-static {}, Lh0/q/a;->b()Lrx/Scheduler; move-result-object v5 const-string v1, "Schedulers.computation()" invoke-static {v5, v1}, Lz/u/b/j;->checkExpressionValueIsNotNull(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;->(Lf/k/a/b/v0;Lf/a/e/g;Lf/k/a/b/k1/l$a;Lrx/Scheduler;Lcom/discord/utilities/logging/Logger;)V return-object v0 :cond_1 const-string v1, "logger" invoke-static {v1}, Lz/u/b/j;->a(Ljava/lang/String;)V throw v0 :cond_2 const-string v1, "context" invoke-static {v1}, Lz/u/b/j;->a(Ljava/lang/String;)V throw v0 .end method