EmbedBottomSheet$7.smali
.class Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;
.super Lim/tpelyyftgw/ui/actionbar/BottomSheet$BottomSheetDelegate;
.source "EmbedBottomSheet.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/EmbedBottomSheet;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
.registers 2
.param p1, "this$0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 817
iput-object p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-direct {p0}, Lim/tpelyyftgw/ui/actionbar/BottomSheet$BottomSheetDelegate;-><init>()V
return-void
.end method
# virtual methods
.method public canDismiss()Z
.registers 3
.line 883
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInFullscreen()Z
move-result v0
if-eqz v0, :cond_17
.line 884
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->exitFullscreen()V
.line 885
const/4 v0, 0x0
return v0
.line 888
:cond_17
:try_start_17
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$1900(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/app/Activity;
move-result-object v0
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v1, 0x80
invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V
:try_end_26
.catch Ljava/lang/Exception; {:try_start_17 .. :try_end_26} :catch_27
.line 891
goto :goto_2b
.line 889
:catch_27
move-exception v0
.line 890
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 892
.end local v0 # "e":Ljava/lang/Exception;
:goto_2b
const/4 v0, 0x1
return v0
.end method
.method public onOpenAnimationEnd()V
.registers 14
.line 820
const-string v0, "m"
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v2
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$1600(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Ljava/lang/String;
move-result-object v3
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$4300(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Ljava/lang/String;
move-result-object v6
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v7, 0x1
invoke-virtual/range {v2 .. v7}, Lim/tpelyyftgw/ui/components/WebPlayerView;->loadVideo(Ljava/lang/String;Lim/tpelyyftgw/tgnet/TLRPC$Photo;Ljava/lang/Object;Ljava/lang/String;Z)Z
move-result v1
.line 821
.local v1, "handled":Z
const/4 v2, 0x4
const/4 v3, 0x0
if-eqz v1, :cond_3c
.line 822
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$000(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/RadialProgressView;
move-result-object v0
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/components/RadialProgressView;->setVisibility(I)V
.line 823
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/webkit/WebView;
move-result-object v0
invoke-virtual {v0, v2}, Landroid/webkit/WebView;->setVisibility(I)V
.line 824
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v0
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/components/WebPlayerView;->setVisibility(I)V
goto/16 :goto_1a3
.line 826
:cond_3c
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$000(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/RadialProgressView;
move-result-object v4
invoke-virtual {v4, v3}, Lim/tpelyyftgw/ui/components/RadialProgressView;->setVisibility(I)V
.line 827
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/webkit/WebView;
move-result-object v4
invoke-virtual {v4, v3}, Landroid/webkit/WebView;->setVisibility(I)V
.line 828
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$1400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/widget/LinearLayout;
move-result-object v4
invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V
.line 829
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$1500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/widget/TextView;
move-result-object v4
invoke-virtual {v4, v2}, Landroid/widget/TextView;->setVisibility(I)V
.line 830
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/webkit/WebView;
move-result-object v4
const/4 v5, 0x1
invoke-virtual {v4, v5}, Landroid/webkit/WebView;->setKeepScreenOn(Z)V
.line 831
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v4
invoke-virtual {v4, v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->setVisibility(I)V
.line 832
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v4
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getControlsView()Landroid/view/View;
move-result-object v4
invoke-virtual {v4, v2}, Landroid/view/View;->setVisibility(I)V
.line 833
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v4
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureView()Landroid/view/TextureView;
move-result-object v4
invoke-virtual {v4, v2}, Landroid/view/TextureView;->setVisibility(I)V
.line 834
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v4
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureImageView()Landroid/widget/ImageView;
move-result-object v4
if-eqz v4, :cond_a6
.line 835
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v4
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureImageView()Landroid/widget/ImageView;
move-result-object v4
invoke-virtual {v4, v2}, Landroid/widget/ImageView;->setVisibility(I)V
.line 837
:cond_a6
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v6
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v11, 0x0
invoke-virtual/range {v6 .. v11}, Lim/tpelyyftgw/ui/components/WebPlayerView;->loadVideo(Ljava/lang/String;Lim/tpelyyftgw/tgnet/TLRPC$Photo;Ljava/lang/Object;Ljava/lang/String;Z)Z
.line 838
new-instance v2, Ljava/util/HashMap;
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
.line 839
.local v2, "args":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
const-string v4, "Referer"
const-string v6, "http://youtube.com"
invoke-virtual {v2, v4, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 841
:try_start_c0
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
move-result-object v4
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getYoutubeId()Ljava/lang/String;
move-result-object v4
.line 842
.local v4, "currentYoutubeId":Ljava/lang/String;
if-eqz v4, :cond_18f
.line 843
iget-object v6, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$100(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/View;
move-result-object v6
invoke-virtual {v6, v3}, Landroid/view/View;->setVisibility(I)V
.line 844
iget-object v6, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v6, v5}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$1302(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Z)Z
.line 845
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v7, 0x11
const/4 v8, 0x0
if-lt v6, v7, :cond_f3
.line 846
iget-object v6, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/webkit/WebView;
move-result-object v6
new-instance v7, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$YoutubeProxy;
iget-object v9, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-direct {v7, v9, v8}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$YoutubeProxy;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Lim/tpelyyftgw/ui/components/EmbedBottomSheet$1;)V
const-string v9, "YoutubeProxy"
invoke-virtual {v6, v7, v9}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V
.line 848
:cond_f3
const/4 v6, 0x0
.line 849
.local v6, "seekToTime":I
iget-object v7, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$4300(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Ljava/lang/String;
move-result-object v7
:try_end_fa
.catch Ljava/lang/Exception; {:try_start_c0 .. :try_end_fa} :catch_19f
if-eqz v7, :cond_16a
.line 851
:try_start_fc
iget-object v7, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$4300(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Ljava/lang/String;
move-result-object v7
invoke-static {v7}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v7
.line 852
.local v7, "uri":Landroid/net/Uri;
iget-object v9, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$4500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)I
move-result v9
if-lez v9, :cond_125
new-instance v8, Ljava/lang/StringBuilder;
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
const-string v9, ""
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v9, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$4500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)I
move-result v9
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v8
.line 853
.local v8, "t":Ljava/lang/String;
:cond_125
if-nez v8, :cond_137
.line 854
const-string v9, "t"
invoke-virtual {v7, v9}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
move-result-object v9
move-object v8, v9
.line 855
if-nez v8, :cond_137
.line 856
const-string v9, "time_continue"
invoke-virtual {v7, v9}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
move-result-object v9
move-object v8, v9
.line 859
:cond_137
if-eqz v8, :cond_165
.line 860
invoke-virtual {v8, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v9
if-eqz v9, :cond_15c
.line 861
invoke-virtual {v8, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v0
.line 862
.local v0, "arg":[Ljava/lang/String;
aget-object v9, v0, v3
invoke-static {v9}, Lim/tpelyyftgw/messenger/Utilities;->parseInt(Ljava/lang/CharSequence;)Ljava/lang/Integer;
move-result-object v9
invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I
move-result v9
mul-int/lit8 v9, v9, 0x3c
aget-object v10, v0, v5
invoke-static {v10}, Lim/tpelyyftgw/messenger/Utilities;->parseInt(Ljava/lang/CharSequence;)Ljava/lang/Integer;
move-result-object v10
invoke-virtual {v10}, Ljava/lang/Integer;->intValue()I
move-result v10
add-int/2addr v9, v10
.line 863
.end local v0 # "arg":[Ljava/lang/String;
.end local v6 # "seekToTime":I
.local v9, "seekToTime":I
move v6, v9
goto :goto_165
.line 864
.end local v9 # "seekToTime":I
.restart local v6 # "seekToTime":I
:cond_15c
invoke-static {v8}, 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
:try_end_164
.catch Ljava/lang/Exception; {:try_start_fc .. :try_end_164} :catch_166
move v6, v0
.line 869
.end local v7 # "uri":Landroid/net/Uri;
.end local v8 # "t":Ljava/lang/String;
:cond_165
:goto_165
goto :goto_16a
.line 867
:catch_166
move-exception v0
.line 868
.local v0, "e":Ljava/lang/Exception;
:try_start_167
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 871
.end local v0 # "e":Ljava/lang/Exception;
:cond_16a
:goto_16a
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/webkit/WebView;
move-result-object v7
const-string v8, "https://www.youtube.com"
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
const-string v9, "<!DOCTYPE html><html><head><style>body { margin: 0; width:100%%; height:100%%; background-color:#000; }html { width:100%%; height:100%%; background-color:#000; }.embed-container iframe,.embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%% !important; height: 100%% !important; } </style></head><body> <div class=\"embed-container\"> <div id=\"player\"></div> </div> <script src=\"https://www.youtube.com/iframe_api\"></script> <script> var player; var observer; var videoEl; var playing; var posted = false; YT.ready(function() { player = new YT.Player(\"player\", { \"width\" : \"100%%\", \"events\" : { \"onReady\" : \"onReady\", \"onError\" : \"onError\", }, \"videoId\" : \"%1$s\", \"height\" : \"100%%\", \"playerVars\" : { \"start\" : %2$d, \"rel\" : 0, \"showinfo\" : 0, \"modestbranding\" : 1, \"iv_load_policy\" : 3, \"autohide\" : 1, \"autoplay\" : 1, \"cc_load_policy\" : 1, \"playsinline\" : 1, \"controls\" : 1 } }); player.setSize(window.innerWidth, window.innerHeight); }); function hideControls() { playing = !videoEl.paused; videoEl.controls = 0; observer.observe(videoEl, {attributes: true}); } function showControls() { playing = !videoEl.paused; observer.disconnect(); videoEl.controls = 1; } function onError(event) { if (!posted) { if (window.YoutubeProxy !== undefined) { YoutubeProxy.postEvent(\"loaded\", null); } posted = true; } } function onReady(event) { player.playVideo(); videoEl = player.getIframe().contentDocument.getElementsByTagName(\'video\')[0];\n videoEl.addEventListener(\"canplay\", function() { if (playing) { videoEl.play(); } }, true); videoEl.addEventListener(\"timeupdate\", function() { if (!posted && videoEl.currentTime > 0) { if (window.YoutubeProxy !== undefined) { YoutubeProxy.postEvent(\"loaded\", null); } posted = true; } }, true); observer = new MutationObserver(function() {\n if (videoEl.controls) {\n videoEl.controls = 0;\n } });\n } window.onresize = function() { player.setSize(window.innerWidth, window.innerHeight); } </script></body></html>"
const/4 v10, 0x2
new-array v10, v10, [Ljava/lang/Object;
aput-object v4, v10, v3
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v10, v5
invoke-static {v0, v9, v10}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v9
const-string v10, "text/html"
const-string v11, "UTF-8"
const-string v12, "http://youtube.com"
invoke-virtual/range {v7 .. v12}, Landroid/webkit/WebView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 872
.end local v6 # "seekToTime":I
goto :goto_19e
.line 873
:cond_18f
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/webkit/WebView;
move-result-object v0
iget-object v3, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;->this$0:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->access$1600(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3, v2}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;Ljava/util/Map;)V
:try_end_19e
.catch Ljava/lang/Exception; {:try_start_167 .. :try_end_19e} :catch_19f
.line 877
.end local v4 # "currentYoutubeId":Ljava/lang/String;
:goto_19e
goto :goto_1a3
.line 875
:catch_19f
move-exception v0
.line 876
.restart local v0 # "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 879
.end local v0 # "e":Ljava/lang/Exception;
.end local v2 # "args":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
:goto_1a3
return-void
.end method