Representation.smali
.class public abstract Lcom/google/android/exoplayer2/source/dash/manifest/Representation;
.super Ljava/lang/Object;
.source "Representation.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/exoplayer2/source/dash/manifest/Representation$MultiSegmentRepresentation;,
Lcom/google/android/exoplayer2/source/dash/manifest/Representation$SingleSegmentRepresentation;
}
.end annotation
# static fields
.field public static final REVISION_ID_DEFAULT:J = -0x1L
# instance fields
.field public final baseUrl:Ljava/lang/String;
.field public final contentId:Ljava/lang/String;
.field public final format:Lcom/google/android/exoplayer2/Format;
.field public final inbandEventStreams:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/android/exoplayer2/source/dash/manifest/SchemeValuePair;",
">;"
}
.end annotation
.end field
.field private final initializationUri:Lcom/google/android/exoplayer2/source/dash/manifest/RangedUri;
.field public final presentationTimeOffsetUs:J
.field public final revisionId:J
# direct methods
.method private constructor <init>(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;Ljava/util/List;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"J",
"Lcom/google/android/exoplayer2/Format;",
"Ljava/lang/String;",
"Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;",
"Ljava/util/List<",
"Lcom/google/android/exoplayer2/source/dash/manifest/SchemeValuePair;",
">;)V"
}
.end annotation
.line 133
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 134
iput-object p1, p0, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->contentId:Ljava/lang/String;
.line 135
iput-wide p2, p0, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->revisionId:J
.line 136
iput-object p4, p0, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->format:Lcom/google/android/exoplayer2/Format;
.line 137
iput-object p5, p0, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->baseUrl:Ljava/lang/String;
if-nez p7, :cond_12
.line 139
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object p1
goto :goto_16
.line 140
:cond_12
invoke-static {p7}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object p1
:goto_16
iput-object p1, p0, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->inbandEventStreams:Ljava/util/List;
.line 141
invoke-virtual {p6, p0}, Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;->getInitialization(Lcom/google/android/exoplayer2/source/dash/manifest/Representation;)Lcom/google/android/exoplayer2/source/dash/manifest/RangedUri;
move-result-object p1
iput-object p1, p0, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->initializationUri:Lcom/google/android/exoplayer2/source/dash/manifest/RangedUri;
.line 142
invoke-virtual {p6}, Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;->getPresentationTimeOffsetUs()J
move-result-wide p1
iput-wide p1, p0, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->presentationTimeOffsetUs:J
return-void
.end method
.method synthetic constructor <init>(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;Ljava/util/List;Lcom/google/android/exoplayer2/source/dash/manifest/Representation$1;)V
.registers 9
.line 30
invoke-direct/range {p0 .. p7}, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;-><init>(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;Ljava/util/List;)V
return-void
.end method
.method public static newInstance(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;)Lcom/google/android/exoplayer2/source/dash/manifest/Representation;
.registers 13
const/4 v6, 0x0
move-object v0, p0
move-wide v1, p1
move-object v3, p3
move-object v4, p4
move-object v5, p5
.line 84
invoke-static/range {v0 .. v6}, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->newInstance(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;Ljava/util/List;)Lcom/google/android/exoplayer2/source/dash/manifest/Representation;
move-result-object p0
return-object p0
.end method
.method public static newInstance(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;Ljava/util/List;)Lcom/google/android/exoplayer2/source/dash/manifest/Representation;
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"J",
"Lcom/google/android/exoplayer2/Format;",
"Ljava/lang/String;",
"Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;",
"Ljava/util/List<",
"Lcom/google/android/exoplayer2/source/dash/manifest/SchemeValuePair;",
">;)",
"Lcom/google/android/exoplayer2/source/dash/manifest/Representation;"
}
.end annotation
const/4 v7, 0x0
move-object v0, p0
move-wide v1, p1
move-object v3, p3
move-object v4, p4
move-object v5, p5
move-object v6, p6
.line 100
invoke-static/range {v0 .. v7}, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->newInstance(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;Ljava/util/List;Ljava/lang/String;)Lcom/google/android/exoplayer2/source/dash/manifest/Representation;
move-result-object p0
return-object p0
.end method
.method public static newInstance(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;Ljava/util/List;Ljava/lang/String;)Lcom/google/android/exoplayer2/source/dash/manifest/Representation;
.registers 21
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"J",
"Lcom/google/android/exoplayer2/Format;",
"Ljava/lang/String;",
"Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase;",
"Ljava/util/List<",
"Lcom/google/android/exoplayer2/source/dash/manifest/SchemeValuePair;",
">;",
"Ljava/lang/String;",
")",
"Lcom/google/android/exoplayer2/source/dash/manifest/Representation;"
}
.end annotation
move-object/from16 v0, p5
.line 120
instance-of v1, v0, Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase$SingleSegmentBase;
if-eqz v1, :cond_1c
.line 121
new-instance v1, Lcom/google/android/exoplayer2/source/dash/manifest/Representation$SingleSegmentRepresentation;
move-object v8, v0
check-cast v8, Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase$SingleSegmentBase;
const-wide/16 v11, -0x1
move-object v2, v1
move-object v3, p0
move-wide v4, p1
move-object/from16 v6, p3
move-object/from16 v7, p4
move-object/from16 v9, p6
move-object/from16 v10, p7
invoke-direct/range {v2 .. v12}, Lcom/google/android/exoplayer2/source/dash/manifest/Representation$SingleSegmentRepresentation;-><init>(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase$SingleSegmentBase;Ljava/util/List;Ljava/lang/String;J)V
return-object v1
.line 123
:cond_1c
instance-of v1, v0, Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase$MultiSegmentBase;
if-eqz v1, :cond_32
.line 124
new-instance v1, Lcom/google/android/exoplayer2/source/dash/manifest/Representation$MultiSegmentRepresentation;
move-object v8, v0
check-cast v8, Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase$MultiSegmentBase;
move-object v2, v1
move-object v3, p0
move-wide v4, p1
move-object/from16 v6, p3
move-object/from16 v7, p4
move-object/from16 v9, p6
invoke-direct/range {v2 .. v9}, Lcom/google/android/exoplayer2/source/dash/manifest/Representation$MultiSegmentRepresentation;-><init>(Ljava/lang/String;JLcom/google/android/exoplayer2/Format;Ljava/lang/String;Lcom/google/android/exoplayer2/source/dash/manifest/SegmentBase$MultiSegmentBase;Ljava/util/List;)V
return-object v1
.line 127
:cond_32
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "segmentBase must be of type SingleSegmentBase or MultiSegmentBase"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
# virtual methods
.method public abstract getCacheKey()Ljava/lang/String;
.end method
.method public abstract getIndex()Lcom/google/android/exoplayer2/source/dash/DashSegmentIndex;
.end method
.method public abstract getIndexUri()Lcom/google/android/exoplayer2/source/dash/manifest/RangedUri;
.end method
.method public getInitializationUri()Lcom/google/android/exoplayer2/source/dash/manifest/RangedUri;
.registers 2
.line 150
iget-object v0, p0, Lcom/google/android/exoplayer2/source/dash/manifest/Representation;->initializationUri:Lcom/google/android/exoplayer2/source/dash/manifest/RangedUri;
return-object v0
.end method