WebPlayerView.smali

.class public Lim/tpelyyftgw/ui/components/WebPlayerView;
.super Landroid/view/ViewGroup;
.source "WebPlayerView.java"

# interfaces
.implements Lim/tpelyyftgw/ui/components/VideoPlayer$VideoPlayerDelegate;
.implements Landroid/media/AudioManager$OnAudioFocusChangeListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$CoubVideoTask;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchStreamVideoTask;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchClipVideoTask;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$AparatVideoTask;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$VimeoVideoTask;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$JavaScriptInterface;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$CallJavaResultInterface;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$JSExtractor;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$function;,
        Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;
    }
.end annotation


# static fields
.field private static final AUDIO_FOCUSED:I = 0x2

.field private static final AUDIO_NO_FOCUS_CAN_DUCK:I = 0x1

.field private static final AUDIO_NO_FOCUS_NO_DUCK:I = 0x0

.field private static final aparatFileListPattern:Ljava/util/regex/Pattern;

.field private static final aparatIdRegex:Ljava/util/regex/Pattern;

.field private static final coubIdRegex:Ljava/util/regex/Pattern;

.field private static final exprName:Ljava/lang/String; = "[a-zA-Z_$][a-zA-Z_$0-9]*"

.field private static final exprParensPattern:Ljava/util/regex/Pattern;

.field private static final jsPattern:Ljava/util/regex/Pattern;

.field private static lastContainerId:I

.field private static final playerIdPattern:Ljava/util/regex/Pattern;

.field private static final sigPattern:Ljava/util/regex/Pattern;

.field private static final sigPattern2:Ljava/util/regex/Pattern;

.field private static final stmtReturnPattern:Ljava/util/regex/Pattern;

.field private static final stmtVarPattern:Ljava/util/regex/Pattern;

.field private static final stsPattern:Ljava/util/regex/Pattern;

.field private static final twitchClipFilePattern:Ljava/util/regex/Pattern;

.field private static final twitchClipIdRegex:Ljava/util/regex/Pattern;

.field private static final twitchStreamIdRegex:Ljava/util/regex/Pattern;

.field private static final vimeoIdRegex:Ljava/util/regex/Pattern;

.field private static final youtubeIdRegex:Ljava/util/regex/Pattern;


# instance fields
.field private allowInlineAnimation:Z

.field private aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

.field private audioFocus:I

.field private backgroundPaint:Landroid/graphics/Paint;

.field private changedTextureView:Landroid/view/TextureView;

.field private changingTextureView:Z

.field private controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

.field private currentAlpha:F

.field private currentBitmap:Landroid/graphics/Bitmap;

.field private currentTask:Landroid/os/AsyncTask;

.field private currentYoutubeId:Ljava/lang/String;

.field private delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

.field private drawImage:Z

.field private firstFrameRendered:Z

.field private fragment_container_id:I

.field private fullscreenButton:Landroid/widget/ImageView;

.field private hasAudioFocus:Z

.field private inFullscreen:Z

.field private initFailed:Z

.field private initied:Z

.field private inlineButton:Landroid/widget/ImageView;

.field private interfaceName:Ljava/lang/String;

.field private isAutoplay:Z

.field private isCompleted:Z

.field private isInline:Z

.field private isLoading:Z

.field private isStream:Z

.field private lastUpdateTime:J

.field private playAudioType:Ljava/lang/String;

.field private playAudioUrl:Ljava/lang/String;

.field private playButton:Landroid/widget/ImageView;

.field private playVideoType:Ljava/lang/String;

.field private playVideoUrl:Ljava/lang/String;

.field private progressAnimation:Landroid/animation/AnimatorSet;

.field private progressRunnable:Ljava/lang/Runnable;

.field private progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

.field private resumeAudioOnFocusGain:Z

.field private seekToTime:I

.field private shareButton:Landroid/widget/ImageView;

.field private surfaceTextureListener:Landroid/view/TextureView$SurfaceTextureListener;

.field private switchToInlineRunnable:Ljava/lang/Runnable;

.field private switchingInlineMode:Z

.field private textureImageView:Landroid/widget/ImageView;

.field private textureView:Landroid/view/TextureView;

.field private textureViewContainer:Landroid/view/ViewGroup;

.field private videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

.field private waitingForFirstTextureUpload:I

.field private webView:Landroid/webkit/WebView;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .line 91
    const/16 v0, 0xfa1

    sput v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->lastContainerId:I

    .line 166
    const-string v0, "(?:youtube(?:-nocookie)?\\.com/(?:[^/\\n\\s]+/\\S+/|(?:v|e(?:mbed)?)/|\\S*?[?&]v=)|youtu\\.be/)([a-zA-Z0-9_-]{11})"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->youtubeIdRegex:Ljava/util/regex/Pattern;

    .line 167
    const-string v0, "https?://(?:(?:www|(player))\\.)?vimeo(pro)?\\.com/(?!(?:channels|album)/[^/?#]+/?(?:$|[?#])|[^/]+/review/|ondemand/)(?:.*?/)?(?:(?:play_redirect_hls|moogaloop\\.swf)\\?clip_id=)?(?:videos?/)?([0-9]+)(?:/[\\da-f]+)?/?(?:[?&].*)?(?:[#].*)?$"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->vimeoIdRegex:Ljava/util/regex/Pattern;

    .line 168
    const-string v0, "(?:coub:|https?://(?:coub\\.com/(?:view|embed|coubs)/|c-cdn\\.coub\\.com/fb-player\\.swf\\?.*\\bcoub(?:ID|id)=))([\\da-z]+)"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->coubIdRegex:Ljava/util/regex/Pattern;

    .line 169
    const-string v0, "^https?://(?:www\\.)?aparat\\.com/(?:v/|video/video/embed/videohash/)([a-zA-Z0-9]+)"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aparatIdRegex:Ljava/util/regex/Pattern;

    .line 170
    const-string v0, "https?://clips\\.twitch\\.tv/(?:[^/]+/)*([^/?#&]+)"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->twitchClipIdRegex:Ljava/util/regex/Pattern;

    .line 171
    const-string v0, "https?://(?:(?:www\\.)?twitch\\.tv/|player\\.twitch\\.tv/\\?.*?\\bchannel=)([^/#?]+)"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->twitchStreamIdRegex:Ljava/util/regex/Pattern;

    .line 173
    const-string v0, "fileList\\s*=\\s*JSON\\.parse\\(\'([^\']+)\'\\)"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aparatFileListPattern:Ljava/util/regex/Pattern;

    .line 175
    const-string v0, "clipInfo\\s*=\\s*(\\{[^\']+\\});"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->twitchClipFilePattern:Ljava/util/regex/Pattern;

    .line 177
    const-string v0, "\"sts\"\\s*:\\s*(\\d+)"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->stsPattern:Ljava/util/regex/Pattern;

    .line 178
    const-string v0, "\"assets\":.+?\"js\":\\s*(\"[^\"]+\")"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->jsPattern:Ljava/util/regex/Pattern;

    .line 179
    const-string v0, "\\.sig\\|\\|([a-zA-Z0-9$]+)\\("

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->sigPattern:Ljava/util/regex/Pattern;

    .line 180
    const-string v0, "[\"\']signature[\"\']\\s*,\\s*([a-zA-Z0-9$]+)\\("

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->sigPattern2:Ljava/util/regex/Pattern;

    .line 181
    const-string v0, "var\\s"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->stmtVarPattern:Ljava/util/regex/Pattern;

    .line 182
    const-string v0, "return(?:\\s+|$)"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->stmtReturnPattern:Ljava/util/regex/Pattern;

    .line 183
    const-string v0, "[()]"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->exprParensPattern:Ljava/util/regex/Pattern;

    .line 184
    const-string v0, ".*?-([a-zA-Z0-9_-]+)(?:/watch_as3|/html5player(?:-new)?|(?:/[a-z]{2}_[A-Z]{2})?/base)?\\.([a-z]+)$"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playerIdPattern:Ljava/util/regex/Pattern;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;ZZLim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;)V
    .registers 20
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "allowInline"    # Z
    .param p3, "allowShare"    # Z
    .param p4, "webPlayerViewDelegate"    # Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    .line 1514
    move-object v0, p0

    move-object/from16 v1, p1

    invoke-direct/range {p0 .. p1}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    .line 92
    sget v2, Lim/tpelyyftgw/ui/components/WebPlayerView;->lastContainerId:I

    add-int/lit8 v3, v2, 0x1

    sput v3, Lim/tpelyyftgw/ui/components/WebPlayerView;->lastContainerId:I

    iput v2, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fragment_container_id:I

    .line 116
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/4 v3, 0x0

    const/4 v4, 0x1

    const/16 v5, 0x15

    if-lt v2, v5, :cond_18

    const/4 v2, 0x1

    goto :goto_19

    :cond_18
    const/4 v2, 0x0

    :goto_19
    iput-boolean v2, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->allowInlineAnimation:Z

    .line 133
    new-instance v2, Landroid/graphics/Paint;

    invoke-direct {v2}, Landroid/graphics/Paint;-><init>()V

    iput-object v2, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->backgroundPaint:Landroid/graphics/Paint;

    .line 153
    new-instance v2, Lim/tpelyyftgw/ui/components/WebPlayerView$1;

    invoke-direct {v2, p0}, Lim/tpelyyftgw/ui/components/WebPlayerView$1;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    iput-object v2, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressRunnable:Ljava/lang/Runnable;

    .line 1137
    new-instance v2, Lim/tpelyyftgw/ui/components/WebPlayerView$2;

    invoke-direct {v2, p0}, Lim/tpelyyftgw/ui/components/WebPlayerView$2;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    iput-object v2, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->surfaceTextureListener:Landroid/view/TextureView$SurfaceTextureListener;

    .line 1187
    new-instance v2, Lim/tpelyyftgw/ui/components/WebPlayerView$3;

    invoke-direct {v2, p0}, Lim/tpelyyftgw/ui/components/WebPlayerView$3;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    iput-object v2, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->switchToInlineRunnable:Ljava/lang/Runnable;

    .line 1515
    invoke-virtual {p0, v3}, Lim/tpelyyftgw/ui/components/WebPlayerView;->setWillNotDraw(Z)V

    .line 1516
    move-object/from16 v2, p4

    iput-object v2, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    .line 1518
    iget-object v3, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->backgroundPaint:Landroid/graphics/Paint;

    const/high16 v5, -0x1000000

    invoke-virtual {v3, v5}, Landroid/graphics/Paint;->setColor(I)V

    .line 1520
    new-instance v3, Lim/tpelyyftgw/ui/components/WebPlayerView$4;

    invoke-direct {v3, p0, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView$4;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;Landroid/content/Context;)V

    iput-object v3, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    .line 1537
    const/16 v5, 0x11

    const/4 v6, -0x1

    invoke-static {v6, v6, v5}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v7

    invoke-virtual {p0, v3, v7}, Lim/tpelyyftgw/ui/components/WebPlayerView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1539
    const-string v3, "JavaScriptInterface"

    iput-object v3, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->interfaceName:Ljava/lang/String;

    .line 1540
    new-instance v3, Landroid/webkit/WebView;

    invoke-direct {v3, v1}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    iput-object v3, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->webView:Landroid/webkit/WebView;

    .line 1541
    new-instance v7, Lim/tpelyyftgw/ui/components/WebPlayerView$JavaScriptInterface;

    new-instance v8, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$gKu7X3I-H_WrYMfqR9zUnB_UTts;

    invoke-direct {v8, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$gKu7X3I-H_WrYMfqR9zUnB_UTts;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    invoke-direct {v7, p0, v8}, Lim/tpelyyftgw/ui/components/WebPlayerView$JavaScriptInterface;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;Lim/tpelyyftgw/ui/components/WebPlayerView$CallJavaResultInterface;)V

    iget-object v8, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->interfaceName:Ljava/lang/String;

    invoke-virtual {v3, v7, v8}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1548
    iget-object v3, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->webView:Landroid/webkit/WebView;

    invoke-virtual {v3}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v3

    .line 1549
    .local v3, "webSettings":Landroid/webkit/WebSettings;
    invoke-virtual {v3, v4}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 1550
    const-string v4, "utf-8"

    invoke-virtual {v3, v4}, Landroid/webkit/WebSettings;->setDefaultTextEncodingName(Ljava/lang/String;)V

    .line 1552
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    invoke-interface {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->getTextureViewContainer()Landroid/view/ViewGroup;

    move-result-object v4

    iput-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    .line 1554
    new-instance v4, Landroid/view/TextureView;

    invoke-direct {v4, v1}, Landroid/view/TextureView;-><init>(Landroid/content/Context;)V

    iput-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    .line 1555
    const/4 v7, 0x0

    invoke-virtual {v4, v7}, Landroid/view/TextureView;->setPivotX(F)V

    .line 1556
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v4, v7}, Landroid/view/TextureView;->setPivotY(F)V

    .line 1557
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    if-eqz v4, :cond_a0

    .line 1558
    iget-object v8, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v4, v8}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_ab

    .line 1560
    :cond_a0
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    iget-object v8, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-static {v6, v6, v5}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v9

    invoke-virtual {v4, v8, v9}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1563
    :goto_ab
    iget-boolean v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->allowInlineAnimation:Z

    if-eqz v4, :cond_d6

    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    if-eqz v4, :cond_d6

    .line 1564
    new-instance v4, Landroid/widget/ImageView;

    invoke-direct {v4, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    .line 1565
    const/high16 v8, -0x10000

    invoke-virtual {v4, v8}, Landroid/widget/ImageView;->setBackgroundColor(I)V

    .line 1566
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setPivotX(F)V

    .line 1567
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setPivotY(F)V

    .line 1568
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    const/4 v7, 0x4

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1569
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    iget-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    invoke-virtual {v4, v7}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 1572
    :cond_d6
    new-instance v4, Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-direct {v4}, Lim/tpelyyftgw/ui/components/VideoPlayer;-><init>()V

    iput-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    .line 1573
    invoke-virtual {v4, p0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->setDelegate(Lim/tpelyyftgw/ui/components/VideoPlayer$VideoPlayerDelegate;)V

    .line 1574
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    iget-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v4, v7}, Lim/tpelyyftgw/ui/components/VideoPlayer;->setTextureView(Landroid/view/TextureView;)V

    .line 1576
    new-instance v4, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-direct {v4, p0, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;Landroid/content/Context;)V

    iput-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    .line 1577
    iget-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    if-eqz v7, :cond_f6

    .line 1578
    invoke-virtual {v7, v4}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_ff

    .line 1580
    :cond_f6
    const/high16 v7, -0x40800000    # -1.0f

    invoke-static {v6, v7}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(IF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v7

    invoke-virtual {p0, v4, v7}, Lim/tpelyyftgw/ui/components/WebPlayerView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1583
    :goto_ff
    new-instance v4, Lim/tpelyyftgw/ui/components/RadialProgressView;

    invoke-direct {v4, v1}, Lim/tpelyyftgw/ui/components/RadialProgressView;-><init>(Landroid/content/Context;)V

    iput-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    .line 1584
    invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/components/RadialProgressView;->setProgressColor(I)V

    .line 1585
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    const/16 v6, 0x30

    invoke-static {v6, v6, v5}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v7

    invoke-virtual {p0, v4, v7}, Lim/tpelyyftgw/ui/components/WebPlayerView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1587
    new-instance v4, Landroid/widget/ImageView;

    invoke-direct {v4, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fullscreenButton:Landroid/widget/ImageView;

    .line 1588
    sget-object v7, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 1589
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    iget-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fullscreenButton:Landroid/widget/ImageView;

    const/high16 v8, 0x42600000    # 56.0f

    const/high16 v9, 0x42600000    # 56.0f

    const/16 v10, 0x55

    const/4 v11, 0x0

    const/4 v12, 0x0

    const/4 v13, 0x0

    const/high16 v14, 0x40a00000    # 5.0f

    invoke-static/range {v8 .. v14}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v8

    invoke-virtual {v4, v7, v8}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1590
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fullscreenButton:Landroid/widget/ImageView;

    new-instance v7, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$KIaT3bmgTVhkkRryMJhaA4B3NKs;

    invoke-direct {v7, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$KIaT3bmgTVhkkRryMJhaA4B3NKs;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1598
    new-instance v4, Landroid/widget/ImageView;

    invoke-direct {v4, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playButton:Landroid/widget/ImageView;

    .line 1599
    sget-object v7, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 1600
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    iget-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playButton:Landroid/widget/ImageView;

    invoke-static {v6, v6, v5}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v5

    invoke-virtual {v4, v7, v5}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1601
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playButton:Landroid/widget/ImageView;

    new-instance v5, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$68xlt8CbY9uuhDyBVnPsys3CfSg;

    invoke-direct {v5, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$68xlt8CbY9uuhDyBVnPsys3CfSg;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1617
    const/16 v4, 0x35

    const/16 v5, 0x38

    if-eqz p2, :cond_188

    .line 1618
    new-instance v7, Landroid/widget/ImageView;

    invoke-direct {v7, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inlineButton:Landroid/widget/ImageView;

    .line 1619
    sget-object v8, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v7, v8}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 1620
    iget-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    iget-object v8, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inlineButton:Landroid/widget/ImageView;

    invoke-static {v5, v6, v4}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v9

    invoke-virtual {v7, v8, v9}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1621
    iget-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inlineButton:Landroid/widget/ImageView;

    new-instance v8, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$OXA6qBricCPp7cx2uy5s2oEg9C8;

    invoke-direct {v8, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$OXA6qBricCPp7cx2uy5s2oEg9C8;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    invoke-virtual {v7, v8}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1675
    :cond_188
    if-eqz p3, :cond_1b3

    .line 1676
    new-instance v7, Landroid/widget/ImageView;

    invoke-direct {v7, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->shareButton:Landroid/widget/ImageView;

    .line 1677
    sget-object v8, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v7, v8}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 1678
    iget-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->shareButton:Landroid/widget/ImageView;

    const v8, 0x7f0801b2

    invoke-virtual {v7, v8}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 1679
    iget-object v7, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    iget-object v8, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->shareButton:Landroid/widget/ImageView;

    invoke-static {v5, v6, v4}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v4

    invoke-virtual {v7, v8, v4}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 1680
    iget-object v4, v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->shareButton:Landroid/widget/ImageView;

    new-instance v5, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$fu4wnI1FFptggPMMecdF66kih3c;

    invoke-direct {v5, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$WebPlayerView$fu4wnI1FFptggPMMecdF66kih3c;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1687
    :cond_1b3
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    .line 1688
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateFullscreenButton()V

    .line 1689
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateInlineButton()V

    .line 1690
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateShareButton()V

    .line 1691
    return-void
.end method

.method static synthetic access$000(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lim/tpelyyftgw/ui/components/VideoPlayer;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    return-object v0
.end method

.method static synthetic access$100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    return-object v0
.end method

.method static synthetic access$1000()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->sigPattern2:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method static synthetic access$1200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->interfaceName:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1300(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->initied:Z

    return v0
.end method

.method static synthetic access$1302(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Z

    .line 76
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->initied:Z

    return p1
.end method

.method static synthetic access$1402(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Ljava/lang/String;

    .line 76
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoUrl:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$1500(Lim/tpelyyftgw/ui/components/WebPlayerView;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoType:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1502(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Ljava/lang/String;

    .line 76
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoType:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$1600(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isStream:Z

    return v0
.end method

.method static synthetic access$1602(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Z

    .line 76
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isStream:Z

    return p1
.end method

.method static synthetic access$1700(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isAutoplay:Z

    return v0
.end method

.method static synthetic access$1800(Lim/tpelyyftgw/ui/components/WebPlayerView;)V
    .registers 1
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->preparePlayer()V

    return-void
.end method

.method static synthetic access$1900(Lim/tpelyyftgw/ui/components/WebPlayerView;ZZ)V
    .registers 3
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Z
    .param p2, "x2"    # Z

    .line 76
    invoke-direct {p0, p1, p2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->showProgress(ZZ)V

    return-void
.end method

.method static synthetic access$200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Ljava/lang/Runnable;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressRunnable:Ljava/lang/Runnable;

    return-object v0
.end method

.method static synthetic access$2000(Lim/tpelyyftgw/ui/components/WebPlayerView;)V
    .registers 1
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->onInitFailed()V

    return-void
.end method

.method static synthetic access$2100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/webkit/WebView;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->webView:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$2200()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aparatFileListPattern:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method static synthetic access$2300()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->twitchClipFilePattern:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method static synthetic access$2402(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Ljava/lang/String;

    .line 76
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playAudioUrl:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$2502(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Ljava/lang/String;

    .line 76
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playAudioType:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$2600(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changingTextureView:Z

    return v0
.end method

.method static synthetic access$2602(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Z

    .line 76
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changingTextureView:Z

    return p1
.end method

.method static synthetic access$2700(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->switchingInlineMode:Z

    return v0
.end method

.method static synthetic access$2702(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Z

    .line 76
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->switchingInlineMode:Z

    return p1
.end method

.method static synthetic access$2800(Lim/tpelyyftgw/ui/components/WebPlayerView;)I
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->waitingForFirstTextureUpload:I

    return v0
.end method

.method static synthetic access$2802(Lim/tpelyyftgw/ui/components/WebPlayerView;I)I
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # I

    .line 76
    iput p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->waitingForFirstTextureUpload:I

    return p1
.end method

.method static synthetic access$2900(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/view/TextureView;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    return-object v0
.end method

.method static synthetic access$300()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->exprParensPattern:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method static synthetic access$3000(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/view/TextureView;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changedTextureView:Landroid/view/TextureView;

    return-object v0
.end method

.method static synthetic access$3002(Lim/tpelyyftgw/ui/components/WebPlayerView;Landroid/view/TextureView;)Landroid/view/TextureView;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Landroid/view/TextureView;

    .line 76
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changedTextureView:Landroid/view/TextureView;

    return-object p1
.end method

.method static synthetic access$3100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/widget/ImageView;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$3200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/graphics/Bitmap;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method static synthetic access$3202(Lim/tpelyyftgw/ui/components/WebPlayerView;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Landroid/graphics/Bitmap;

    .line 76
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    return-object p1
.end method

.method static synthetic access$3300(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    return-object v0
.end method

.method static synthetic access$3400(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    return v0
.end method

.method static synthetic access$3402(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Z

    .line 76
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    return p1
.end method

.method static synthetic access$3500(Lim/tpelyyftgw/ui/components/WebPlayerView;)V
    .registers 1
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    return-void
.end method

.method static synthetic access$3600(Lim/tpelyyftgw/ui/components/WebPlayerView;)V
    .registers 1
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateShareButton()V

    return-void
.end method

.method static synthetic access$3700(Lim/tpelyyftgw/ui/components/WebPlayerView;)V
    .registers 1
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateFullscreenButton()V

    return-void
.end method

.method static synthetic access$3800(Lim/tpelyyftgw/ui/components/WebPlayerView;)V
    .registers 1
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateInlineButton()V

    return-void
.end method

.method static synthetic access$3900(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    return-object v0
.end method

.method static synthetic access$400()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->stmtVarPattern:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method static synthetic access$4000(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->allowInlineAnimation:Z

    return v0
.end method

.method static synthetic access$4200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    return v0
.end method

.method static synthetic access$4300(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->drawImage:Z

    return v0
.end method

.method static synthetic access$4400(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->firstFrameRendered:Z

    return v0
.end method

.method static synthetic access$4500(Lim/tpelyyftgw/ui/components/WebPlayerView;)F
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentAlpha:F

    return v0
.end method

.method static synthetic access$4502(Lim/tpelyyftgw/ui/components/WebPlayerView;F)F
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # F

    .line 76
    iput p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentAlpha:F

    return p1
.end method

.method static synthetic access$4600(Lim/tpelyyftgw/ui/components/WebPlayerView;)J
    .registers 3
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-wide v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->lastUpdateTime:J

    return-wide v0
.end method

.method static synthetic access$4602(Lim/tpelyyftgw/ui/components/WebPlayerView;J)J
    .registers 3
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # J

    .line 76
    iput-wide p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->lastUpdateTime:J

    return-wide p1
.end method

.method static synthetic access$4700(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/view/ViewGroup;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 76
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    return-object v0
.end method

.method static synthetic access$500()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->stmtReturnPattern:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method static synthetic access$5002(Lim/tpelyyftgw/ui/components/WebPlayerView;Landroid/animation/AnimatorSet;)Landroid/animation/AnimatorSet;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;
    .param p1, "x1"    # Landroid/animation/AnimatorSet;

    .line 76
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressAnimation:Landroid/animation/AnimatorSet;

    return-object p1
.end method

.method static synthetic access$600()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->stsPattern:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method static synthetic access$700()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->jsPattern:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method static synthetic access$800()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playerIdPattern:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method static synthetic access$900()Ljava/util/regex/Pattern;
    .registers 1

    .line 76
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->sigPattern:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method private checkAudioFocus()V
    .registers 4

    .line 1864
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->hasAudioFocus:Z

    if-nez v0, :cond_1b

    .line 1865
    sget-object v0, Lim/tpelyyftgw/messenger/ApplicationLoader;->applicationContext:Landroid/content/Context;

    const-string v1, "audio"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    .line 1866
    .local v0, "audioManager":Landroid/media/AudioManager;
    const/4 v1, 0x1

    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->hasAudioFocus:Z

    .line 1867
    const/4 v2, 0x3

    invoke-virtual {v0, p0, v2, v1}, Landroid/media/AudioManager;->requestAudioFocus(Landroid/media/AudioManager$OnAudioFocusChangeListener;II)I

    move-result v2

    if-ne v2, v1, :cond_1b

    .line 1868
    const/4 v1, 0x2

    iput v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->audioFocus:I

    .line 1871
    .end local v0    # "audioManager":Landroid/media/AudioManager;
    :cond_1b
    return-void
.end method

.method private getControlView()Landroid/view/View;
    .registers 2

    .line 1923
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    return-object v0
.end method

.method private getProgressView()Landroid/view/View;
    .registers 2

    .line 1927
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    return-object v0
.end method

.method private onInitFailed()V
    .registers 3

    .line 1694
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eq v0, p0, :cond_f

    .line 1695
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->setVisibility(I)V

    .line 1697
    :cond_f
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    invoke-interface {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->onInitFailed()V

    .line 1698
    return-void
.end method

.method private preparePlayer()V
    .registers 7

    .line 1944
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoUrl:Ljava/lang/String;

    if-nez v0, :cond_5

    .line 1945
    return-void

    .line 1947
    :cond_5
    if-eqz v0, :cond_1f

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playAudioUrl:Ljava/lang/String;

    if-eqz v1, :cond_1f

    .line 1948
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoType:Ljava/lang/String;

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playAudioUrl:Ljava/lang/String;

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playAudioType:Ljava/lang/String;

    invoke-virtual {v1, v0, v2, v3, v4}, Lim/tpelyyftgw/ui/components/VideoPlayer;->preparePlayerLoop(Landroid/net/Uri;Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;)V

    goto :goto_2c

    .line 1950
    :cond_1f
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoUrl:Ljava/lang/String;

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoType:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/ui/components/VideoPlayer;->preparePlayer(Landroid/net/Uri;Ljava/lang/String;)V

    .line 1952
    :goto_2c
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isAutoplay:Z

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->setPlayWhenReady(Z)V

    .line 1954
    const/4 v0, 0x0

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isLoading:Z

    .line 1956
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->getDuration()J

    move-result-wide v1

    const-wide v3, -0x7fffffffffffffffL    # -4.9E-324

    cmp-long v5, v1, v3

    if-eqz v5, :cond_55

    .line 1957
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->getDuration()J

    move-result-wide v1

    const-wide/16 v3, 0x3e8

    div-long/2addr v1, v3

    long-to-int v2, v1

    invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->setDuration(I)V

    goto :goto_5a

    .line 1959
    :cond_55
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->setDuration(I)V

    .line 1961
    :goto_5a
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateFullscreenButton()V

    .line 1962
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateShareButton()V

    .line 1963
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateInlineButton()V

    .line 1964
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->invalidate()V

    .line 1965
    iget v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->seekToTime:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_75

    .line 1966
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    mul-int/lit16 v0, v0, 0x3e8

    int-to-long v2, v0

    invoke-virtual {v1, v2, v3}, Lim/tpelyyftgw/ui/components/VideoPlayer;->seekTo(J)V

    .line 1968
    :cond_75
    return-void
.end method

.method private showProgress(ZZ)V
    .registers 9
    .param p1, "show"    # Z
    .param p2, "animated"    # Z

    .line 2303
    const/high16 v0, 0x3f800000    # 1.0f

    const/4 v1, 0x0

    if-eqz p2, :cond_43

    .line 2304
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressAnimation:Landroid/animation/AnimatorSet;

    if-eqz v2, :cond_c

    .line 2305
    invoke-virtual {v2}, Landroid/animation/AnimatorSet;->cancel()V

    .line 2307
    :cond_c
    new-instance v2, Landroid/animation/AnimatorSet;

    invoke-direct {v2}, Landroid/animation/AnimatorSet;-><init>()V

    iput-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressAnimation:Landroid/animation/AnimatorSet;

    .line 2308
    const/4 v3, 0x1

    new-array v4, v3, [Landroid/animation/Animator;

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    new-array v3, v3, [F

    if-eqz p1, :cond_1d

    goto :goto_1e

    :cond_1d
    const/4 v0, 0x0

    :goto_1e
    const/4 v1, 0x0

    aput v0, v3, v1

    const-string v0, "alpha"

    invoke-static {v5, v0, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    aput-object v0, v4, v1

    invoke-virtual {v2, v4}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V

    .line 2309
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressAnimation:Landroid/animation/AnimatorSet;

    const-wide/16 v1, 0x96

    invoke-virtual {v0, v1, v2}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;

    .line 2310
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressAnimation:Landroid/animation/AnimatorSet;

    new-instance v1, Lim/tpelyyftgw/ui/components/WebPlayerView$5;

    invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/WebPlayerView$5;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    invoke-virtual {v0, v1}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 2316
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressAnimation:Landroid/animation/AnimatorSet;

    invoke-virtual {v0}, Landroid/animation/AnimatorSet;->start()V

    goto :goto_4c

    .line 2318
    :cond_43
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    if-eqz p1, :cond_48

    goto :goto_49

    :cond_48
    const/4 v0, 0x0

    :goto_49
    invoke-virtual {v2, v0}, Lim/tpelyyftgw/ui/components/RadialProgressView;->setAlpha(F)V

    .line 2320
    :goto_4c
    return-void
.end method

.method private updateFullscreenButton()V
    .registers 9

    .line 1901
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlayerPrepared()Z

    move-result v0

    if-eqz v0, :cond_51

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    if-eqz v0, :cond_d

    goto :goto_51

    .line 1905
    :cond_d
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fullscreenButton:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1906
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    if-nez v0, :cond_34

    .line 1907
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fullscreenButton:Landroid/widget/ImageView;

    const v1, 0x7f080192

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 1908
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fullscreenButton:Landroid/widget/ImageView;

    const/high16 v1, 0x42600000    # 56.0f

    const/high16 v2, 0x42600000    # 56.0f

    const/16 v3, 0x55

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/high16 v7, 0x40a00000    # 5.0f

    invoke-static/range {v1 .. v7}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_50

    .line 1910
    :cond_34
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fullscreenButton:Landroid/widget/ImageView;

    const v1, 0x7f0801a5

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 1911
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fullscreenButton:Landroid/widget/ImageView;

    const/high16 v1, 0x42600000    # 56.0f

    const/high16 v2, 0x42600000    # 56.0f

    const/16 v3, 0x55

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/high16 v7, 0x3f800000    # 1.0f

    invoke-static/range {v1 .. v7}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1913
    :goto_50
    return-void

    .line 1902
    :cond_51
    :goto_51
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->fullscreenButton:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1903
    return-void
.end method

.method private updateFullscreenState(Z)V
    .registers 11
    .param p1, "byButton"    # Z

    .line 1977
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    if-nez v0, :cond_5

    .line 1978
    return-void

    .line 1980
    :cond_5
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateFullscreenButton()V

    .line 1981
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    if-nez v0, :cond_90

    .line 1982
    const/4 v1, 0x1

    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changingTextureView:Z

    .line 1983
    iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    if-nez v2, :cond_22

    .line 1984
    if-eqz v0, :cond_1b

    .line 1985
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_22

    .line 1987
    :cond_1b
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v0, v2}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->addView(Landroid/view/View;)V

    .line 1990
    :cond_22
    :goto_22
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    if-eqz v0, :cond_36

    .line 1991
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 1992
    .local v0, "viewGroup":Landroid/view/ViewGroup;
    if-eqz v0, :cond_35

    .line 1993
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1995
    .end local v0    # "viewGroup":Landroid/view/ViewGroup;
    :cond_35
    goto :goto_56

    .line 1996
    :cond_36
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 1997
    .local v0, "parent":Landroid/view/ViewGroup;
    if-eq v0, p0, :cond_56

    .line 1998
    if-eqz v0, :cond_47

    .line 1999
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 2001
    :cond_47
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    if-eqz v2, :cond_51

    .line 2002
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v2, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_56

    .line 2004
    :cond_51
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {p0, v2, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView;->addView(Landroid/view/View;I)V

    .line 2008
    .end local v0    # "parent":Landroid/view/ViewGroup;
    :cond_56
    :goto_56
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v0}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getAspectRatio()F

    move-result v6

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v0}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getVideoRotation()I

    move-result v7

    move v8, p1

    invoke-interface/range {v3 .. v8}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->onSwitchToFullscreen(Landroid/view/View;ZFIZ)Landroid/view/TextureView;

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changedTextureView:Landroid/view/TextureView;

    .line 2009
    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/TextureView;->setVisibility(I)V

    .line 2010
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    if-eqz v0, :cond_8a

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changedTextureView:Landroid/view/TextureView;

    if-eqz v0, :cond_8a

    .line 2011
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v0}, Landroid/view/TextureView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 2012
    .restart local v0    # "parent":Landroid/view/ViewGroup;
    if-eqz v0, :cond_8a

    .line 2013
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 2016
    .end local v0    # "parent":Landroid/view/ViewGroup;
    :cond_8a
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->access$4900(Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;)V

    goto :goto_d1

    .line 2018
    :cond_90
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    if-eqz v0, :cond_a4

    .line 2019
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v0}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 2020
    .local v0, "viewGroup":Landroid/view/ViewGroup;
    if-eqz v0, :cond_a3

    .line 2021
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 2023
    .end local v0    # "viewGroup":Landroid/view/ViewGroup;
    :cond_a3
    goto :goto_bb

    .line 2024
    :cond_a4
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v0}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 2025
    .local v0, "parent":Landroid/view/ViewGroup;
    if-eq v0, p0, :cond_bb

    .line 2026
    if-eqz v0, :cond_b5

    .line 2027
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 2029
    :cond_b5
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    const/4 v2, 0x0

    invoke-virtual {p0, v1, v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->addView(Landroid/view/View;I)V

    .line 2032
    .end local v0    # "parent":Landroid/view/ViewGroup;
    :cond_bb
    :goto_bb
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v0}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getAspectRatio()F

    move-result v6

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v0}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getVideoRotation()I

    move-result v7

    move v8, p1

    invoke-interface/range {v3 .. v8}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->onSwitchToFullscreen(Landroid/view/View;ZFIZ)Landroid/view/TextureView;

    .line 2034
    :goto_d1
    return-void
.end method

.method private updateInlineButton()V
    .registers 5

    .line 1931
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inlineButton:Landroid/widget/ImageView;

    if-nez v0, :cond_5

    .line 1932
    return-void

    .line 1934
    :cond_5
    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    if-eqz v1, :cond_d

    const v1, 0x7f080193

    goto :goto_10

    :cond_d
    const v1, 0x7f0801a6

    :goto_10
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 1935
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inlineButton:Landroid/widget/ImageView;

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlayerPrepared()Z

    move-result v1

    if-eqz v1, :cond_1f

    const/4 v1, 0x0

    goto :goto_21

    :cond_1f
    const/16 v1, 0x8

    :goto_21
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1936
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    const/16 v1, 0x35

    if-eqz v0, :cond_36

    .line 1937
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inlineButton:Landroid/widget/ImageView;

    const/16 v2, 0x28

    invoke-static {v2, v2, v1}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_43

    .line 1939
    :cond_36
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inlineButton:Landroid/widget/ImageView;

    const/16 v2, 0x38

    const/16 v3, 0x32

    invoke-static {v2, v3, v1}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1941
    :goto_43
    return-void
.end method

.method private updatePlayButton()V
    .registers 4

    .line 1848
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->access$4900(Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;)V

    .line 1849
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressRunnable:Ljava/lang/Runnable;

    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->cancelRunOnUIThread(Ljava/lang/Runnable;)V

    .line 1850
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlaying()Z

    move-result v0

    if-nez v0, :cond_38

    .line 1851
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isCompleted:Z

    if-eqz v0, :cond_27

    .line 1852
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playButton:Landroid/widget/ImageView;

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    if-eqz v1, :cond_20

    const v1, 0x7f08016a

    goto :goto_23

    :cond_20
    const v1, 0x7f080169

    :goto_23
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_52

    .line 1854
    :cond_27
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playButton:Landroid/widget/ImageView;

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    if-eqz v1, :cond_31

    const v1, 0x7f0801ac

    goto :goto_34

    :cond_31
    const v1, 0x7f0801aa

    :goto_34
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_52

    .line 1857
    :cond_38
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playButton:Landroid/widget/ImageView;

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    if-eqz v1, :cond_42

    const v1, 0x7f0801a8

    goto :goto_45

    :cond_42
    const v1, 0x7f0801a7

    :goto_45
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 1858
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressRunnable:Ljava/lang/Runnable;

    const-wide/16 v1, 0x1f4

    invoke-static {v0, v1, v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->runOnUIThread(Ljava/lang/Runnable;J)V

    .line 1859
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->checkAudioFocus()V

    .line 1861
    :goto_52
    return-void
.end method

.method private updateShareButton()V
    .registers 3

    .line 1916
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->shareButton:Landroid/widget/ImageView;

    if-nez v0, :cond_5

    .line 1917
    return-void

    .line 1919
    :cond_5
    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    if-nez v1, :cond_14

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlayerPrepared()Z

    move-result v1

    if-nez v1, :cond_12

    goto :goto_14

    :cond_12
    const/4 v1, 0x0

    goto :goto_16

    :cond_14
    :goto_14
    const/16 v1, 0x8

    :goto_16
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1920
    return-void
.end method


# virtual methods
.method public destroy()V
    .registers 3

    .line 2294
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->releasePlayer(Z)V

    .line 2295
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    if-eqz v0, :cond_11

    .line 2296
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/os/AsyncTask;->cancel(Z)Z

    .line 2297
    const/4 v0, 0x0

    iput-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    .line 2299
    :cond_11
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->webView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->stopLoading()V

    .line 2300
    return-void
.end method

.method protected downloadUrlContent(Landroid/os/AsyncTask;Ljava/lang/String;)Ljava/lang/String;
    .registers 5
    .param p1, "parentTask"    # Landroid/os/AsyncTask;
    .param p2, "url"    # Ljava/lang/String;

    .line 438
    const/4 v0, 0x0

    const/4 v1, 0x1

    invoke-virtual {p0, p1, p2, v0, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView;->downloadUrlContent(Landroid/os/AsyncTask;Ljava/lang/String;Ljava/util/HashMap;Z)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected downloadUrlContent(Landroid/os/AsyncTask;Ljava/lang/String;Ljava/util/HashMap;Z)Ljava/lang/String;
    .registers 28
    .param p1, "parentTask"    # Landroid/os/AsyncTask;
    .param p2, "url"    # Ljava/lang/String;
    .param p4, "tryGzip"    # Z
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/os/AsyncTask;",
            "Ljava/lang/String;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;Z)",
            "Ljava/lang/String;"
        }
    .end annotation

    .line 442
    .local p3, "headers":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v0, "ISO-8859-1,utf-8;q=0.7,*;q=0.7"

    const-string v1, "Accept-Charset"

    const-string v2, "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"

    const-string v3, "Accept"

    const-string v4, "en-us,en;q=0.5"

    const-string v5, "Accept-Language"

    const-string v6, "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)"

    const-string v7, "User-Agent"

    const/4 v8, 0x1

    .line 443
    .local v8, "canRetry":Z
    const/4 v9, 0x0

    .line 444
    .local v9, "httpConnectionStream":Ljava/io/InputStream;
    const/4 v10, 0x0

    .line 445
    .local v10, "done":Z
    const/4 v11, 0x0

    .line 446
    .local v11, "result":Ljava/lang/StringBuilder;
    const/4 v12, 0x0

    .line 448
    .local v12, "httpConnection":Ljava/net/URLConnection;
    :try_start_15
    new-instance v13, Ljava/net/URL;
    :try_end_17
    .catchall {:try_start_15 .. :try_end_17} :catchall_15e

    move-object/from16 v14, p2

    :try_start_19
    invoke-direct {v13, v14}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    .line 449
    .local v13, "downloadUrl":Ljava/net/URL;
    invoke-virtual {v13}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v15
    :try_end_20
    .catchall {:try_start_19 .. :try_end_20} :catchall_15c

    move-object v12, v15

    .line 450
    :try_start_21
    invoke-virtual {v12, v7, v6}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_24
    .catchall {:try_start_21 .. :try_end_24} :catchall_152

    .line 451
    const-string v15, "gzip, deflate"

    move/from16 v16, v8

    .end local v8    # "canRetry":Z
    .local v16, "canRetry":Z
    const-string v8, "Accept-Encoding"

    if-eqz p4, :cond_37

    .line 452
    :try_start_2c
    invoke-virtual {v12, v8, v15}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2f
    .catchall {:try_start_2c .. :try_end_2f} :catchall_30

    goto :goto_37

    .line 507
    .end local v13    # "downloadUrl":Ljava/net/URL;
    :catchall_30
    move-exception v0

    move/from16 v20, v10

    move-object/from16 v21, v11

    goto/16 :goto_167

    .line 454
    .restart local v13    # "downloadUrl":Ljava/net/URL;
    :cond_37
    :goto_37
    :try_start_37
    invoke-virtual {v12, v5, v4}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 455
    invoke-virtual {v12, v3, v2}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 456
    invoke-virtual {v12, v1, v0}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_40
    .catchall {:try_start_37 .. :try_end_40} :catchall_14a

    .line 457
    if-eqz p3, :cond_83

    .line 458
    :try_start_42
    invoke-virtual/range {p3 .. p3}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v17

    invoke-interface/range {v17 .. v17}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v17

    :goto_4a
    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-eqz v18, :cond_77

    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v18

    check-cast v18, Ljava/util/Map$Entry;

    .line 459
    .local v18, "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;"
    invoke-interface/range {v18 .. v18}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v19
    :try_end_5a
    .catchall {:try_start_42 .. :try_end_5a} :catchall_7c

    move/from16 v20, v10

    .end local v10    # "done":Z
    .local v20, "done":Z
    :try_start_5c
    move-object/from16 v10, v19

    check-cast v10, Ljava/lang/String;

    invoke-interface/range {v18 .. v18}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v19
    :try_end_64
    .catchall {:try_start_5c .. :try_end_64} :catchall_72

    move-object/from16 v21, v11

    .end local v11    # "result":Ljava/lang/StringBuilder;
    .local v21, "result":Ljava/lang/StringBuilder;
    :try_start_66
    move-object/from16 v11, v19

    check-cast v11, Ljava/lang/String;

    invoke-virtual {v12, v10, v11}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_6d
    .catchall {:try_start_66 .. :try_end_6d} :catchall_144

    .line 460
    .end local v18    # "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;"
    move/from16 v10, v20

    move-object/from16 v11, v21

    goto :goto_4a

    .line 507
    .end local v13    # "downloadUrl":Ljava/net/URL;
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    :catchall_72
    move-exception v0

    move-object/from16 v21, v11

    .end local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    goto/16 :goto_167

    .line 458
    .end local v20    # "done":Z
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .restart local v10    # "done":Z
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v13    # "downloadUrl":Ljava/net/URL;
    :cond_77
    move/from16 v20, v10

    move-object/from16 v21, v11

    .end local v10    # "done":Z
    .end local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v20    # "done":Z
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    goto :goto_87

    .line 507
    .end local v13    # "downloadUrl":Ljava/net/URL;
    .end local v20    # "done":Z
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .restart local v10    # "done":Z
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    :catchall_7c
    move-exception v0

    move/from16 v20, v10

    move-object/from16 v21, v11

    .end local v10    # "done":Z
    .end local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v20    # "done":Z
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    goto/16 :goto_167

    .line 457
    .end local v20    # "done":Z
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .restart local v10    # "done":Z
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v13    # "downloadUrl":Ljava/net/URL;
    :cond_83
    move/from16 v20, v10

    move-object/from16 v21, v11

    .line 462
    .end local v10    # "done":Z
    .end local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v20    # "done":Z
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    :goto_87
    const/16 v10, 0x1388

    :try_start_89
    invoke-virtual {v12, v10}, Ljava/net/URLConnection;->setConnectTimeout(I)V

    .line 463
    invoke-virtual {v12, v10}, Ljava/net/URLConnection;->setReadTimeout(I)V

    .line 464
    instance-of v10, v12, Ljava/net/HttpURLConnection;

    if-eqz v10, :cond_10f

    .line 465
    move-object v10, v12

    check-cast v10, Ljava/net/HttpURLConnection;

    .line 466
    .local v10, "httpURLConnection":Ljava/net/HttpURLConnection;
    const/4 v11, 0x1

    invoke-virtual {v10, v11}, Ljava/net/HttpURLConnection;->setInstanceFollowRedirects(Z)V

    .line 467
    invoke-virtual {v10}, Ljava/net/HttpURLConnection;->getResponseCode()I

    move-result v11
    :try_end_9e
    .catchall {:try_start_89 .. :try_end_9e} :catchall_146

    .line 468
    .local v11, "status":I
    move-object/from16 v17, v12

    .end local v12    # "httpConnection":Ljava/net/URLConnection;
    .local v17, "httpConnection":Ljava/net/URLConnection;
    const/16 v12, 0x12e

    if-eq v11, v12, :cond_ac

    const/16 v12, 0x12d

    if-eq v11, v12, :cond_ac

    const/16 v12, 0x12f

    if-ne v11, v12, :cond_111

    .line 469
    :cond_ac
    :try_start_ac
    const-string v12, "Location"

    invoke-virtual {v10, v12}, Ljava/net/HttpURLConnection;->getHeaderField(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 470
    .local v12, "newUrl":Ljava/lang/String;
    move/from16 v18, v11

    .end local v11    # "status":I
    .local v18, "status":I
    const-string v11, "Set-Cookie"

    invoke-virtual {v10, v11}, Ljava/net/HttpURLConnection;->getHeaderField(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 471
    .local v11, "cookies":Ljava/lang/String;
    move-object/from16 v19, v10

    .end local v10    # "httpURLConnection":Ljava/net/HttpURLConnection;
    .local v19, "httpURLConnection":Ljava/net/HttpURLConnection;
    new-instance v10, Ljava/net/URL;

    invoke-direct {v10, v12}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    move-object v13, v10

    .line 472
    invoke-virtual {v13}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v10
    :try_end_c6
    .catchall {:try_start_ac .. :try_end_c6} :catchall_10a

    .line 473
    .end local v17    # "httpConnection":Ljava/net/URLConnection;
    .local v10, "httpConnection":Ljava/net/URLConnection;
    move-object/from16 v22, v12

    .end local v12    # "newUrl":Ljava/lang/String;
    .local v22, "newUrl":Ljava/lang/String;
    :try_start_c8
    const-string v12, "Cookie"

    invoke-virtual {v10, v12, v11}, Ljava/net/URLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 474
    invoke-virtual {v10, v7, v6}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 475
    if-eqz p4, :cond_d5

    .line 476
    invoke-virtual {v10, v8, v15}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 478
    :cond_d5
    invoke-virtual {v10, v5, v4}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 479
    invoke-virtual {v10, v3, v2}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 480
    invoke-virtual {v10, v1, v0}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 481
    if-eqz p3, :cond_104

    .line 482
    invoke-virtual/range {p3 .. p3}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_e8
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_104

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 483
    .local v1, "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;"
    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v10, v2, v3}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_103
    .catchall {:try_start_c8 .. :try_end_103} :catchall_106

    .line 484
    .end local v1    # "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;"
    goto :goto_e8

    .line 488
    .end local v11    # "cookies":Ljava/lang/String;
    .end local v18    # "status":I
    .end local v19    # "httpURLConnection":Ljava/net/HttpURLConnection;
    .end local v22    # "newUrl":Ljava/lang/String;
    :cond_104
    move-object v12, v10

    goto :goto_113

    .line 507
    .end local v13    # "downloadUrl":Ljava/net/URL;
    :catchall_106
    move-exception v0

    move-object v12, v10

    goto/16 :goto_167

    .end local v10    # "httpConnection":Ljava/net/URLConnection;
    .restart local v17    # "httpConnection":Ljava/net/URLConnection;
    :catchall_10a
    move-exception v0

    move-object/from16 v12, v17

    goto/16 :goto_167

    .line 464
    .end local v17    # "httpConnection":Ljava/net/URLConnection;
    .local v12, "httpConnection":Ljava/net/URLConnection;
    .restart local v13    # "downloadUrl":Ljava/net/URL;
    :cond_10f
    move-object/from16 v17, v12

    .line 488
    .end local v12    # "httpConnection":Ljava/net/URLConnection;
    .restart local v17    # "httpConnection":Ljava/net/URLConnection;
    :cond_111
    move-object/from16 v12, v17

    .end local v17    # "httpConnection":Ljava/net/URLConnection;
    .restart local v12    # "httpConnection":Ljava/net/URLConnection;
    :goto_113
    :try_start_113
    invoke-virtual {v12}, Ljava/net/URLConnection;->connect()V
    :try_end_116
    .catchall {:try_start_113 .. :try_end_116} :catchall_144

    .line 489
    if-eqz p4, :cond_13b

    .line 491
    :try_start_118
    new-instance v0, Ljava/util/zip/GZIPInputStream;

    invoke-virtual {v12}, Ljava/net/URLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_121
    .catch Ljava/lang/Exception; {:try_start_118 .. :try_end_121} :catch_123
    .catchall {:try_start_118 .. :try_end_121} :catchall_144

    .line 503
    .end local v9    # "httpConnectionStream":Ljava/io/InputStream;
    .local v0, "httpConnectionStream":Ljava/io/InputStream;
    :goto_121
    move-object v9, v0

    goto :goto_140

    .line 492
    .end local v0    # "httpConnectionStream":Ljava/io/InputStream;
    .restart local v9    # "httpConnectionStream":Ljava/io/InputStream;
    :catch_123
    move-exception v0

    move-object v1, v0

    .line 494
    .local v1, "e":Ljava/lang/Exception;
    if-eqz v9, :cond_12d

    .line 495
    :try_start_127
    invoke-virtual {v9}, Ljava/io/InputStream;->close()V
    :try_end_12a
    .catch Ljava/lang/Exception; {:try_start_127 .. :try_end_12a} :catch_12b
    .catchall {:try_start_127 .. :try_end_12a} :catchall_144

    goto :goto_12d

    .line 497
    :catch_12b
    move-exception v0

    goto :goto_12e

    .line 499
    :cond_12d
    :goto_12d
    nop

    .line 500
    :goto_12e
    :try_start_12e
    invoke-virtual {v13}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v0

    move-object v12, v0

    .line 501
    invoke-virtual {v12}, Ljava/net/URLConnection;->connect()V

    .line 502
    invoke-virtual {v12}, Ljava/net/URLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v0

    .end local v1    # "e":Ljava/lang/Exception;
    .end local v9    # "httpConnectionStream":Ljava/io/InputStream;
    .restart local v0    # "httpConnectionStream":Ljava/io/InputStream;
    goto :goto_121

    .line 505
    .end local v0    # "httpConnectionStream":Ljava/io/InputStream;
    .restart local v9    # "httpConnectionStream":Ljava/io/InputStream;
    :cond_13b
    invoke-virtual {v12}, Ljava/net/URLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v0
    :try_end_13f
    .catchall {:try_start_12e .. :try_end_13f} :catchall_144

    move-object v9, v0

    .line 522
    .end local v13    # "downloadUrl":Ljava/net/URL;
    :goto_140
    move/from16 v8, v16

    goto/16 :goto_1a0

    .line 507
    :catchall_144
    move-exception v0

    goto :goto_167

    :catchall_146
    move-exception v0

    move-object/from16 v17, v12

    .end local v12    # "httpConnection":Ljava/net/URLConnection;
    .restart local v17    # "httpConnection":Ljava/net/URLConnection;
    goto :goto_167

    .end local v17    # "httpConnection":Ljava/net/URLConnection;
    .end local v20    # "done":Z
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .local v10, "done":Z
    .local v11, "result":Ljava/lang/StringBuilder;
    .restart local v12    # "httpConnection":Ljava/net/URLConnection;
    :catchall_14a
    move-exception v0

    move/from16 v20, v10

    move-object/from16 v21, v11

    move-object/from16 v17, v12

    .end local v10    # "done":Z
    .end local v11    # "result":Ljava/lang/StringBuilder;
    .end local v12    # "httpConnection":Ljava/net/URLConnection;
    .restart local v17    # "httpConnection":Ljava/net/URLConnection;
    .restart local v20    # "done":Z
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    goto :goto_167

    .end local v16    # "canRetry":Z
    .end local v17    # "httpConnection":Ljava/net/URLConnection;
    .end local v20    # "done":Z
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .restart local v8    # "canRetry":Z
    .restart local v10    # "done":Z
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v12    # "httpConnection":Ljava/net/URLConnection;
    :catchall_152
    move-exception v0

    move/from16 v16, v8

    move/from16 v20, v10

    move-object/from16 v21, v11

    move-object/from16 v17, v12

    .end local v8    # "canRetry":Z
    .end local v10    # "done":Z
    .end local v11    # "result":Ljava/lang/StringBuilder;
    .end local v12    # "httpConnection":Ljava/net/URLConnection;
    .restart local v16    # "canRetry":Z
    .restart local v17    # "httpConnection":Ljava/net/URLConnection;
    .restart local v20    # "done":Z
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    goto :goto_167

    .end local v16    # "canRetry":Z
    .end local v17    # "httpConnection":Ljava/net/URLConnection;
    .end local v20    # "done":Z
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .restart local v8    # "canRetry":Z
    .restart local v10    # "done":Z
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v12    # "httpConnection":Ljava/net/URLConnection;
    :catchall_15c
    move-exception v0

    goto :goto_161

    :catchall_15e
    move-exception v0

    move-object/from16 v14, p2

    :goto_161
    move/from16 v16, v8

    move/from16 v20, v10

    move-object/from16 v21, v11

    .line 508
    .end local v8    # "canRetry":Z
    .end local v10    # "done":Z
    .end local v11    # "result":Ljava/lang/StringBuilder;
    .local v0, "e":Ljava/lang/Throwable;
    .restart local v16    # "canRetry":Z
    .restart local v20    # "done":Z
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    :goto_167
    instance-of v1, v0, Ljava/net/SocketTimeoutException;

    if-eqz v1, :cond_174

    .line 509
    invoke-static {}, Lim/tpelyyftgw/messenger/ApplicationLoader;->isNetworkOnline()Z

    move-result v1

    if-eqz v1, :cond_19b

    .line 510
    const/4 v1, 0x0

    move v8, v1

    .end local v16    # "canRetry":Z
    .local v1, "canRetry":Z
    goto :goto_19d

    .line 512
    .end local v1    # "canRetry":Z
    .restart local v16    # "canRetry":Z
    :cond_174
    instance-of v1, v0, Ljava/net/UnknownHostException;

    if-eqz v1, :cond_17b

    .line 513
    const/4 v1, 0x0

    move v8, v1

    .end local v16    # "canRetry":Z
    .restart local v1    # "canRetry":Z
    goto :goto_19d

    .line 514
    .end local v1    # "canRetry":Z
    .restart local v16    # "canRetry":Z
    :cond_17b
    instance-of v1, v0, Ljava/net/SocketException;

    if-eqz v1, :cond_194

    .line 515
    invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_19b

    invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v1

    const-string v2, "ECONNRESET"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_19b

    .line 516
    const/4 v1, 0x0

    move v8, v1

    .end local v16    # "canRetry":Z
    .restart local v1    # "canRetry":Z
    goto :goto_19d

    .line 518
    .end local v1    # "canRetry":Z
    .restart local v16    # "canRetry":Z
    :cond_194
    instance-of v1, v0, Ljava/io/FileNotFoundException;

    if-eqz v1, :cond_19b

    .line 519
    const/4 v1, 0x0

    move v8, v1

    .end local v16    # "canRetry":Z
    .restart local v1    # "canRetry":Z
    goto :goto_19d

    .line 521
    .end local v1    # "canRetry":Z
    .restart local v16    # "canRetry":Z
    :cond_19b
    move/from16 v8, v16

    .end local v16    # "canRetry":Z
    .restart local v8    # "canRetry":Z
    :goto_19d
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 524
    .end local v0    # "e":Ljava/lang/Throwable;
    :goto_1a0
    if-eqz v8, :cond_210

    .line 526
    :try_start_1a2
    instance-of v0, v12, Ljava/net/HttpURLConnection;

    if-eqz v0, :cond_1b3

    .line 527
    move-object v0, v12

    check-cast v0, Ljava/net/HttpURLConnection;

    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->getResponseCode()I

    move-result v0
    :try_end_1ad
    .catch Ljava/lang/Exception; {:try_start_1a2 .. :try_end_1ad} :catch_1b4

    .line 528
    .local v0, "code":I
    const/16 v1, 0xc8

    if-eq v0, v1, :cond_1b3

    const/16 v1, 0xca

    .line 534
    .end local v0    # "code":I
    :cond_1b3
    goto :goto_1b8

    .line 532
    :catch_1b4
    move-exception v0

    .line 533
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 536
    .end local v0    # "e":Ljava/lang/Exception;
    :goto_1b8
    if-eqz v9, :cond_1fe

    .line 538
    const v0, 0x8000

    :try_start_1bd
    new-array v0, v0, [B
    :try_end_1bf
    .catchall {:try_start_1bd .. :try_end_1bf} :catchall_1f5

    move-object v1, v0

    move-object/from16 v11, v21

    .line 540
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .local v1, "data":[B
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    :goto_1c2
    :try_start_1c2
    invoke-virtual/range {p1 .. p1}, Landroid/os/AsyncTask;->isCancelled()Z

    move-result v0
    :try_end_1c6
    .catchall {:try_start_1c2 .. :try_end_1c6} :catchall_1f3

    if-eqz v0, :cond_1c9

    .line 541
    goto :goto_1e9

    .line 544
    :cond_1c9
    :try_start_1c9
    invoke-virtual {v9, v1}, Ljava/io/InputStream;->read([B)I

    move-result v0

    .line 545
    .local v0, "read":I
    if-lez v0, :cond_1e3

    .line 546
    if-nez v11, :cond_1d7

    .line 547
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    move-object v11, v2

    .line 549
    :cond_1d7
    new-instance v2, Ljava/lang/String;

    const/4 v3, 0x0

    sget-object v4, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;

    invoke-direct {v2, v1, v3, v0, v4}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V

    invoke-virtual {v11, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_1e2
    .catch Ljava/lang/Exception; {:try_start_1c9 .. :try_end_1e2} :catch_1ec
    .catchall {:try_start_1c9 .. :try_end_1e2} :catchall_1f3

    .line 559
    .end local v0    # "read":I
    goto :goto_1c2

    .line 550
    .restart local v0    # "read":I
    :cond_1e3
    const/4 v2, -0x1

    if-ne v0, v2, :cond_1e8

    .line 551
    const/4 v10, 0x1

    .line 552
    .end local v20    # "done":Z
    .restart local v10    # "done":Z
    goto :goto_1f2

    .line 554
    .end local v10    # "done":Z
    .restart local v20    # "done":Z
    :cond_1e8
    nop

    .line 563
    .end local v0    # "read":I
    .end local v1    # "data":[B
    :goto_1e9
    move/from16 v10, v20

    goto :goto_1f2

    .line 556
    .restart local v1    # "data":[B
    :catch_1ec
    move-exception v0

    .line 557
    .local v0, "e":Ljava/lang/Exception;
    :try_start_1ed
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
    :try_end_1f0
    .catchall {:try_start_1ed .. :try_end_1f0} :catchall_1f3

    .line 558
    move/from16 v10, v20

    .line 563
    .end local v0    # "e":Ljava/lang/Exception;
    .end local v1    # "data":[B
    .end local v20    # "done":Z
    .restart local v10    # "done":Z
    :goto_1f2
    goto :goto_202

    .line 561
    .end local v10    # "done":Z
    .restart local v20    # "done":Z
    :catchall_1f3
    move-exception v0

    goto :goto_1f8

    .end local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    :catchall_1f5
    move-exception v0

    move-object/from16 v11, v21

    .line 562
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .local v0, "e":Ljava/lang/Throwable;
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    :goto_1f8
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    move/from16 v10, v20

    goto :goto_202

    .line 536
    .end local v0    # "e":Ljava/lang/Throwable;
    .end local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    :cond_1fe
    move/from16 v10, v20

    move-object/from16 v11, v21

    .line 567
    .end local v20    # "done":Z
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .restart local v10    # "done":Z
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    :goto_202
    if-eqz v9, :cond_20f

    .line 568
    :try_start_204
    invoke-virtual {v9}, Ljava/io/InputStream;->close()V
    :try_end_207
    .catchall {:try_start_204 .. :try_end_207} :catchall_208

    goto :goto_20f

    .line 570
    :catchall_208
    move-exception v0

    move-object v1, v0

    move-object v0, v1

    .line 571
    .restart local v0    # "e":Ljava/lang/Throwable;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    goto :goto_214

    .line 572
    .end local v0    # "e":Ljava/lang/Throwable;
    :cond_20f
    :goto_20f
    goto :goto_214

    .line 524
    .end local v10    # "done":Z
    .end local v11    # "result":Ljava/lang/StringBuilder;
    .restart local v20    # "done":Z
    .restart local v21    # "result":Ljava/lang/StringBuilder;
    :cond_210
    move/from16 v10, v20

    move-object/from16 v11, v21

    .line 574
    .end local v20    # "done":Z
    .end local v21    # "result":Ljava/lang/StringBuilder;
    .restart local v10    # "done":Z
    .restart local v11    # "result":Ljava/lang/StringBuilder;
    :goto_214
    if-eqz v10, :cond_21b

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_21c

    :cond_21b
    const/4 v0, 0x0

    :goto_21c
    return-object v0
.end method

.method public enterFullscreen()V
    .registers 2

    .line 2054
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    if-eqz v0, :cond_5

    .line 2055
    return-void

    .line 2057
    :cond_5
    const/4 v0, 0x1

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    .line 2058
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateInlineButton()V

    .line 2059
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateFullscreenState(Z)V

    .line 2060
    return-void
.end method

.method public exitFullscreen()V
    .registers 2

    .line 2037
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    if-nez v0, :cond_5

    .line 2038
    return-void

    .line 2040
    :cond_5
    const/4 v0, 0x0

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    .line 2041
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateInlineButton()V

    .line 2042
    invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateFullscreenState(Z)V

    .line 2043
    return-void
.end method

.method public getAspectRatioView()Landroid/view/View;
    .registers 2

    .line 2278
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    return-object v0
.end method

.method public getControlsView()Landroid/view/View;
    .registers 2

    .line 2290
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    return-object v0
.end method

.method public getTextureImageView()Landroid/widget/ImageView;
    .registers 2

    .line 2286
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    return-object v0
.end method

.method public getTextureView()Landroid/view/TextureView;
    .registers 2

    .line 2282
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    return-object v0
.end method

.method public getYouTubeVideoId(Ljava/lang/String;)Ljava/lang/String;
    .registers 5
    .param p1, "url"    # Ljava/lang/String;

    .line 2067
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->youtubeIdRegex:Ljava/util/regex/Pattern;

    invoke-virtual {v0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 2068
    .local v0, "matcher":Ljava/util/regex/Matcher;
    const/4 v1, 0x0

    .line 2069
    .local v1, "id":Ljava/lang/String;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z

    move-result v2

    if-eqz v2, :cond_12

    .line 2070
    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v1

    .line 2072
    :cond_12
    return-object v1
.end method

.method public getYoutubeId()Ljava/lang/String;
    .registers 2

    .line 1723
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentYoutubeId:Ljava/lang/String;

    return-object v0
.end method

.method public isInFullscreen()Z
    .registers 2

    .line 2063
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    return v0
.end method

.method public isInitied()Z
    .registers 2

    .line 2046
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->initied:Z

    return v0
.end method

.method public isInline()Z
    .registers 2

    .line 2050
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    if-nez v0, :cond_b

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->switchingInlineMode:Z

    if-eqz v0, :cond_9

    goto :goto_b

    :cond_9
    const/4 v0, 0x0

    goto :goto_c

    :cond_b
    :goto_b
    const/4 v0, 0x1

    :goto_c
    return v0
.end method

.method public synthetic lambda$new$0$WebPlayerView(Ljava/lang/String;)V
    .registers 4
    .param p1, "value"    # Ljava/lang/String;

    .line 1542
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    if-eqz v0, :cond_15

    invoke-virtual {v0}, Landroid/os/AsyncTask;->isCancelled()Z

    move-result v0

    if-nez v0, :cond_15

    .line 1543
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    instance-of v1, v0, Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;

    if-eqz v1, :cond_15

    .line 1544
    check-cast v0, Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;

    invoke-static {v0, p1}, Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;->access$5100(Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;Ljava/lang/String;)V

    .line 1547
    :cond_15
    return-void
.end method

.method public synthetic lambda$new$1$WebPlayerView(Landroid/view/View;)V
    .registers 4
    .param p1, "v"    # Landroid/view/View;

    .line 1591
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->initied:Z

    if-eqz v0, :cond_1b

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changingTextureView:Z

    if-nez v0, :cond_1b

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->switchingInlineMode:Z

    if-nez v0, :cond_1b

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->firstFrameRendered:Z

    if-nez v0, :cond_11

    goto :goto_1b

    .line 1594
    :cond_11
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    const/4 v1, 0x1

    xor-int/2addr v0, v1

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    .line 1595
    invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateFullscreenState(Z)V

    .line 1596
    return-void

    .line 1592
    :cond_1b
    :goto_1b
    return-void
.end method

.method public synthetic lambda$new$2$WebPlayerView(Landroid/view/View;)V
    .registers 3
    .param p1, "v"    # Landroid/view/View;

    .line 1602
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->initied:Z

    if-eqz v0, :cond_2e

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoUrl:Ljava/lang/String;

    if-nez v0, :cond_9

    goto :goto_2e

    .line 1605
    :cond_9
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlayerPrepared()Z

    move-result v0

    if-nez v0, :cond_14

    .line 1606
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->preparePlayer()V

    .line 1608
    :cond_14
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_22

    .line 1609
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->pause()V

    goto :goto_2a

    .line 1611
    :cond_22
    const/4 v0, 0x0

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isCompleted:Z

    .line 1612
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->play()V

    .line 1614
    :goto_2a
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    .line 1615
    return-void

    .line 1603
    :cond_2e
    :goto_2e
    return-void
.end method

.method public synthetic lambda$new$3$WebPlayerView(Landroid/view/View;)V
    .registers 10
    .param p1, "v"    # Landroid/view/View;

    .line 1622
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    if-eqz v0, :cond_d5

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    invoke-interface {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->checkInlinePermissions()Z

    move-result v0

    if-eqz v0, :cond_d5

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changingTextureView:Z

    if-nez v0, :cond_d5

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->switchingInlineMode:Z

    if-nez v0, :cond_d5

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->firstFrameRendered:Z

    if-nez v0, :cond_1a

    goto/16 :goto_d5

    .line 1625
    :cond_1a
    const/4 v0, 0x1

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->switchingInlineMode:Z

    .line 1626
    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    const/4 v2, 0x0

    if-nez v1, :cond_35

    .line 1627
    iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    .line 1628
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->switchToInlineRunnable:Ljava/lang/Runnable;

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v3}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getAspectRatio()F

    move-result v3

    iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->allowInlineAnimation:Z

    invoke-interface {v1, v0, v2, v3, v4}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->prepareToSwitchInlineMode(ZLjava/lang/Runnable;FZ)V

    goto/16 :goto_d4

    .line 1630
    :cond_35
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v1}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 1631
    .local v1, "parent":Landroid/view/ViewGroup;
    if-eq v1, p0, :cond_70

    .line 1632
    if-eqz v1, :cond_46

    .line 1633
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1635
    :cond_46
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    const/16 v4, 0x11

    const/4 v5, -0x1

    invoke-static {v5, v5, v4}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v4

    invoke-virtual {p0, v3, v2, v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 1636
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getMeasuredWidth()I

    move-result v4

    const/high16 v5, 0x40000000    # 2.0f

    invoke-static {v4, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v4

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getMeasuredHeight()I

    move-result v6

    const/high16 v7, 0x41200000    # 10.0f

    invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    sub-int/2addr v6, v7

    invoke-static {v6, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    invoke-virtual {v3, v4, v5}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->measure(II)V

    .line 1638
    :cond_70
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    const/4 v4, 0x0

    if-eqz v3, :cond_7a

    .line 1639
    invoke-virtual {v3}, Landroid/graphics/Bitmap;->recycle()V

    .line 1640
    iput-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    .line 1642
    :cond_7a
    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changingTextureView:Z

    .line 1644
    iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    .line 1645
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    .line 1646
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateShareButton()V

    .line 1647
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateFullscreenButton()V

    .line 1648
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateInlineButton()V

    .line 1650
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    const/4 v5, 0x4

    invoke-virtual {v3, v5}, Landroid/view/TextureView;->setVisibility(I)V

    .line 1651
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    if-eqz v3, :cond_9a

    .line 1652
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v3, v5}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_a1

    .line 1654
    :cond_9a
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v3, v5}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->addView(Landroid/view/View;)V

    .line 1657
    :goto_a1
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->getParent()Landroid/view/ViewParent;

    move-result-object v3

    move-object v1, v3

    check-cast v1, Landroid/view/ViewGroup;

    .line 1658
    if-eq v1, p0, :cond_c2

    .line 1659
    if-eqz v1, :cond_b3

    .line 1660
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1662
    :cond_b3
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureViewContainer:Landroid/view/ViewGroup;

    if-eqz v3, :cond_bd

    .line 1663
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v3, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_c2

    .line 1665
    :cond_bd
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {p0, v3, v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->addView(Landroid/view/View;I)V

    .line 1669
    :cond_c2
    :goto_c2
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0, v2, v2}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->show(ZZ)V

    .line 1670
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v3}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getAspectRatio()F

    move-result v3

    iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->allowInlineAnimation:Z

    invoke-interface {v0, v2, v4, v3, v5}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->prepareToSwitchInlineMode(ZLjava/lang/Runnable;FZ)V

    .line 1672
    .end local v1    # "parent":Landroid/view/ViewGroup;
    :goto_d4
    return-void

    .line 1623
    :cond_d5
    :goto_d5
    return-void
.end method

.method public synthetic lambda$new$4$WebPlayerView(Landroid/view/View;)V
    .registers 3
    .param p1, "v"    # Landroid/view/View;

    .line 1681
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    if-eqz v0, :cond_7

    .line 1682
    invoke-interface {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->onSharePressed()V

    .line 1684
    :cond_7
    return-void
.end method

.method public loadVideo(Ljava/lang/String;Lim/tpelyyftgw/tgnet/TLRPC$Photo;Ljava/lang/Object;Ljava/lang/String;Z)Z
    .registers 32
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "thumb"    # Lim/tpelyyftgw/tgnet/TLRPC$Photo;
    .param p3, "parentObject"    # Ljava/lang/Object;
    .param p4, "originalUrl"    # Ljava/lang/String;
    .param p5, "autoplay"    # Z

    .line 2076
    move-object/from16 v1, p0

    move-object/from16 v2, p1

    move-object/from16 v3, p2

    const-string v0, "m"

    const/4 v4, 0x0

    .line 2077
    .local v4, "youtubeId":Ljava/lang/String;
    const/4 v5, 0x0

    .line 2078
    .local v5, "vimeoId":Ljava/lang/String;
    const/4 v6, 0x0

    .line 2079
    .local v6, "coubId":Ljava/lang/String;
    const/4 v7, 0x0

    .line 2080
    .local v7, "twitchClipId":Ljava/lang/String;
    const/4 v8, 0x0

    .line 2081
    .local v8, "twitchStreamId":Ljava/lang/String;
    const/4 v9, 0x0

    .line 2082
    .local v9, "mp4File":Ljava/lang/String;
    const/4 v10, 0x0

    .line 2083
    .local v10, "aparatId":Ljava/lang/String;
    const/4 v11, -0x1

    iput v11, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->seekToTime:I

    .line 2084
    const/4 v12, 0x0

    const/4 v13, 0x1

    if-eqz v2, :cond_114

    .line 2085
    const-string v14, ".mp4"

    invoke-virtual {v2, v14}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v14

    if-eqz v14, :cond_22

    .line 2086
    move-object/from16 v9, p1

    goto/16 :goto_114

    .line 2089
    :cond_22
    if-eqz p4, :cond_6d

    .line 2091
    :try_start_24
    invoke-static/range {p4 .. p4}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v14

    .line 2092
    .local v14, "uri":Landroid/net/Uri;
    const-string v15, "t"

    invoke-virtual {v14, v15}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    .line 2093
    .local v15, "t":Ljava/lang/String;
    if-nez v15, :cond_37

    .line 2094
    const-string v11, "time_continue"

    invoke-virtual {v14, v11}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    move-object v15, v11

    .line 2096
    :cond_37
    if-eqz v15, :cond_68

    .line 2097
    invoke-virtual {v15, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v11

    if-eqz v11, :cond_5e

    .line 2098
    invoke-virtual {v15, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 2099
    .local v0, "args":[Ljava/lang/String;
    aget-object v11, v0, v12

    invoke-static {v11}, Lim/tpelyyftgw/messenger/Utilities;->parseInt(Ljava/lang/CharSequence;)Ljava/lang/Integer;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/Integer;->intValue()I

    move-result v11

    mul-int/lit8 v11, v11, 0x3c

    aget-object v17, v0, v13

    invoke-static/range {v17 .. v17}, Lim/tpelyyftgw/messenger/Utilities;->parseInt(Ljava/lang/CharSequence;)Ljava/lang/Integer;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/Integer;->intValue()I

    move-result v17

    add-int v11, v11, v17

    iput v11, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->seekToTime:I

    .line 2100
    .end local v0    # "args":[Ljava/lang/String;
    goto :goto_68

    .line 2101
    :cond_5e
    invoke-static {v15}, Lim/tpelyyftgw/messenger/Utilities;->parseInt(Ljava/lang/CharSequence;)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    iput v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->seekToTime:I
    :try_end_68
    .catch Ljava/lang/Exception; {:try_start_24 .. :try_end_68} :catch_69

    .line 2106
    .end local v14    # "uri":Landroid/net/Uri;
    .end local v15    # "t":Ljava/lang/String;
    :cond_68
    :goto_68
    goto :goto_6d

    .line 2104
    :catch_69
    move-exception v0

    .line 2105
    .local v0, "e":Ljava/lang/Exception;
    :try_start_6a
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 2108
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_6d
    :goto_6d
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->youtubeIdRegex:Ljava/util/regex/Pattern;

    invoke-virtual {v0, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 2109
    .local v0, "matcher":Ljava/util/regex/Matcher;
    const/4 v11, 0x0

    .line 2110
    .local v11, "id":Ljava/lang/String;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z

    move-result v14

    if-eqz v14, :cond_7f

    .line 2111
    invoke-virtual {v0, v13}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v14
    :try_end_7e
    .catch Ljava/lang/Exception; {:try_start_6a .. :try_end_7e} :catch_83

    move-object v11, v14

    .line 2113
    :cond_7f
    if-eqz v11, :cond_82

    .line 2114
    move-object v4, v11

    .line 2118
    .end local v0    # "matcher":Ljava/util/regex/Matcher;
    .end local v11    # "id":Ljava/lang/String;
    :cond_82
    goto :goto_87

    .line 2116
    :catch_83
    move-exception v0

    .line 2117
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 2119
    .end local v0    # "e":Ljava/lang/Exception;
    :goto_87
    if-nez v4, :cond_a4

    .line 2121
    :try_start_89
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->vimeoIdRegex:Ljava/util/regex/Pattern;

    invoke-virtual {v0, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 2122
    .local v0, "matcher":Ljava/util/regex/Matcher;
    const/4 v11, 0x0

    .line 2123
    .restart local v11    # "id":Ljava/lang/String;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z

    move-result v14

    if-eqz v14, :cond_9c

    .line 2124
    const/4 v14, 0x3

    invoke-virtual {v0, v14}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v15
    :try_end_9b
    .catch Ljava/lang/Exception; {:try_start_89 .. :try_end_9b} :catch_a0

    move-object v11, v15

    .line 2126
    :cond_9c
    if-eqz v11, :cond_9f

    .line 2127
    move-object v5, v11

    .line 2131
    .end local v0    # "matcher":Ljava/util/regex/Matcher;
    .end local v11    # "id":Ljava/lang/String;
    :cond_9f
    goto :goto_a4

    .line 2129
    :catch_a0
    move-exception v0

    .line 2130
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 2133
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_a4
    :goto_a4
    if-nez v5, :cond_c0

    .line 2135
    :try_start_a6
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aparatIdRegex:Ljava/util/regex/Pattern;

    invoke-virtual {v0, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 2136
    .local v0, "matcher":Ljava/util/regex/Matcher;
    const/4 v11, 0x0

    .line 2137
    .restart local v11    # "id":Ljava/lang/String;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z

    move-result v14

    if-eqz v14, :cond_b8

    .line 2138
    invoke-virtual {v0, v13}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v14
    :try_end_b7
    .catch Ljava/lang/Exception; {:try_start_a6 .. :try_end_b7} :catch_bc

    move-object v11, v14

    .line 2140
    :cond_b8
    if-eqz v11, :cond_bb

    .line 2141
    move-object v10, v11

    .line 2145
    .end local v0    # "matcher":Ljava/util/regex/Matcher;
    .end local v11    # "id":Ljava/lang/String;
    :cond_bb
    goto :goto_c0

    .line 2143
    :catch_bc
    move-exception v0

    .line 2144
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 2147
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_c0
    :goto_c0
    if-nez v10, :cond_dc

    .line 2149
    :try_start_c2
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->twitchClipIdRegex:Ljava/util/regex/Pattern;

    invoke-virtual {v0, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 2150
    .local v0, "matcher":Ljava/util/regex/Matcher;
    const/4 v11, 0x0

    .line 2151
    .restart local v11    # "id":Ljava/lang/String;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z

    move-result v14

    if-eqz v14, :cond_d4

    .line 2152
    invoke-virtual {v0, v13}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v14
    :try_end_d3
    .catch Ljava/lang/Exception; {:try_start_c2 .. :try_end_d3} :catch_d8

    move-object v11, v14

    .line 2154
    :cond_d4
    if-eqz v11, :cond_d7

    .line 2155
    move-object v7, v11

    .line 2159
    .end local v0    # "matcher":Ljava/util/regex/Matcher;
    .end local v11    # "id":Ljava/lang/String;
    :cond_d7
    goto :goto_dc

    .line 2157
    :catch_d8
    move-exception v0

    .line 2158
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 2161
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_dc
    :goto_dc
    if-nez v7, :cond_f8

    .line 2163
    :try_start_de
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->twitchStreamIdRegex:Ljava/util/regex/Pattern;

    invoke-virtual {v0, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 2164
    .local v0, "matcher":Ljava/util/regex/Matcher;
    const/4 v11, 0x0

    .line 2165
    .restart local v11    # "id":Ljava/lang/String;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z

    move-result v14

    if-eqz v14, :cond_f0

    .line 2166
    invoke-virtual {v0, v13}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v14
    :try_end_ef
    .catch Ljava/lang/Exception; {:try_start_de .. :try_end_ef} :catch_f4

    move-object v11, v14

    .line 2168
    :cond_f0
    if-eqz v11, :cond_f3

    .line 2169
    move-object v8, v11

    .line 2173
    .end local v0    # "matcher":Ljava/util/regex/Matcher;
    .end local v11    # "id":Ljava/lang/String;
    :cond_f3
    goto :goto_f8

    .line 2171
    :catch_f4
    move-exception v0

    .line 2172
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 2175
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_f8
    :goto_f8
    if-nez v8, :cond_114

    .line 2177
    :try_start_fa
    sget-object v0, Lim/tpelyyftgw/ui/components/WebPlayerView;->coubIdRegex:Ljava/util/regex/Pattern;

    invoke-virtual {v0, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 2178
    .local v0, "matcher":Ljava/util/regex/Matcher;
    const/4 v11, 0x0

    .line 2179
    .restart local v11    # "id":Ljava/lang/String;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z

    move-result v14

    if-eqz v14, :cond_10c

    .line 2180
    invoke-virtual {v0, v13}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v14
    :try_end_10b
    .catch Ljava/lang/Exception; {:try_start_fa .. :try_end_10b} :catch_110

    move-object v11, v14

    .line 2182
    :cond_10c
    if-eqz v11, :cond_10f

    .line 2183
    move-object v6, v11

    .line 2187
    .end local v0    # "matcher":Ljava/util/regex/Matcher;
    .end local v11    # "id":Ljava/lang/String;
    :cond_10f
    goto :goto_114

    .line 2185
    :catch_110
    move-exception v0

    .line 2186
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 2192
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_114
    :goto_114
    iput-boolean v12, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->initied:Z

    .line 2193
    iput-boolean v12, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->isCompleted:Z

    .line 2194
    move/from16 v11, p5

    iput-boolean v11, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->isAutoplay:Z

    .line 2195
    const/4 v0, 0x0

    iput-object v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoUrl:Ljava/lang/String;

    .line 2196
    iput-object v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->playAudioUrl:Ljava/lang/String;

    .line 2197
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->destroy()V

    .line 2198
    iput-boolean v12, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->firstFrameRendered:Z

    .line 2199
    const/high16 v14, 0x3f800000    # 1.0f

    iput v14, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentAlpha:F

    .line 2200
    iget-object v14, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    if-eqz v14, :cond_133

    .line 2201
    invoke-virtual {v14, v13}, Landroid/os/AsyncTask;->cancel(Z)Z

    .line 2202
    iput-object v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    .line 2204
    :cond_133
    invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateFullscreenButton()V

    .line 2205
    invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateShareButton()V

    .line 2206
    invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateInlineButton()V

    .line 2207
    invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    .line 2208
    if-eqz v3, :cond_169

    .line 2209
    iget-object v14, v3, Lim/tpelyyftgw/tgnet/TLRPC$Photo;->sizes:Ljava/util/ArrayList;

    const/16 v15, 0x50

    invoke-static {v14, v15, v13}, Lim/tpelyyftgw/messenger/FileLoader;->getClosestPhotoSizeWithSize(Ljava/util/ArrayList;IZ)Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;

    move-result-object v14

    .line 2210
    .local v14, "photoSize":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
    if-eqz v14, :cond_168

    .line 2211
    iget-object v15, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-static {v15}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->access$4800(Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;)Lim/tpelyyftgw/messenger/ImageReceiver;

    move-result-object v17

    const/16 v18, 0x0

    const/16 v19, 0x0

    invoke-static {v14, v3}, Lim/tpelyyftgw/messenger/ImageLocation;->getForPhoto(Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;Lim/tpelyyftgw/tgnet/TLRPC$Photo;)Lim/tpelyyftgw/messenger/ImageLocation;

    move-result-object v20

    const/16 v22, 0x0

    const/16 v23, 0x0

    const/16 v25, 0x1

    const-string v21, "80_80_b"

    move-object/from16 v24, p3

    invoke-virtual/range {v17 .. v25}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Object;I)V

    .line 2212
    iput-boolean v13, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->drawImage:Z

    .line 2214
    .end local v14    # "photoSize":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
    :cond_168
    goto :goto_16b

    .line 2215
    :cond_169
    iput-boolean v12, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->drawImage:Z

    .line 2218
    :goto_16b
    iget-object v14, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressAnimation:Landroid/animation/AnimatorSet;

    if-eqz v14, :cond_174

    .line 2219
    invoke-virtual {v14}, Landroid/animation/AnimatorSet;->cancel()V

    .line 2220
    iput-object v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressAnimation:Landroid/animation/AnimatorSet;

    .line 2222
    :cond_174
    iput-boolean v13, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->isLoading:Z

    .line 2223
    iget-object v14, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v14, v12}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->setProgress(I)V

    .line 2224
    if-eqz v4, :cond_180

    .line 2225
    iput-object v4, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentYoutubeId:Ljava/lang/String;

    .line 2226
    const/4 v4, 0x0

    .line 2228
    :cond_180
    if-eqz v9, :cond_19b

    .line 2229
    iput-boolean v13, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->initied:Z

    .line 2230
    iput-object v9, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoUrl:Ljava/lang/String;

    .line 2231
    const-string v0, "other"

    iput-object v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->playVideoType:Ljava/lang/String;

    .line 2232
    iget-boolean v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->isAutoplay:Z

    if-eqz v0, :cond_191

    .line 2233
    invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->preparePlayer()V

    .line 2235
    :cond_191
    invoke-direct {v1, v12, v12}, Lim/tpelyyftgw/ui/components/WebPlayerView;->showProgress(ZZ)V

    .line 2236
    iget-object v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0, v13, v13}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->show(ZZ)V

    goto/16 :goto_255

    .line 2238
    :cond_19b
    if-eqz v4, :cond_1b9

    .line 2239
    new-instance v15, Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;

    invoke-direct {v15, v1, v4}, Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;)V

    .line 2240
    .local v15, "task":Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;
    sget-object v14, Landroid/os/AsyncTask;->THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;

    const/4 v13, 0x3

    new-array v13, v13, [Ljava/lang/Void;

    aput-object v0, v13, v12

    const/16 v16, 0x1

    aput-object v0, v13, v16

    const/16 v16, 0x2

    aput-object v0, v13, v16

    invoke-virtual {v15, v14, v13}, Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;->executeOnExecutor(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 2241
    iput-object v15, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    .line 2242
    .end local v15    # "task":Lim/tpelyyftgw/ui/components/WebPlayerView$YoutubeVideoTask;
    const/4 v15, 0x1

    goto/16 :goto_24c

    :cond_1b9
    if-eqz v5, :cond_1d7

    .line 2243
    new-instance v13, Lim/tpelyyftgw/ui/components/WebPlayerView$VimeoVideoTask;

    invoke-direct {v13, v1, v5}, Lim/tpelyyftgw/ui/components/WebPlayerView$VimeoVideoTask;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;)V

    .line 2244
    .local v13, "task":Lim/tpelyyftgw/ui/components/WebPlayerView$VimeoVideoTask;
    sget-object v14, Landroid/os/AsyncTask;->THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;

    const/4 v15, 0x3

    new-array v15, v15, [Ljava/lang/Void;

    aput-object v0, v15, v12

    const/16 v16, 0x1

    aput-object v0, v15, v16

    const/16 v16, 0x2

    aput-object v0, v15, v16

    invoke-virtual {v13, v14, v15}, Lim/tpelyyftgw/ui/components/WebPlayerView$VimeoVideoTask;->executeOnExecutor(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 2245
    iput-object v13, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    .line 2246
    .end local v13    # "task":Lim/tpelyyftgw/ui/components/WebPlayerView$VimeoVideoTask;
    const/4 v15, 0x1

    goto/16 :goto_24c

    :cond_1d7
    if-eqz v6, :cond_1f5

    .line 2247
    new-instance v13, Lim/tpelyyftgw/ui/components/WebPlayerView$CoubVideoTask;

    invoke-direct {v13, v1, v6}, Lim/tpelyyftgw/ui/components/WebPlayerView$CoubVideoTask;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;)V

    .line 2248
    .local v13, "task":Lim/tpelyyftgw/ui/components/WebPlayerView$CoubVideoTask;
    sget-object v14, Landroid/os/AsyncTask;->THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;

    const/4 v15, 0x3

    new-array v15, v15, [Ljava/lang/Void;

    aput-object v0, v15, v12

    const/4 v12, 0x1

    aput-object v0, v15, v12

    const/16 v16, 0x2

    aput-object v0, v15, v16

    invoke-virtual {v13, v14, v15}, Lim/tpelyyftgw/ui/components/WebPlayerView$CoubVideoTask;->executeOnExecutor(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 2249
    iput-object v13, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    .line 2250
    iput-boolean v12, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->isStream:Z

    .line 2251
    .end local v13    # "task":Lim/tpelyyftgw/ui/components/WebPlayerView$CoubVideoTask;
    const/4 v15, 0x1

    goto :goto_24c

    :cond_1f5
    if-eqz v10, :cond_211

    .line 2252
    new-instance v12, Lim/tpelyyftgw/ui/components/WebPlayerView$AparatVideoTask;

    invoke-direct {v12, v1, v10}, Lim/tpelyyftgw/ui/components/WebPlayerView$AparatVideoTask;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;)V

    .line 2253
    .local v12, "task":Lim/tpelyyftgw/ui/components/WebPlayerView$AparatVideoTask;
    sget-object v13, Landroid/os/AsyncTask;->THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;

    const/4 v14, 0x3

    new-array v14, v14, [Ljava/lang/Void;

    const/4 v15, 0x0

    aput-object v0, v14, v15

    const/4 v15, 0x1

    aput-object v0, v14, v15

    const/4 v15, 0x2

    aput-object v0, v14, v15

    invoke-virtual {v12, v13, v14}, Lim/tpelyyftgw/ui/components/WebPlayerView$AparatVideoTask;->executeOnExecutor(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 2254
    iput-object v12, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    .line 2255
    .end local v12    # "task":Lim/tpelyyftgw/ui/components/WebPlayerView$AparatVideoTask;
    const/4 v15, 0x1

    goto :goto_24c

    :cond_211
    if-eqz v7, :cond_22d

    .line 2256
    new-instance v12, Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchClipVideoTask;

    invoke-direct {v12, v1, v2, v7}, Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchClipVideoTask;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;Ljava/lang/String;)V

    .line 2257
    .local v12, "task":Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchClipVideoTask;
    sget-object v13, Landroid/os/AsyncTask;->THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;

    const/4 v14, 0x3

    new-array v14, v14, [Ljava/lang/Void;

    const/4 v15, 0x0

    aput-object v0, v14, v15

    const/4 v15, 0x1

    aput-object v0, v14, v15

    const/4 v15, 0x2

    aput-object v0, v14, v15

    invoke-virtual {v12, v13, v14}, Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchClipVideoTask;->executeOnExecutor(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 2258
    iput-object v12, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    .line 2259
    .end local v12    # "task":Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchClipVideoTask;
    const/4 v15, 0x1

    goto :goto_24c

    :cond_22d
    if-eqz v8, :cond_24b

    .line 2260
    new-instance v12, Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchStreamVideoTask;

    invoke-direct {v12, v1, v2, v8}, Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchStreamVideoTask;-><init>(Lim/tpelyyftgw/ui/components/WebPlayerView;Ljava/lang/String;Ljava/lang/String;)V

    .line 2261
    .local v12, "task":Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchStreamVideoTask;
    sget-object v13, Landroid/os/AsyncTask;->THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;

    const/4 v14, 0x3

    new-array v14, v14, [Ljava/lang/Void;

    const/4 v15, 0x0

    aput-object v0, v14, v15

    const/4 v15, 0x1

    aput-object v0, v14, v15

    const/16 v16, 0x2

    aput-object v0, v14, v16

    invoke-virtual {v12, v13, v14}, Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchStreamVideoTask;->executeOnExecutor(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 2262
    iput-object v12, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentTask:Landroid/os/AsyncTask;

    .line 2263
    iput-boolean v15, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->isStream:Z

    goto :goto_24c

    .line 2259
    .end local v12    # "task":Lim/tpelyyftgw/ui/components/WebPlayerView$TwitchStreamVideoTask;
    :cond_24b
    const/4 v15, 0x1

    .line 2266
    :goto_24c
    iget-object v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    const/4 v12, 0x0

    invoke-virtual {v0, v12, v12}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->show(ZZ)V

    .line 2267
    invoke-direct {v1, v15, v12}, Lim/tpelyyftgw/ui/components/WebPlayerView;->showProgress(ZZ)V

    .line 2269
    :goto_255
    if-nez v4, :cond_26d

    if-nez v5, :cond_26d

    if-nez v6, :cond_26d

    if-nez v10, :cond_26d

    if-nez v9, :cond_26d

    if-nez v7, :cond_26d

    if-eqz v8, :cond_264

    goto :goto_26d

    .line 2273
    :cond_264
    iget-object v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    const/16 v12, 0x8

    invoke-virtual {v0, v12}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->setVisibility(I)V

    .line 2274
    const/4 v12, 0x0

    return v12

    .line 2270
    :cond_26d
    :goto_26d
    iget-object v0, v1, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    const/4 v12, 0x0

    invoke-virtual {v0, v12}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->setVisibility(I)V

    .line 2271
    const/4 v12, 0x1

    return v12
.end method

.method public onAudioFocusChange(I)V
    .registers 5
    .param p1, "focusChange"    # I

    .line 1875
    const/4 v0, 0x0

    const/4 v1, -0x1

    if-ne p1, v1, :cond_19

    .line 1876
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlaying()Z

    move-result v1

    if-eqz v1, :cond_14

    .line 1877
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->pause()V

    .line 1878
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    .line 1880
    :cond_14
    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->hasAudioFocus:Z

    .line 1881
    iput v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->audioFocus:I

    goto :goto_48

    .line 1882
    :cond_19
    const/4 v1, 0x1

    if-ne p1, v1, :cond_2b

    .line 1883
    const/4 v1, 0x2

    iput v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->audioFocus:I

    .line 1884
    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->resumeAudioOnFocusGain:Z

    if-eqz v1, :cond_48

    .line 1885
    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->resumeAudioOnFocusGain:Z

    .line 1886
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->play()V

    goto :goto_48

    .line 1888
    :cond_2b
    const/4 v2, -0x3

    if-ne p1, v2, :cond_31

    .line 1889
    iput v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->audioFocus:I

    goto :goto_48

    .line 1890
    :cond_31
    const/4 v2, -0x2

    if-ne p1, v2, :cond_48

    .line 1891
    iput v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->audioFocus:I

    .line 1892
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_48

    .line 1893
    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->resumeAudioOnFocusGain:Z

    .line 1894
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->pause()V

    .line 1895
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    .line 1898
    :cond_48
    :goto_48
    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .registers 9
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .line 1755
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getMeasuredWidth()I

    move-result v0

    int-to-float v4, v0

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getMeasuredHeight()I

    move-result v0

    const/high16 v1, 0x41200000    # 10.0f

    invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v1

    sub-int/2addr v0, v1

    int-to-float v5, v0

    iget-object v6, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->backgroundPaint:Landroid/graphics/Paint;

    const/4 v2, 0x0

    const/4 v3, 0x0

    move-object v1, p1

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 1756
    return-void
.end method

.method public onError(Ljava/lang/Exception;)V
    .registers 2
    .param p1, "e"    # Ljava/lang/Exception;

    .line 1760
    invoke-static {p1}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 1761
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->onInitFailed()V

    .line 1762
    return-void
.end method

.method protected onLayout(ZIIII)V
    .registers 13
    .param p1, "changed"    # Z
    .param p2, "l"    # I
    .param p3, "t"    # I
    .param p4, "r"    # I
    .param p5, "b"    # I

    .line 1823
    sub-int v0, p4, p2

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v1}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getMeasuredWidth()I

    move-result v1

    sub-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x2

    .line 1824
    .local v0, "x":I
    sub-int v1, p5, p3

    const/high16 v2, 0x41200000    # 10.0f

    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v3

    sub-int/2addr v1, v3

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v3}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getMeasuredHeight()I

    move-result v3

    sub-int/2addr v1, v3

    div-int/lit8 v1, v1, 0x2

    .line 1825
    .local v1, "y":I
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v3}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getMeasuredWidth()I

    move-result v4

    add-int/2addr v4, v0

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v5}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getMeasuredHeight()I

    move-result v5

    add-int/2addr v5, v1

    invoke-virtual {v3, v0, v1, v4, v5}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->layout(IIII)V

    .line 1826
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->getParent()Landroid/view/ViewParent;

    move-result-object v3

    const/4 v4, 0x0

    if-ne v3, p0, :cond_46

    .line 1827
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->getMeasuredWidth()I

    move-result v5

    iget-object v6, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->getMeasuredHeight()I

    move-result v6

    invoke-virtual {v3, v4, v4, v5, v6}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->layout(IIII)V

    .line 1829
    :cond_46
    sub-int v3, p4, p2

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/RadialProgressView;->getMeasuredWidth()I

    move-result v5

    sub-int/2addr v3, v5

    div-int/lit8 v3, v3, 0x2

    .line 1830
    .end local v0    # "x":I
    .local v3, "x":I
    sub-int v0, p5, p3

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/RadialProgressView;->getMeasuredHeight()I

    move-result v5

    sub-int/2addr v0, v5

    div-int/lit8 v0, v0, 0x2

    .line 1831
    .end local v1    # "y":I
    .local v0, "y":I
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/RadialProgressView;->getMeasuredWidth()I

    move-result v5

    add-int/2addr v5, v3

    iget-object v6, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/RadialProgressView;->getMeasuredHeight()I

    move-result v6

    add-int/2addr v6, v0

    invoke-virtual {v1, v3, v0, v5, v6}, Lim/tpelyyftgw/ui/components/RadialProgressView;->layout(IIII)V

    .line 1832
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-static {v1}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->access$4800(Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;)Lim/tpelyyftgw/messenger/ImageReceiver;

    move-result-object v1

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getMeasuredWidth()I

    move-result v5

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getMeasuredHeight()I

    move-result v6

    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    sub-int/2addr v6, v2

    invoke-virtual {v1, v4, v4, v5, v6}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImageCoords(IIII)V

    .line 1833
    return-void
.end method

.method protected onMeasure(II)V
    .registers 9
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .line 1837
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v0

    .line 1838
    .local v0, "width":I
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v1

    .line 1839
    .local v1, "height":I
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    const/high16 v3, 0x40000000    # 2.0f

    invoke-static {v0, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v4

    const/high16 v5, 0x41200000    # 10.0f

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    sub-int v5, v1, v5

    invoke-static {v5, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    invoke-virtual {v2, v4, v5}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->measure(II)V

    .line 1840
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    if-ne v2, p0, :cond_34

    .line 1841
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-static {v0, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v4

    invoke-static {v1, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    invoke-virtual {v2, v4, v5}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->measure(II)V

    .line 1843
    :cond_34
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->progressView:Lim/tpelyyftgw/ui/components/RadialProgressView;

    const/high16 v4, 0x42300000    # 44.0f

    invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    invoke-static {v5, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v4

    invoke-static {v4, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v3

    invoke-virtual {v2, v5, v3}, Lim/tpelyyftgw/ui/components/RadialProgressView;->measure(II)V

    .line 1844
    invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView;->setMeasuredDimension(II)V

    .line 1845
    return-void
.end method

.method public onRenderedFirstFrame()V
    .registers 3

    .line 1782
    const/4 v0, 0x1

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->firstFrameRendered:Z

    .line 1783
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->lastUpdateTime:J

    .line 1784
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->invalidate()V

    .line 1785
    return-void
.end method

.method public onStateChanged(ZI)V
    .registers 9
    .param p1, "playWhenReady"    # Z
    .param p2, "playbackState"    # I

    .line 1728
    const/4 v0, 0x0

    const/4 v1, 0x2

    if-eq p2, v1, :cond_28

    .line 1729
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->getDuration()J

    move-result-wide v1

    const-wide v3, -0x7fffffffffffffffL    # -4.9E-324

    cmp-long v5, v1, v3

    if-eqz v5, :cond_23

    .line 1730
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/VideoPlayer;->getDuration()J

    move-result-wide v2

    const-wide/16 v4, 0x3e8

    div-long/2addr v2, v4

    long-to-int v3, v2

    invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->setDuration(I)V

    goto :goto_28

    .line 1732
    :cond_23
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->setDuration(I)V

    .line 1735
    :cond_28
    :goto_28
    const/4 v1, 0x4

    const/4 v2, 0x1

    if-eq p2, v1, :cond_3c

    if-eq p2, v2, :cond_3c

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlaying()Z

    move-result v3

    if-eqz v3, :cond_3c

    .line 1736
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    invoke-interface {v0, p0, v2}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->onPlayStateChanged(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)V

    goto :goto_41

    .line 1738
    :cond_3c
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    invoke-interface {v3, p0, v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->onPlayStateChanged(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)V

    .line 1740
    :goto_41
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_4f

    if-eq p2, v1, :cond_4f

    .line 1741
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    goto :goto_67

    .line 1743
    :cond_4f
    if-ne p2, v1, :cond_67

    .line 1744
    iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isCompleted:Z

    .line 1745
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->pause()V

    .line 1746
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    const-wide/16 v3, 0x0

    invoke-virtual {v0, v3, v4}, Lim/tpelyyftgw/ui/components/VideoPlayer;->seekTo(J)V

    .line 1747
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    .line 1748
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    invoke-virtual {v0, v2, v2}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->show(ZZ)V

    .line 1751
    :cond_67
    :goto_67
    return-void
.end method

.method public onSurfaceDestroyed(Landroid/graphics/SurfaceTexture;)Z
    .registers 6
    .param p1, "surfaceTexture"    # Landroid/graphics/SurfaceTexture;

    .line 1789
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changingTextureView:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_28

    .line 1790
    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changingTextureView:Z

    .line 1791
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    if-nez v0, :cond_f

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    if-eqz v0, :cond_28

    .line 1792
    :cond_f
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline:Z

    const/4 v2, 0x1

    if-eqz v0, :cond_16

    .line 1793
    iput v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->waitingForFirstTextureUpload:I

    .line 1795
    :cond_16
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changedTextureView:Landroid/view/TextureView;

    invoke-virtual {v0, p1}, Landroid/view/TextureView;->setSurfaceTexture(Landroid/graphics/SurfaceTexture;)V

    .line 1796
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changedTextureView:Landroid/view/TextureView;

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->surfaceTextureListener:Landroid/view/TextureView$SurfaceTextureListener;

    invoke-virtual {v0, v3}, Landroid/view/TextureView;->setSurfaceTextureListener(Landroid/view/TextureView$SurfaceTextureListener;)V

    .line 1797
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changedTextureView:Landroid/view/TextureView;

    invoke-virtual {v0, v1}, Landroid/view/TextureView;->setVisibility(I)V

    .line 1798
    return v2

    .line 1801
    :cond_28
    return v1
.end method

.method public onSurfaceTextureUpdated(Landroid/graphics/SurfaceTexture;)V
    .registers 9
    .param p1, "surfaceTexture"    # Landroid/graphics/SurfaceTexture;

    .line 1806
    iget v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->waitingForFirstTextureUpload:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_37

    .line 1807
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    if-eqz v0, :cond_1c

    .line 1808
    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1809
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 1810
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_1c

    .line 1811
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 1812
    iput-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    .line 1815
    :cond_1c
    const/4 v0, 0x0

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->switchingInlineMode:Z

    .line 1816
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    const/4 v3, 0x0

    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v4}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getAspectRatio()F

    move-result v4

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v5}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getVideoRotation()I

    move-result v5

    iget-boolean v6, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->allowInlineAnimation:Z

    invoke-interface/range {v1 .. v6}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->onSwitchInlineMode(Landroid/view/View;ZFIZ)Landroid/view/TextureView;

    .line 1817
    iput v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->waitingForFirstTextureUpload:I

    .line 1819
    :cond_37
    return-void
.end method

.method public onVideoSizeChanged(IIIF)V
    .registers 7
    .param p1, "width"    # I
    .param p2, "height"    # I
    .param p3, "unappliedRotationDegrees"    # I
    .param p4, "pixelWidthHeightRatio"    # F

    .line 1766
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    if-eqz v0, :cond_27

    .line 1767
    const/16 v0, 0x5a

    if-eq p3, v0, :cond_c

    const/16 v0, 0x10e

    if-ne p3, v0, :cond_f

    .line 1768
    :cond_c
    move v0, p1

    .line 1769
    .local v0, "temp":I
    move p1, p2

    .line 1770
    move p2, v0

    .line 1772
    .end local v0    # "temp":I
    :cond_f
    if-nez p2, :cond_14

    const/high16 v0, 0x3f800000    # 1.0f

    goto :goto_19

    :cond_14
    int-to-float v0, p1

    mul-float v0, v0, p4

    int-to-float v1, p2

    div-float/2addr v0, v1

    .line 1773
    .local v0, "ratio":F
    :goto_19
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    invoke-virtual {v1, v0, p3}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->setAspectRatio(FI)V

    .line 1774
    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->inFullscreen:Z

    if-eqz v1, :cond_27

    .line 1775
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->delegate:Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    invoke-interface {v1, v0, p3}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->onVideoSizeChanged(FI)V

    .line 1778
    .end local v0    # "ratio":F
    :cond_27
    return-void
.end method

.method public pause()V
    .registers 3

    .line 1971
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->pause()V

    .line 1972
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updatePlayButton()V

    .line 1973
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->controlsView:Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->show(ZZ)V

    .line 1974
    return-void
.end method

.method public updateTextureImageView()V
    .registers 5

    .line 1701
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    if-nez v0, :cond_5

    .line 1702
    return-void

    .line 1705
    :cond_5
    const/4 v0, 0x0

    :try_start_6
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v1}, Landroid/view/TextureView;->getWidth()I

    move-result v1

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureView:Landroid/view/TextureView;

    invoke-virtual {v2}, Landroid/view/TextureView;->getHeight()I

    move-result v2

    sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v1, v2, v3}, Lim/tpelyyftgw/messenger/Bitmaps;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    .line 1706
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->changedTextureView:Landroid/view/TextureView;

    invoke-virtual {v2, v1}, Landroid/view/TextureView;->getBitmap(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    :try_end_1f
    .catchall {:try_start_6 .. :try_end_1f} :catchall_20

    .line 1713
    goto :goto_2d

    .line 1707
    :catchall_20
    move-exception v1

    .line 1708
    .local v1, "e":Ljava/lang/Throwable;
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    if-eqz v2, :cond_2a

    .line 1709
    invoke-virtual {v2}, Landroid/graphics/Bitmap;->recycle()V

    .line 1710
    iput-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    .line 1712
    :cond_2a
    invoke-static {v1}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 1714
    .end local v1    # "e":Ljava/lang/Throwable;
    :goto_2d
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    if-eqz v1, :cond_3f

    .line 1715
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1716
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->currentBitmap:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_44

    .line 1718
    :cond_3f
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView;->textureImageView:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 1720
    :goto_44
    return-void
.end method