Rabbit-R1/original r1/smali/smali_classes2/androidx/media3/exoplayer/ExoPlayerImpl$Api31.smali
2024-05-21 17:08:36 -04:00

70 lines
2.1 KiB
Smali

.class final Landroidx/media3/exoplayer/ExoPlayerImpl$Api31;
.super Ljava/lang/Object;
.source "ExoPlayerImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/media3/exoplayer/ExoPlayerImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "Api31"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 3269
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static registerMediaMetricsListener(Landroid/content/Context;Landroidx/media3/exoplayer/ExoPlayerImpl;Z)Landroidx/media3/exoplayer/analytics/PlayerId;
.locals 0
.line 3274
invoke-static {p0}, Landroidx/media3/exoplayer/analytics/MediaMetricsListener;->create(Landroid/content/Context;)Landroidx/media3/exoplayer/analytics/MediaMetricsListener;
move-result-object p0
if-nez p0, :cond_0
const-string p0, "ExoPlayerImpl"
const-string p1, "MediaMetricsService unavailable."
.line 3276
invoke-static {p0, p1}, Landroidx/media3/common/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)V
.line 3277
new-instance p0, Landroidx/media3/exoplayer/analytics/PlayerId;
sget-object p1, Landroid/media/metrics/LogSessionId;->LOG_SESSION_ID_NONE:Landroid/media/metrics/LogSessionId;
invoke-direct {p0, p1}, Landroidx/media3/exoplayer/analytics/PlayerId;-><init>(Landroid/media/metrics/LogSessionId;)V
return-object p0
:cond_0
if-eqz p2, :cond_1
.line 3280
invoke-virtual {p1, p0}, Landroidx/media3/exoplayer/ExoPlayerImpl;->addAnalyticsListener(Landroidx/media3/exoplayer/analytics/AnalyticsListener;)V
.line 3282
:cond_1
new-instance p1, Landroidx/media3/exoplayer/analytics/PlayerId;
invoke-virtual {p0}, Landroidx/media3/exoplayer/analytics/MediaMetricsListener;->getLogSessionId()Landroid/media/metrics/LogSessionId;
move-result-object p0
invoke-direct {p1, p0}, Landroidx/media3/exoplayer/analytics/PlayerId;-><init>(Landroid/media/metrics/LogSessionId;)V
return-object p1
.end method