.class Lcom/firemint/realracing/MoviePlayer$1; .super Ljava/lang/Object; .source "SourceFile" # interfaces .implements Ljava/lang/Runnable; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/firemint/realracing/MoviePlayer;->play(Ljava/lang/String;J)V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = null .end annotation # instance fields .field final synthetic this$0:Lcom/firemint/realracing/MoviePlayer; .field final synthetic val$movieURL:Ljava/lang/String; .field final synthetic val$player:Lcom/firemint/realracing/MoviePlayer; # direct methods .method public constructor (Lcom/firemint/realracing/MoviePlayer;Lcom/firemint/realracing/MoviePlayer;Ljava/lang/String;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()V" } .end annotation iput-object p1, p0, Lcom/firemint/realracing/MoviePlayer$1;->this$0:Lcom/firemint/realracing/MoviePlayer; iput-object p2, p0, Lcom/firemint/realracing/MoviePlayer$1;->val$player:Lcom/firemint/realracing/MoviePlayer; iput-object p3, p0, Lcom/firemint/realracing/MoviePlayer$1;->val$movieURL:Ljava/lang/String; .line 273 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public run()V .locals 3 iget-object v0, p0, Lcom/firemint/realracing/MoviePlayer$1;->this$0:Lcom/firemint/realracing/MoviePlayer; .line 279 new-instance v1, Landroid/widget/RelativeLayout; sget-object v2, Lcom/firemint/realracing/MoviePlayer;->mActivity:Landroid/app/Activity; invoke-direct {v1, v2}, Landroid/widget/RelativeLayout;->(Landroid/content/Context;)V iput-object v1, v0, Lcom/firemint/realracing/MoviePlayer;->mLayout:Landroid/widget/RelativeLayout; iget-object v0, p0, Lcom/firemint/realracing/MoviePlayer$1;->this$0:Lcom/firemint/realracing/MoviePlayer; .line 280 iget-object v0, v0, Lcom/firemint/realracing/MoviePlayer;->mLayout:Landroid/widget/RelativeLayout; const/16 v1, 0x11 invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setGravity(I)V sget-object v0, Lcom/firemint/realracing/MoviePlayer;->mViewGroup:Landroid/view/ViewGroup; iget-object v1, p0, Lcom/firemint/realracing/MoviePlayer$1;->this$0:Lcom/firemint/realracing/MoviePlayer; .line 281 iget-object v1, v1, Lcom/firemint/realracing/MoviePlayer;->mLayout:Landroid/widget/RelativeLayout; invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V .line 283 new-instance v0, Lcom/firemint/realracing/MoviePlayer$MPHelper; iget-object v1, p0, Lcom/firemint/realracing/MoviePlayer$1;->this$0:Lcom/firemint/realracing/MoviePlayer; sget-object v2, Lcom/firemint/realracing/MoviePlayer;->mActivity:Landroid/app/Activity; invoke-direct {v0, v1, v2}, Lcom/firemint/realracing/MoviePlayer$MPHelper;->(Lcom/firemint/realracing/MoviePlayer;Landroid/content/Context;)V sput-object v0, Lcom/firemint/realracing/MoviePlayer;->msMPHelper:Lcom/firemint/realracing/MoviePlayer$MPHelper; iget-object v1, p0, Lcom/firemint/realracing/MoviePlayer$1;->val$player:Lcom/firemint/realracing/MoviePlayer; .line 284 invoke-virtual {v0, v1}, Lcom/firemint/realracing/MoviePlayer$MPHelper;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V sget-object v0, Lcom/firemint/realracing/MoviePlayer;->msMPHelper:Lcom/firemint/realracing/MoviePlayer$MPHelper; .line 285 invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z sget-object v0, Lcom/firemint/realracing/MoviePlayer;->msMPHelper:Lcom/firemint/realracing/MoviePlayer$MPHelper; const/4 v1, 0x1 .line 286 invoke-virtual {v0, v1}, Landroid/view/SurfaceView;->setZOrderOnTop(Z)V .line 288 new-instance v0, Landroid/widget/RelativeLayout$LayoutParams; invoke-static {}, Lcom/firemint/realracing/Platform;->getScreenWidth()I move-result v1 invoke-static {}, Lcom/firemint/realracing/Platform;->getScreenHeight()I move-result v2 invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->(II)V const/4 v1, 0x0 iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I iget-object v1, p0, Lcom/firemint/realracing/MoviePlayer$1;->this$0:Lcom/firemint/realracing/MoviePlayer; .line 291 iget-object v1, v1, Lcom/firemint/realracing/MoviePlayer;->mLayout:Landroid/widget/RelativeLayout; sget-object v2, Lcom/firemint/realracing/MoviePlayer;->msMPHelper:Lcom/firemint/realracing/MoviePlayer$MPHelper; invoke-virtual {v1, v2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V sget-object v0, Lcom/firemint/realracing/MoviePlayer;->msMPHelper:Lcom/firemint/realracing/MoviePlayer$MPHelper; iget-object v1, p0, Lcom/firemint/realracing/MoviePlayer$1;->val$movieURL:Ljava/lang/String; .line 293 invoke-virtual {v0, v1}, Lcom/firemint/realracing/MoviePlayer$MPHelper;->setVideoURL(Ljava/lang/String;)V sget-object v0, Lcom/firemint/realracing/MoviePlayer;->msMPHelper:Lcom/firemint/realracing/MoviePlayer$MPHelper; .line 294 invoke-virtual {v0}, Lcom/firemint/realracing/MoviePlayer$MPHelper;->start()V return-void .end method