StreamKey
@UnstableApi
class StreamKey : Comparable, Parcelable
A key for a subset of media that can be separately loaded (a "stream").
The stream key consists of a period index, a group index within the period and a stream index within the group. The interpretation of these indices depends on the type of media for which the stream key is used. Note that they are not the same as track group and track indices, because multiple tracks can be multiplexed into a single stream.
Application code should not generally attempt to build StreamKey instances directly. Instead, DownloadHelper.getDownloadRequest can be used to generate download requests with the correct StreamKeys for the track selections that have been configured on the helper.
MediaPeriod.getStreamKeys provides a lower level way of generating StreamKeys corresponding to a particular track selection.
Summary
Constants |
|
|---|---|
const Parcelable.Creator<StreamKey!>! |
Public constructors |
|---|
|
Creates an instance with |
|
Creates an instance of |
Public functions |
|
|---|---|
Int |
|
Int |
|
Boolean |
|
java-static StreamKey! |
fromBundle(bundle: Bundle!)Constructs an instance of |
Int |
hashCode() |
Bundle! |
toBundle() |
String! |
toString() |
Unit |
writeToParcel(dest: Parcel!, flags: Int) |
Constants
Public constructors
StreamKey
StreamKey(groupIndex: Int, streamIndex: Int)
Creates an instance with periodIndex set to 0.