a.smali
.class public final Lf/b/b/b/j1/a/a;
.super Lcom/google/android/exoplayer2/upstream/i;
.source ""
# instance fields
.field private e:Lnet/butterflytv/rtmp_client/RtmpClient;
.field private f:Landroid/net/Uri;
# direct methods
.method static constructor <clinit>()V
.registers 1
const-string v0, "goog.exo.rtmp"
invoke-static {v0}, Lf/b/b/b/e0;->a(Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>()V
.registers 2
const/4 v0, 0x1
invoke-direct {p0, v0}, Lcom/google/android/exoplayer2/upstream/i;-><init>(Z)V
return-void
.end method
# virtual methods
.method public close()V
.registers 3
iget-object v0, p0, Lf/b/b/b/j1/a/a;->f:Landroid/net/Uri;
const/4 v1, 0x0
if-eqz v0, :cond_a
iput-object v1, p0, Lf/b/b/b/j1/a/a;->f:Landroid/net/Uri;
invoke-virtual {p0}, Lcom/google/android/exoplayer2/upstream/i;->e()V
:cond_a
iget-object v0, p0, Lf/b/b/b/j1/a/a;->e:Lnet/butterflytv/rtmp_client/RtmpClient;
if-eqz v0, :cond_13
invoke-virtual {v0}, Lnet/butterflytv/rtmp_client/RtmpClient;->a()V
iput-object v1, p0, Lf/b/b/b/j1/a/a;->e:Lnet/butterflytv/rtmp_client/RtmpClient;
:cond_13
return-void
.end method
.method public d(Lcom/google/android/exoplayer2/upstream/q;)J
.registers 5
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/upstream/i;->f(Lcom/google/android/exoplayer2/upstream/q;)V
new-instance v0, Lnet/butterflytv/rtmp_client/RtmpClient;
invoke-direct {v0}, Lnet/butterflytv/rtmp_client/RtmpClient;-><init>()V
iput-object v0, p0, Lf/b/b/b/j1/a/a;->e:Lnet/butterflytv/rtmp_client/RtmpClient;
iget-object v1, p1, Lcom/google/android/exoplayer2/upstream/q;->a:Landroid/net/Uri;
invoke-virtual {v1}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Lnet/butterflytv/rtmp_client/RtmpClient;->b(Ljava/lang/String;Z)V
iget-object v0, p1, Lcom/google/android/exoplayer2/upstream/q;->a:Landroid/net/Uri;
iput-object v0, p0, Lf/b/b/b/j1/a/a;->f:Landroid/net/Uri;
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/upstream/i;->g(Lcom/google/android/exoplayer2/upstream/q;)V
const-wide/16 v0, -0x1
return-wide v0
.end method
.method public getUri()Landroid/net/Uri;
.registers 2
iget-object v0, p0, Lf/b/b/b/j1/a/a;->f:Landroid/net/Uri;
return-object v0
.end method
.method public read([BII)I
.registers 5
iget-object v0, p0, Lf/b/b/b/j1/a/a;->e:Lnet/butterflytv/rtmp_client/RtmpClient;
invoke-static {v0}, Lf/b/b/b/s1/m0;->h(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Lnet/butterflytv/rtmp_client/RtmpClient;
invoke-virtual {v0, p1, p2, p3}, Lnet/butterflytv/rtmp_client/RtmpClient;->c([BII)I
move-result p1
const/4 p2, -0x1
if-ne p1, p2, :cond_f
return p2
:cond_f
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/upstream/i;->c(I)V
return p1
.end method