public class HLSTimestampRange
extends java.lang.Object
implements java.io.Serializable
The start and end of the time stamp range for the requested media.
This value should not be present if PlaybackType
is
LIVE
.
The values in the HLSTimestampRange
are inclusive. Fragments
that begin before the start time but continue past it, or fragments that
begin before the end time but continue past it, are included in the session.
Constructor and Description |
---|
HLSTimestampRange() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getEndTimestamp()
The end of the time stamp range for the requested media.
|
java.util.Date |
getStartTimestamp()
The start of the time stamp range for the requested media.
|
int |
hashCode() |
void |
setEndTimestamp(java.util.Date endTimestamp)
The end of the time stamp range for the requested media.
|
void |
setStartTimestamp(java.util.Date startTimestamp)
The start of the time stamp range for the requested media.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
HLSTimestampRange |
withEndTimestamp(java.util.Date endTimestamp)
The end of the time stamp range for the requested media.
|
HLSTimestampRange |
withStartTimestamp(java.util.Date startTimestamp)
The start of the time stamp range for the requested media.
|
public java.util.Date getStartTimestamp()
The start of the time stamp range for the requested media.
If the HLSTimestampRange
value is specified, the
StartTimestamp
value is required.
This value is inclusive. Fragments that start before the
StartingTimestamp
and continue past it are included in the
session.
The start of the time stamp range for the requested media.
If the HLSTimestampRange
value is specified, the
StartTimestamp
value is required.
This value is inclusive. Fragments that start before the
StartingTimestamp
and continue past it are included
in the session.
public void setStartTimestamp(java.util.Date startTimestamp)
The start of the time stamp range for the requested media.
If the HLSTimestampRange
value is specified, the
StartTimestamp
value is required.
This value is inclusive. Fragments that start before the
StartingTimestamp
and continue past it are included in the
session.
startTimestamp
- The start of the time stamp range for the requested media.
If the HLSTimestampRange
value is specified, the
StartTimestamp
value is required.
This value is inclusive. Fragments that start before the
StartingTimestamp
and continue past it are
included in the session.
public HLSTimestampRange withStartTimestamp(java.util.Date startTimestamp)
The start of the time stamp range for the requested media.
If the HLSTimestampRange
value is specified, the
StartTimestamp
value is required.
This value is inclusive. Fragments that start before the
StartingTimestamp
and continue past it are included in the
session.
Returns a reference to this object so that method calls can be chained together.
startTimestamp
- The start of the time stamp range for the requested media.
If the HLSTimestampRange
value is specified, the
StartTimestamp
value is required.
This value is inclusive. Fragments that start before the
StartingTimestamp
and continue past it are
included in the session.
public java.util.Date getEndTimestamp()
The end of the time stamp range for the requested media. This value must
be within three hours of the specified StartTimestamp
, and
it must be later than the StartTimestamp
value.
If FragmentSelectorType
for the request is
SERVER_TIMESTAMP
, this value must be in the past.
If the HLSTimestampRange
value is specified, the
EndTimestamp
value is required.
This value is inclusive. The EndTimestamp
is compared to the
(starting) time stamp of the fragment. Fragments that start before the
EndTimestamp
value and continue past it are included in the
session.
The end of the time stamp range for the requested media. This
value must be within three hours of the specified
StartTimestamp
, and it must be later than the
StartTimestamp
value.
If FragmentSelectorType
for the request is
SERVER_TIMESTAMP
, this value must be in the past.
If the HLSTimestampRange
value is specified, the
EndTimestamp
value is required.
This value is inclusive. The EndTimestamp
is
compared to the (starting) time stamp of the fragment. Fragments
that start before the EndTimestamp
value and
continue past it are included in the session.
public void setEndTimestamp(java.util.Date endTimestamp)
The end of the time stamp range for the requested media. This value must
be within three hours of the specified StartTimestamp
, and
it must be later than the StartTimestamp
value.
If FragmentSelectorType
for the request is
SERVER_TIMESTAMP
, this value must be in the past.
If the HLSTimestampRange
value is specified, the
EndTimestamp
value is required.
This value is inclusive. The EndTimestamp
is compared to the
(starting) time stamp of the fragment. Fragments that start before the
EndTimestamp
value and continue past it are included in the
session.
endTimestamp
-
The end of the time stamp range for the requested media. This
value must be within three hours of the specified
StartTimestamp
, and it must be later than the
StartTimestamp
value.
If FragmentSelectorType
for the request is
SERVER_TIMESTAMP
, this value must be in the past.
If the HLSTimestampRange
value is specified, the
EndTimestamp
value is required.
This value is inclusive. The EndTimestamp
is
compared to the (starting) time stamp of the fragment.
Fragments that start before the EndTimestamp
value and continue past it are included in the session.
public HLSTimestampRange withEndTimestamp(java.util.Date endTimestamp)
The end of the time stamp range for the requested media. This value must
be within three hours of the specified StartTimestamp
, and
it must be later than the StartTimestamp
value.
If FragmentSelectorType
for the request is
SERVER_TIMESTAMP
, this value must be in the past.
If the HLSTimestampRange
value is specified, the
EndTimestamp
value is required.
This value is inclusive. The EndTimestamp
is compared to the
(starting) time stamp of the fragment. Fragments that start before the
EndTimestamp
value and continue past it are included in the
session.
Returns a reference to this object so that method calls can be chained together.
endTimestamp
-
The end of the time stamp range for the requested media. This
value must be within three hours of the specified
StartTimestamp
, and it must be later than the
StartTimestamp
value.
If FragmentSelectorType
for the request is
SERVER_TIMESTAMP
, this value must be in the past.
If the HLSTimestampRange
value is specified, the
EndTimestamp
value is required.
This value is inclusive. The EndTimestamp
is
compared to the (starting) time stamp of the fragment.
Fragments that start before the EndTimestamp
value and continue past it are included in the session.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.