.class public final Lcom/fyber/inneractive/sdk/player/controller/a; .super Lcom/fyber/inneractive/sdk/player/controller/i; .source "SourceFile" # instance fields .field public p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; .field public q:I .field public final r:I .field public s:I .field public t:Z # direct methods .method public constructor (Landroid/content/Context;)V .locals 1 .line 1 invoke-direct {p0, p1}, Lcom/fyber/inneractive/sdk/player/controller/i;->(Landroid/content/Context;)V const/4 p1, 0x0 iput p1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->q:I const/4 v0, 0x2 iput v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->r:I iput p1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->s:I iput-boolean p1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->t:Z new-array p1, p1, [Ljava/lang/Object; const-string v0, "Creating IAAndroidMediaPlayerController" .line 17 invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V return-void .end method # virtual methods .method public final a(I)V .locals 3 .line 10 invoke-super {p0, p1}, Lcom/fyber/inneractive/sdk/player/controller/i;->a(I)V .line 12 invoke-virtual {p0}, Lcom/fyber/inneractive/sdk/player/controller/a;->d()I move-result v0 if-lt p1, v0, :cond_0 .line 13 sget-object v0, Lcom/fyber/inneractive/sdk/player/enums/b;->Completed:Lcom/fyber/inneractive/sdk/player/enums/b; invoke-virtual {p0, v0}, Lcom/fyber/inneractive/sdk/player/controller/i;->a(Lcom/fyber/inneractive/sdk/player/enums/b;)V goto :goto_0 :cond_0 iget v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->q:I const/4 v1, 0x1 if-ne p1, v0, :cond_1 .line 16 invoke-static {p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/Object;)Ljava/lang/String; move-result-object v0 filled-new-array {v0}, [Ljava/lang/Object; move-result-object v0 const-string v2, "%sVideo is stuck! Progress doesn\'t change" .line 17 invoke-static {v2, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V iget v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->s:I add-int/2addr v0, v1 iput v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->s:I iget v2, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->r:I if-ne v0, v2, :cond_2 .line 20 sget-object v0, Lcom/fyber/inneractive/sdk/player/enums/b;->Buffering:Lcom/fyber/inneractive/sdk/player/enums/b; invoke-virtual {p0, v0}, Lcom/fyber/inneractive/sdk/player/controller/i;->a(Lcom/fyber/inneractive/sdk/player/enums/b;)V iput-boolean v1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->t:Z goto :goto_0 :cond_1 iget-boolean v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->t:Z if-ne v0, v1, :cond_2 .line 25 invoke-static {p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/Object;)Ljava/lang/String; move-result-object v0 filled-new-array {v0}, [Ljava/lang/Object; move-result-object v0 const-string v1, "%sVideo progress was stuck! but now it goes forward. Remove buffering state" .line 26 invoke-static {v1, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V .line 27 sget-object v0, Lcom/fyber/inneractive/sdk/player/enums/b;->Playing:Lcom/fyber/inneractive/sdk/player/enums/b; invoke-virtual {p0, v0}, Lcom/fyber/inneractive/sdk/player/controller/i;->a(Lcom/fyber/inneractive/sdk/player/enums/b;)V const/4 v0, 0x0 iput v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->s:I iput-boolean v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->t:Z :cond_2 :goto_0 iput p1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->q:I return-void .end method .method public final a(Landroid/view/Surface;)V .locals 1 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz v0, :cond_0 .line 2 invoke-virtual {v0, p1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->setSurface(Landroid/view/Surface;)V :cond_0 return-void .end method .method public final a(Ljava/lang/String;I)V .locals 0 iget-object p2, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; .line 9 invoke-virtual {p2, p1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->a(Ljava/lang/String;)V return-void .end method .method public final a(Z)V .locals 2 iget-object p1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-nez p1, :cond_0 const/4 p1, 0x0 new-array p1, p1, [Ljava/lang/Object; const-string v0, "MediaPlayerController: creating media player" .line 4 invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V .line 5 new-instance p1, Lcom/fyber/inneractive/sdk/player/mediaplayer/a; iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->a:Landroid/content/Context; iget-object v1, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->i:Landroid/os/Handler; .line 8 invoke-direct {p1, v0, p0, v1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->(Landroid/content/Context;Lcom/fyber/inneractive/sdk/player/mediaplayer/a$k;Landroid/os/Handler;)V iput-object p1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; :cond_0 return-void .end method .method public final a()Z .locals 1 .line 0 const/4 v0, 0x0 return v0 .end method .method public final b()V .locals 3 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; const/4 v1, 0x0 if-eqz v0, :cond_0 .line 2 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->reset()V iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; .line 3 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->release()V iput-object v1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; .line 6 :cond_0 invoke-static {p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/Object;)Ljava/lang/String; move-result-object v0 filled-new-array {v0}, [Ljava/lang/Object; move-result-object v0 const-string v2, "%sdestroy started" .line 7 invoke-static {v2, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->h:Lcom/fyber/inneractive/sdk/player/d; if-eqz v0, :cond_1 .line 9 iget-object v2, v0, Lcom/fyber/inneractive/sdk/player/d;->b:Ljava/util/concurrent/ScheduledThreadPoolExecutor; if-eqz v2, :cond_1 .line 10 invoke-virtual {v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->shutdownNow()Ljava/util/List; .line 11 iput-object v1, v0, Lcom/fyber/inneractive/sdk/player/d;->b:Ljava/util/concurrent/ScheduledThreadPoolExecutor; :cond_1 iput-object v1, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->h:Lcom/fyber/inneractive/sdk/player/d; iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->i:Landroid/os/Handler; .line 17 invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->b:Ljava/util/concurrent/CopyOnWriteArrayList; .line 21 invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->clear()V iput-object v1, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->f:Lcom/fyber/inneractive/sdk/player/controller/i$c; const/4 v0, 0x1 iput-boolean v0, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->g:Z .line 27 invoke-static {p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/Object;)Ljava/lang/String; move-result-object v0 filled-new-array {v0}, [Ljava/lang/Object; move-result-object v0 const-string v1, "%sdestroy finished" .line 28 invoke-static {v1, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V return-void .end method .method public final b(I)V .locals 4 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz v0, :cond_2 .line 39 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->c()Ljava/lang/String; move-result-object v1 .line 40 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 sget-object v3, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean; filled-new-array {v1, v2, v3}, [Ljava/lang/Object; move-result-object v1 const-string v2, "%s seek to called with = %d mPlayAfterSeek = %s" invoke-static {v2, v1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V .line 42 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->b()Z move-result v1 if-nez v1, :cond_0 .line 43 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->c()Ljava/lang/String; move-result-object p1 filled-new-array {p1}, [Ljava/lang/Object; move-result-object p1 const-string v0, "%s seek called when player is not ready!" invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V goto :goto_0 .line 47 :cond_0 iget-object v1, v0, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->b:Lcom/fyber/inneractive/sdk/player/enums/b; sget-object v2, Lcom/fyber/inneractive/sdk/player/enums/b;->Seeking:Lcom/fyber/inneractive/sdk/player/enums/b; if-ne v1, v2, :cond_1 .line 48 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->c()Ljava/lang/String; move-result-object p1 filled-new-array {p1}, [Ljava/lang/Object; move-result-object p1 const-string v0, "%s seek called when player is already seeking!" invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V goto :goto_0 .line 52 :cond_1 invoke-virtual {v0, v2}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->a(Lcom/fyber/inneractive/sdk/player/enums/b;)V const/4 v1, 0x1 .line 53 iput-boolean v1, v0, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->c:Z .line 55 new-instance v1, Lcom/fyber/inneractive/sdk/player/mediaplayer/c; invoke-direct {v1, v0, p1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/c;->(Lcom/fyber/inneractive/sdk/player/mediaplayer/a;I)V invoke-virtual {v0, v1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->a(Ljava/lang/Runnable;)V :cond_2 :goto_0 return-void .end method .method public final b(Z)V .locals 1 const/4 v0, 0x1 .line 29 invoke-virtual {p0, v0}, Lcom/fyber/inneractive/sdk/player/controller/i;->c(Z)V .line 30 invoke-virtual {p0}, Lcom/fyber/inneractive/sdk/player/controller/a;->i()Z move-result v0 if-eqz v0, :cond_0 iget-boolean v0, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->n:Z if-eqz v0, :cond_0 return-void :cond_0 iput-boolean p1, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->n:Z iget-object p1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz p1, :cond_1 .line 36 invoke-virtual {p1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->e()V :cond_1 return-void .end method .method public final c()I .locals 1 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz v0, :cond_0 .line 2 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->getCurrentPosition()I move-result v0 return v0 :cond_0 const/4 v0, 0x0 return v0 .end method .method public final d()I .locals 1 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz v0, :cond_0 .line 23 iget v0, v0, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->r:I return v0 :cond_0 const/4 v0, 0x0 return v0 .end method .method public final d(Z)V .locals 3 const/4 v0, 0x0 .line 1 invoke-virtual {p0, v0}, Lcom/fyber/inneractive/sdk/player/controller/i;->c(Z)V .line 2 invoke-virtual {p0}, Lcom/fyber/inneractive/sdk/player/controller/a;->i()Z move-result v1 if-nez v1, :cond_0 iget-boolean v1, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->n:Z const/4 v2, 0x1 if-ne v1, v2, :cond_0 return-void :cond_0 iput-boolean p1, p0, Lcom/fyber/inneractive/sdk/player/controller/i;->n:Z iget-object p1, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz p1, :cond_2 .line 9 invoke-virtual {p1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->c()Ljava/lang/String; move-result-object v1 filled-new-array {v1}, [Ljava/lang/Object; move-result-object v1 const-string v2, "%s unmute" .line 10 invoke-static {v2, v1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V .line 12 iput-boolean v0, p1, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->d:Z .line 13 invoke-virtual {p1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->b()Z move-result v0 if-eqz v0, :cond_1 .line 14 new-instance v0, Lcom/fyber/inneractive/sdk/player/mediaplayer/d; invoke-direct {v0, p1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/d;->(Lcom/fyber/inneractive/sdk/player/mediaplayer/a;)V invoke-virtual {p1, v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->a(Ljava/lang/Runnable;)V goto :goto_0 .line 21 :cond_1 invoke-virtual {p1}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->c()Ljava/lang/String; move-result-object p1 filled-new-array {p1}, [Ljava/lang/Object; move-result-object p1 const-string v0, "%s unmute called when player is not ready!" invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V :cond_2 :goto_0 return-void .end method .method public final e()Landroid/graphics/Bitmap; .locals 1 const/4 v0, 0x0 return-object v0 .end method .method public final f()Ljava/lang/String; .locals 1 const-string v0, "media" return-object v0 .end method .method public final g()I .locals 1 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz v0, :cond_0 .line 2 iget v0, v0, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->t:I return v0 :cond_0 const/4 v0, 0x0 return v0 .end method .method public final h()I .locals 1 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz v0, :cond_0 .line 2 iget v0, v0, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->s:I return v0 :cond_0 const/4 v0, 0x0 return v0 .end method .method public final i()Z .locals 1 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz v0, :cond_0 .line 2 iget-boolean v0, v0, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->d:Z return v0 :cond_0 const/4 v0, 0x0 return v0 .end method .method public final k()V .locals 1 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz v0, :cond_0 .line 2 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->pause()V :cond_0 return-void .end method .method public final l()V .locals 1 iget-object v0, p0, Lcom/fyber/inneractive/sdk/player/controller/a;->p:Lcom/fyber/inneractive/sdk/player/mediaplayer/a; if-eqz v0, :cond_0 .line 2 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/player/mediaplayer/a;->start()V :cond_0 return-void .end method