diff --git a/ExoPlayer/Additions/IExoMediaDrmOnEventListener.cs b/ExoPlayer/Additions/IExoMediaDrmOnEventListener.cs new file mode 100644 index 00000000..2c3753e9 --- /dev/null +++ b/ExoPlayer/Additions/IExoMediaDrmOnEventListener.cs @@ -0,0 +1,16 @@ +using System; + +using Object = global::Java.Lang.Object; + +namespace Com.Google.Android.Exoplayer2.Drm +{ + public partial interface IExoMediaDrmOnEventListener + { + + } + + public interface IExoMediaDrmOnEventListener : IExoMediaDrmOnEventListener + { + + } +} diff --git a/ExoPlayer/Additions/MissingOverrideAdditions/SimpleSubtitleDecoder.cs b/ExoPlayer/Additions/MissingOverrideAdditions/SimpleSubtitleDecoder.cs new file mode 100644 index 00000000..e2a9f03c --- /dev/null +++ b/ExoPlayer/Additions/MissingOverrideAdditions/SimpleSubtitleDecoder.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using Android.App; +using Android.Content; +using Android.OS; +using Android.Runtime; +using Android.Views; +using Android.Widget; + +namespace Com.Google.Android.Exoplayer2.Text +{ + public partial class SimpleSubtitleDecoder + { + static IntPtr id_createInputBuffer; + // Metadata.xml XPath method reference: path="/api/package[@name='com.google.android.exoplayer2.text']/class[@name='SimpleSubtitleDecoder']/method[@name='createInputBuffer' and count(parameter)=0]" + [Register("createInputBuffer", "()Lcom/google/android/exoplayer2/text/SubtitleInputBuffer;", "")] + protected override unsafe Java.Lang.Object CreateInputBuffer() + { + if (id_createInputBuffer == IntPtr.Zero) + id_createInputBuffer = JNIEnv.GetMethodID(class_ref, "createInputBuffer", "()Lcom/google/android/exoplayer2/text/SubtitleInputBuffer;"); + try + { + return global::Java.Lang.Object.GetObject(JNIEnv.CallObjectMethod(((global::Java.Lang.Object)this).Handle, id_createInputBuffer), JniHandleOwnership.TransferLocalRef); + } + finally + { + } + } + + static IntPtr id_createOutputBuffer; + // Metadata.xml XPath method reference: path="/api/package[@name='com.google.android.exoplayer2.text']/class[@name='SimpleSubtitleDecoder']/method[@name='createOutputBuffer' and count(parameter)=0]" + [Register("createOutputBuffer", "()Lcom/google/android/exoplayer2/text/SubtitleOutputBuffer;", "")] + protected override unsafe Java.Lang.Object CreateOutputBuffer() + { + if (id_createOutputBuffer == IntPtr.Zero) + id_createOutputBuffer = JNIEnv.GetMethodID(class_ref, "createOutputBuffer", "()Lcom/google/android/exoplayer2/text/SubtitleOutputBuffer;"); + try + { + return global::Java.Lang.Object.GetObject(JNIEnv.CallObjectMethod(((global::Java.Lang.Object)this).Handle, id_createOutputBuffer), JniHandleOwnership.TransferLocalRef); + } + finally + { + } + } + /* + static IntPtr id_decode_Lcom_google_android_exoplayer2_text_SubtitleInputBuffer_Lcom_google_android_exoplayer2_text_SubtitleOutputBuffer_Z; + // Metadata.xml XPath method reference: path="/api/package[@name='com.google.android.exoplayer2.text']/class[@name='SimpleSubtitleDecoder']/method[@name='decode' and count(parameter)=3 and parameter[1][@type='com.google.android.exoplayer2.text.SubtitleInputBuffer'] and parameter[2][@type='com.google.android.exoplayer2.text.SubtitleOutputBuffer'] and parameter[3][@type='boolean']]" + [Register("decode", "(Lcom/google/android/exoplayer2/text/SubtitleInputBuffer;Lcom/google/android/exoplayer2/text/SubtitleOutputBuffer;Z)Lcom/google/android/exoplayer2/text/SubtitleDecoderException;", "")] + protected override unsafe global::Java.Lang.Object Decode(global::Java.Lang.Object p0, global::Java.Lang.Object p1, bool p2) + { + if (id_decode_Lcom_google_android_exoplayer2_text_SubtitleInputBuffer_Lcom_google_android_exoplayer2_text_SubtitleOutputBuffer_Z == IntPtr.Zero) + id_decode_Lcom_google_android_exoplayer2_text_SubtitleInputBuffer_Lcom_google_android_exoplayer2_text_SubtitleOutputBuffer_Z = JNIEnv.GetMethodID(class_ref, "decode", "(Lcom/google/android/exoplayer2/text/SubtitleInputBuffer;Lcom/google/android/exoplayer2/text/SubtitleOutputBuffer;Z)Lcom/google/android/exoplayer2/text/SubtitleDecoderException;"); + try + { + JValue* __args = stackalloc JValue[3]; + __args[0] = new JValue(p0); + __args[1] = new JValue(p1); + __args[2] = new JValue(p2); + global::Com.Google.Android.Exoplayer2.Text.SubtitleDecoderException __ret = global::Java.Lang.Object.GetObject(JNIEnv.CallObjectMethod(((global::Java.Lang.Object)this).Handle, id_decode_Lcom_google_android_exoplayer2_text_SubtitleInputBuffer_Lcom_google_android_exoplayer2_text_SubtitleOutputBuffer_Z, __args), JniHandleOwnership.TransferLocalRef); + return __ret; + } + finally + { + } + }*/ + } +} \ No newline at end of file diff --git a/ExoPlayer/Additions/TrackSelections.cs b/ExoPlayer/Additions/TrackSelections.cs new file mode 100644 index 00000000..ac1bb856 --- /dev/null +++ b/ExoPlayer/Additions/TrackSelections.cs @@ -0,0 +1,15 @@ +using System; +using Object = global::Java.Lang.Object; + +namespace Com.Google.Android.Exoplayer2.Trackselection +{ + public partial class TrackSelections : global::Java.Lang.Object + { + + } + + public class TrackSelections : TrackSelections + { + + } +} diff --git a/ExoPlayer/ExoPlayer.csproj b/ExoPlayer/ExoPlayer.csproj index 742c9d15..6f200248 100644 --- a/ExoPlayer/ExoPlayer.csproj +++ b/ExoPlayer/ExoPlayer.csproj @@ -34,25 +34,512 @@ false false + + JavaDoc + + + ..\packages\Xamarin.Android.Support.v4.23.4.0.1\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + \ No newline at end of file diff --git a/ExoPlayer/Jars/exoplayer-r1.5.10.aar b/ExoPlayer/Jars/exoplayer-r1.5.10.aar deleted file mode 100644 index 5b06cc78..00000000 Binary files a/ExoPlayer/Jars/exoplayer-r1.5.10.aar and /dev/null differ diff --git a/ExoPlayer/Jars/exoplayer-r2.0.4.aar b/ExoPlayer/Jars/exoplayer-r2.0.4.aar new file mode 100644 index 00000000..9cfe5493 Binary files /dev/null and b/ExoPlayer/Jars/exoplayer-r2.0.4.aar differ diff --git a/ExoPlayer/JavaDoc/META-INF/MANIFEST.MF b/ExoPlayer/JavaDoc/META-INF/MANIFEST.MF new file mode 100644 index 00000000..59499bce --- /dev/null +++ b/ExoPlayer/JavaDoc/META-INF/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/ExoPlayer/JavaDoc/allclasses-frame.html b/ExoPlayer/JavaDoc/allclasses-frame.html new file mode 100644 index 00000000..dd56f597 --- /dev/null +++ b/ExoPlayer/JavaDoc/allclasses-frame.html @@ -0,0 +1,366 @@ + + + + + +All Classes (library API) + + + + + +

All Classes

+
+ +
+ + diff --git a/ExoPlayer/JavaDoc/allclasses-noframe.html b/ExoPlayer/JavaDoc/allclasses-noframe.html new file mode 100644 index 00000000..db84986a --- /dev/null +++ b/ExoPlayer/JavaDoc/allclasses-noframe.html @@ -0,0 +1,366 @@ + + + + + +All Classes (library API) + + + + + +

All Classes

+
+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/BaseRenderer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/BaseRenderer.html new file mode 100644 index 00000000..fdaf5819 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/BaseRenderer.html @@ -0,0 +1,1022 @@ + + + + + +BaseRenderer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class BaseRenderer

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.BaseRenderer
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BaseRenderer

        +
        public BaseRenderer(int trackType)
        +
        +
        Parameters:
        +
        trackType - The track type that the renderer handles. One of the C + TRACK_TYPE_* constants.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.BufferFlags.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.BufferFlags.html new file mode 100644 index 00000000..d208f67e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.BufferFlags.html @@ -0,0 +1,163 @@ + + + + + +C.BufferFlags (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Annotation Type C.BufferFlags

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface C.BufferFlags
    +
    Flags which can apply to a buffer containing a media sample.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.ContentType.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.ContentType.html new file mode 100644 index 00000000..34a7cc18 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.ContentType.html @@ -0,0 +1,163 @@ + + + + + +C.ContentType (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Annotation Type C.ContentType

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface C.ContentType
    +
    Represents a streaming or other media type.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.CryptoMode.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.CryptoMode.html new file mode 100644 index 00000000..ba20220b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.CryptoMode.html @@ -0,0 +1,163 @@ + + + + + +C.CryptoMode (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Annotation Type C.CryptoMode

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface C.CryptoMode
    +
    Crypto modes for a codec.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.Encoding.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.Encoding.html new file mode 100644 index 00000000..957fd7b1 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.Encoding.html @@ -0,0 +1,163 @@ + + + + + +C.Encoding (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Annotation Type C.Encoding

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface C.Encoding
    +
    Represents an audio encoding, or an invalid or unset value.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.PcmEncoding.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.PcmEncoding.html new file mode 100644 index 00000000..972a8f58 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.PcmEncoding.html @@ -0,0 +1,163 @@ + + + + + +C.PcmEncoding (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Annotation Type C.PcmEncoding

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface C.PcmEncoding
    +
    Represents a PCM audio encoding, or an invalid or unset value.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.SelectionFlags.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.SelectionFlags.html new file mode 100644 index 00000000..507573b9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.SelectionFlags.html @@ -0,0 +1,163 @@ + + + + + +C.SelectionFlags (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Annotation Type C.SelectionFlags

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface C.SelectionFlags
    +
    Track selection flags.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.StereoMode.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.StereoMode.html new file mode 100644 index 00000000..6de6053a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.StereoMode.html @@ -0,0 +1,163 @@ + + + + + +C.StereoMode (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Annotation Type C.StereoMode

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface C.StereoMode
    +
    The stereo mode for 360/3D/VR videos.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.html new file mode 100644 index 00000000..8e6171bf --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/C.html @@ -0,0 +1,1808 @@ + + + + + +C (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class C

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.C
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class C
    +extends java.lang.Object
    +
    Defines constants used by the library.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        TIME_END_OF_SOURCE

        +
        public static final long TIME_END_OF_SOURCE
        +
        Special constant representing a time corresponding to the end of a source. Suitable for use in + any time base.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TIME_UNSET

        +
        public static final long TIME_UNSET
        +
        Special constant representing an unset or unknown time or duration. Suitable for use in any + time base.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        INDEX_UNSET

        +
        public static final int INDEX_UNSET
        +
        Represents an unset or unknown index.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        POSITION_UNSET

        +
        public static final int POSITION_UNSET
        +
        Represents an unset or unknown position.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        LENGTH_UNSET

        +
        public static final int LENGTH_UNSET
        +
        Represents an unset or unknown length.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        MICROS_PER_SECOND

        +
        public static final long MICROS_PER_SECOND
        +
        The number of microseconds in one second.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        NANOS_PER_SECOND

        +
        public static final long NANOS_PER_SECOND
        +
        The number of nanoseconds in one second.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        UTF8_NAME

        +
        public static final java.lang.String UTF8_NAME
        +
        The name of the UTF-8 charset.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        CRYPTO_MODE_UNENCRYPTED

        +
        public static final int CRYPTO_MODE_UNENCRYPTED
        +
        +
        See Also:
        +
        MediaCodec.CRYPTO_MODE_UNENCRYPTED, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        CRYPTO_MODE_AES_CTR

        +
        public static final int CRYPTO_MODE_AES_CTR
        +
        +
        See Also:
        +
        MediaCodec.CRYPTO_MODE_AES_CTR, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        CRYPTO_MODE_AES_CBC

        +
        public static final int CRYPTO_MODE_AES_CBC
        +
        +
        See Also:
        +
        MediaCodec.CRYPTO_MODE_AES_CBC, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCODING_INVALID

        +
        public static final int ENCODING_INVALID
        +
        +
        See Also:
        +
        AudioFormat.ENCODING_INVALID, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCODING_PCM_8BIT

        +
        public static final int ENCODING_PCM_8BIT
        +
        +
        See Also:
        +
        AudioFormat.ENCODING_PCM_8BIT, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCODING_PCM_16BIT

        +
        public static final int ENCODING_PCM_16BIT
        +
        +
        See Also:
        +
        AudioFormat.ENCODING_PCM_16BIT, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCODING_PCM_24BIT

        +
        public static final int ENCODING_PCM_24BIT
        +
        PCM encoding with 24 bits per sample.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCODING_PCM_32BIT

        +
        public static final int ENCODING_PCM_32BIT
        +
        PCM encoding with 32 bits per sample.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCODING_AC3

        +
        public static final int ENCODING_AC3
        +
        +
        See Also:
        +
        AudioFormat.ENCODING_AC3, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCODING_E_AC3

        +
        public static final int ENCODING_E_AC3
        +
        +
        See Also:
        +
        AudioFormat.ENCODING_E_AC3, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCODING_DTS

        +
        public static final int ENCODING_DTS
        +
        +
        See Also:
        +
        AudioFormat.ENCODING_DTS, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCODING_DTS_HD

        +
        public static final int ENCODING_DTS_HD
        +
        +
        See Also:
        +
        AudioFormat.ENCODING_DTS_HD, +Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        CHANNEL_OUT_7POINT1_SURROUND

        +
        public static final int CHANNEL_OUT_7POINT1_SURROUND
        +
        +
        See Also:
        +
        AudioFormat.CHANNEL_OUT_7POINT1_SURROUND
        +
        +
      • +
      + + + +
        +
      • +

        BUFFER_FLAG_KEY_FRAME

        +
        public static final int BUFFER_FLAG_KEY_FRAME
        +
        Indicates that a buffer holds a synchronization sample.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        BUFFER_FLAG_END_OF_STREAM

        +
        public static final int BUFFER_FLAG_END_OF_STREAM
        +
        Flag for empty buffers that signal that the end of the stream was reached.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        BUFFER_FLAG_ENCRYPTED

        +
        public static final int BUFFER_FLAG_ENCRYPTED
        +
        Indicates that a buffer is (at least partially) encrypted.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        BUFFER_FLAG_DECODE_ONLY

        +
        public static final int BUFFER_FLAG_DECODE_ONLY
        +
        Indicates that a buffer should be decoded but not rendered.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SELECTION_FLAG_DEFAULT

        +
        public static final int SELECTION_FLAG_DEFAULT
        +
        Indicates that the track should be selected if user preferences do not state otherwise.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SELECTION_FLAG_FORCED

        +
        public static final int SELECTION_FLAG_FORCED
        +
        Indicates that the track must be displayed. Only applies to text tracks.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SELECTION_FLAG_AUTOSELECT

        +
        public static final int SELECTION_FLAG_AUTOSELECT
        +
        Indicates that the player may choose to play the track in absence of an explicit user + preference.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        RESULT_END_OF_INPUT

        +
        public static final int RESULT_END_OF_INPUT
        +
        A return value for methods where the end of an input was encountered.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        RESULT_MAX_LENGTH_EXCEEDED

        +
        public static final int RESULT_MAX_LENGTH_EXCEEDED
        +
        A return value for methods where the length of parsed data exceeds the maximum length allowed.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        RESULT_NOTHING_READ

        +
        public static final int RESULT_NOTHING_READ
        +
        A return value for methods where nothing was read.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        RESULT_BUFFER_READ

        +
        public static final int RESULT_BUFFER_READ
        +
        A return value for methods where a buffer was read.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        RESULT_FORMAT_READ

        +
        public static final int RESULT_FORMAT_READ
        +
        A return value for methods where a format was read.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DATA_TYPE_UNKNOWN

        +
        public static final int DATA_TYPE_UNKNOWN
        +
        A data type constant for data of unknown or unspecified type.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DATA_TYPE_MEDIA

        +
        public static final int DATA_TYPE_MEDIA
        +
        A data type constant for media, typically containing media samples.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DATA_TYPE_MEDIA_INITIALIZATION

        +
        public static final int DATA_TYPE_MEDIA_INITIALIZATION
        +
        A data type constant for media, typically containing only initialization data.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DATA_TYPE_DRM

        +
        public static final int DATA_TYPE_DRM
        +
        A data type constant for drm or encryption data.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DATA_TYPE_MANIFEST

        +
        public static final int DATA_TYPE_MANIFEST
        +
        A data type constant for a manifest file.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DATA_TYPE_TIME_SYNCHRONIZATION

        +
        public static final int DATA_TYPE_TIME_SYNCHRONIZATION
        +
        A data type constant for time synchronization data.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DATA_TYPE_CUSTOM_BASE

        +
        public static final int DATA_TYPE_CUSTOM_BASE
        +
        Applications or extensions may define custom DATA_TYPE_* constants greater than or + equal to this value.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TRACK_TYPE_UNKNOWN

        +
        public static final int TRACK_TYPE_UNKNOWN
        +
        A type constant for tracks of unknown type.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TRACK_TYPE_DEFAULT

        +
        public static final int TRACK_TYPE_DEFAULT
        +
        A type constant for tracks of some default type, where the type itself is unknown.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TRACK_TYPE_AUDIO

        +
        public static final int TRACK_TYPE_AUDIO
        +
        A type constant for audio tracks.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TRACK_TYPE_VIDEO

        +
        public static final int TRACK_TYPE_VIDEO
        +
        A type constant for video tracks.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TRACK_TYPE_TEXT

        +
        public static final int TRACK_TYPE_TEXT
        +
        A type constant for text tracks.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TRACK_TYPE_METADATA

        +
        public static final int TRACK_TYPE_METADATA
        +
        A type constant for metadata tracks.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TRACK_TYPE_CUSTOM_BASE

        +
        public static final int TRACK_TYPE_CUSTOM_BASE
        +
        Applications or extensions may define custom TRACK_TYPE_* constants greater than or + equal to this value.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SELECTION_REASON_UNKNOWN

        +
        public static final int SELECTION_REASON_UNKNOWN
        +
        A selection reason constant for selections whose reasons are unknown or unspecified.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SELECTION_REASON_INITIAL

        +
        public static final int SELECTION_REASON_INITIAL
        +
        A selection reason constant for an initial track selection.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SELECTION_REASON_MANUAL

        +
        public static final int SELECTION_REASON_MANUAL
        +
        A selection reason constant for an manual (i.e. user initiated) track selection.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SELECTION_REASON_ADAPTIVE

        +
        public static final int SELECTION_REASON_ADAPTIVE
        +
        A selection reason constant for an adaptive track selection.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SELECTION_REASON_TRICK_PLAY

        +
        public static final int SELECTION_REASON_TRICK_PLAY
        +
        A selection reason constant for a trick play track selection.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SELECTION_REASON_CUSTOM_BASE

        +
        public static final int SELECTION_REASON_CUSTOM_BASE
        +
        Applications or extensions may define custom SELECTION_REASON_* constants greater than + or equal to this value.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_BUFFER_SEGMENT_SIZE

        +
        public static final int DEFAULT_BUFFER_SEGMENT_SIZE
        +
        A default size in bytes for an individual allocation that forms part of a larger buffer.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_VIDEO_BUFFER_SIZE

        +
        public static final int DEFAULT_VIDEO_BUFFER_SIZE
        +
        A default size in bytes for a video buffer.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_AUDIO_BUFFER_SIZE

        +
        public static final int DEFAULT_AUDIO_BUFFER_SIZE
        +
        A default size in bytes for an audio buffer.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_TEXT_BUFFER_SIZE

        +
        public static final int DEFAULT_TEXT_BUFFER_SIZE
        +
        A default size in bytes for a text buffer.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_METADATA_BUFFER_SIZE

        +
        public static final int DEFAULT_METADATA_BUFFER_SIZE
        +
        A default size in bytes for a metadata buffer.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_MUXED_BUFFER_SIZE

        +
        public static final int DEFAULT_MUXED_BUFFER_SIZE
        +
        A default size in bytes for a muxed buffer (e.g. containing video, audio and text).
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        UUID_NIL

        +
        public static final java.util.UUID UUID_NIL
        +
        The Nil UUID as defined by + RFC4122.
        +
      • +
      + + + +
        +
      • +

        WIDEVINE_UUID

        +
        public static final java.util.UUID WIDEVINE_UUID
        +
        UUID for the Widevine DRM scheme. +

        + Widevine is supported on Android devices running Android 4.3 (API Level 18) and up.
        +
      • +
      + + + +
        +
      • +

        PLAYREADY_UUID

        +
        public static final java.util.UUID PLAYREADY_UUID
        +
        UUID for the PlayReady DRM scheme. +

        + PlayReady is supported on all AndroidTV devices. Note that most other Android devices do not + provide PlayReady support.

        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        MSG_CUSTOM_BASE

        +
        public static final int MSG_CUSTOM_BASE
        +
        Applications or extensions may define custom MSG_* constants greater than or equal to + this value.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STEREO_MODE_MONO

        +
        public static final int STEREO_MODE_MONO
        +
        Indicates Monoscopic stereo layout, used with 360/3D/VR videos.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STEREO_MODE_TOP_BOTTOM

        +
        public static final int STEREO_MODE_TOP_BOTTOM
        +
        Indicates Top-Bottom stereo layout, used with 360/3D/VR videos.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STEREO_MODE_LEFT_RIGHT

        +
        public static final int STEREO_MODE_LEFT_RIGHT
        +
        Indicates Left-Right stereo layout, used with 360/3D/VR videos.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        usToMs

        +
        public static long usToMs(long timeUs)
        +
        Converts a time in microseconds to the corresponding time in milliseconds, preserving + TIME_UNSET values.
        +
        +
        Parameters:
        +
        timeUs - The time in microseconds.
        +
        Returns:
        +
        The corresponding time in milliseconds.
        +
        +
      • +
      + + + +
        +
      • +

        msToUs

        +
        public static long msToUs(long timeMs)
        +
        Converts a time in milliseconds to the corresponding time in microseconds, preserving + TIME_UNSET values.
        +
        +
        Parameters:
        +
        timeMs - The time in milliseconds.
        +
        Returns:
        +
        The corresponding time in microseconds.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/DefaultLoadControl.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/DefaultLoadControl.html new file mode 100644 index 00000000..04cc221c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/DefaultLoadControl.html @@ -0,0 +1,600 @@ + + + + + +DefaultLoadControl (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class DefaultLoadControl

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.DefaultLoadControl
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    LoadControl
    +
    +
    +
    +
    public final class DefaultLoadControl
    +extends java.lang.Object
    +implements LoadControl
    +
    The default LoadControl implementation.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intDEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS +
      The default duration of media that must be buffered for playback to resume after a rebuffer, + in milliseconds.
      +
      static intDEFAULT_BUFFER_FOR_PLAYBACK_MS +
      The default duration of media that must be buffered for playback to start or resume following a + user action such as a seek, in milliseconds.
      +
      static intDEFAULT_MAX_BUFFER_MS +
      The default maximum duration of media that the player will attempt to buffer, in milliseconds.
      +
      static intDEFAULT_MIN_BUFFER_MS +
      The default minimum duration of media that the player will attempt to ensure is buffered at all + times, in milliseconds.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      DefaultLoadControl() +
      Constructs a new instance, using the DEFAULT_* constants defined in this class.
      +
      DefaultLoadControl(DefaultAllocator allocator) +
      Constructs a new instance, using the DEFAULT_* constants defined in this class.
      +
      DefaultLoadControl(DefaultAllocator allocator, + int minBufferMs, + int maxBufferMs, + long bufferForPlaybackMs, + long bufferForPlaybackAfterRebufferMs) +
      Constructs a new instance.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      AllocatorgetAllocator() +
      Returns the Allocator that should be used to obtain media buffer allocations.
      +
      voidonPrepared() +
      Called by the player when prepared with a new source.
      +
      voidonReleased() +
      Called by the player when released.
      +
      voidonStopped() +
      Called by the player when stopped.
      +
      voidonTracksSelected(Renderer[] renderers, + TrackGroupArray trackGroups, + TrackSelections<?> trackSelections) +
      Called by the player when a track selection occurs.
      +
      booleanshouldContinueLoading(long bufferedDurationUs) +
      Called by the player to determine whether it should continue to load the source.
      +
      booleanshouldStartPlayback(long bufferedDurationUs, + boolean rebuffering) +
      Called by the player to determine whether sufficient media is buffered for playback to be + started or resumed.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MIN_BUFFER_MS

        +
        public static final int DEFAULT_MIN_BUFFER_MS
        +
        The default minimum duration of media that the player will attempt to ensure is buffered at all + times, in milliseconds.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_MAX_BUFFER_MS

        +
        public static final int DEFAULT_MAX_BUFFER_MS
        +
        The default maximum duration of media that the player will attempt to buffer, in milliseconds.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_BUFFER_FOR_PLAYBACK_MS

        +
        public static final int DEFAULT_BUFFER_FOR_PLAYBACK_MS
        +
        The default duration of media that must be buffered for playback to start or resume following a + user action such as a seek, in milliseconds.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS

        +
        public static final int DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS
        +
        The default duration of media that must be buffered for playback to resume after a rebuffer, + in milliseconds. A rebuffer is defined to be caused by buffer depletion rather than a user + action.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultLoadControl

        +
        public DefaultLoadControl()
        +
        Constructs a new instance, using the DEFAULT_* constants defined in this class.
        +
      • +
      + + + +
        +
      • +

        DefaultLoadControl

        +
        public DefaultLoadControl(DefaultAllocator allocator)
        +
        Constructs a new instance, using the DEFAULT_* constants defined in this class.
        +
        +
        Parameters:
        +
        allocator - The DefaultAllocator used by the loader.
        +
        +
      • +
      + + + +
        +
      • +

        DefaultLoadControl

        +
        public DefaultLoadControl(DefaultAllocator allocator,
        +                          int minBufferMs,
        +                          int maxBufferMs,
        +                          long bufferForPlaybackMs,
        +                          long bufferForPlaybackAfterRebufferMs)
        +
        Constructs a new instance.
        +
        +
        Parameters:
        +
        allocator - The DefaultAllocator used by the loader.
        +
        minBufferMs - The minimum duration of media that the player will attempt to ensure is + buffered at all times, in milliseconds.
        +
        maxBufferMs - The maximum duration of media that the player will attempt buffer, in + milliseconds.
        +
        bufferForPlaybackMs - The duration of media that must be buffered for playback to start or + resume following a user action such as a seek, in milliseconds.
        +
        bufferForPlaybackAfterRebufferMs - The default duration of media that must be buffered for + playback to resume after a rebuffer, in milliseconds. A rebuffer is defined to be caused by + buffer depletion rather than a user action.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onPrepared

        +
        public void onPrepared()
        +
        Description copied from interface: LoadControl
        +
        Called by the player when prepared with a new source.
        +
        +
        Specified by:
        +
        onPrepared in interface LoadControl
        +
        +
      • +
      + + + +
        +
      • +

        onTracksSelected

        +
        public void onTracksSelected(Renderer[] renderers,
        +                             TrackGroupArray trackGroups,
        +                             TrackSelections<?> trackSelections)
        +
        Description copied from interface: LoadControl
        +
        Called by the player when a track selection occurs.
        +
        +
        Specified by:
        +
        onTracksSelected in interface LoadControl
        +
        Parameters:
        +
        renderers - The renderers.
        +
        trackGroups - The TrackGroups from which the selection was made.
        +
        trackSelections - The track selections that were made.
        +
        +
      • +
      + + + +
        +
      • +

        onStopped

        +
        public void onStopped()
        +
        Description copied from interface: LoadControl
        +
        Called by the player when stopped.
        +
        +
        Specified by:
        +
        onStopped in interface LoadControl
        +
        +
      • +
      + + + +
        +
      • +

        onReleased

        +
        public void onReleased()
        +
        Description copied from interface: LoadControl
        +
        Called by the player when released.
        +
        +
        Specified by:
        +
        onReleased in interface LoadControl
        +
        +
      • +
      + + + + + + + +
        +
      • +

        shouldStartPlayback

        +
        public boolean shouldStartPlayback(long bufferedDurationUs,
        +                                   boolean rebuffering)
        +
        Description copied from interface: LoadControl
        +
        Called by the player to determine whether sufficient media is buffered for playback to be + started or resumed.
        +
        +
        Specified by:
        +
        shouldStartPlayback in interface LoadControl
        +
        Parameters:
        +
        bufferedDurationUs - The duration of media that's currently buffered.
        +
        rebuffering - Whether the player is rebuffering. A rebuffer is defined to be caused by + buffer depletion rather than a user action. Hence this parameter is false during initial + buffering and when buffering as a result of a seek operation.
        +
        Returns:
        +
        Whether playback should be allowed to start or resume.
        +
        +
      • +
      + + + +
        +
      • +

        shouldContinueLoading

        +
        public boolean shouldContinueLoading(long bufferedDurationUs)
        +
        Description copied from interface: LoadControl
        +
        Called by the player to determine whether it should continue to load the source.
        +
        +
        Specified by:
        +
        shouldContinueLoading in interface LoadControl
        +
        Parameters:
        +
        bufferedDurationUs - The duration of media that's currently buffered.
        +
        Returns:
        +
        Whether the loading should continue.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlaybackException.Type.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlaybackException.Type.html new file mode 100644 index 00000000..5385c1d0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlaybackException.Type.html @@ -0,0 +1,163 @@ + + + + + +ExoPlaybackException.Type (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Annotation Type ExoPlaybackException.Type

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface ExoPlaybackException.Type
    +
    The type of source that produced the error.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlaybackException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlaybackException.html new file mode 100644 index 00000000..b0e129d6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlaybackException.html @@ -0,0 +1,498 @@ + + + + + +ExoPlaybackException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class ExoPlaybackException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.ExoPlaybackException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public final class ExoPlaybackException
    +extends java.lang.Exception
    +
    Thrown when a non-recoverable playback failure occurs.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createForRenderer

        +
        public static ExoPlaybackException createForRenderer(java.lang.Exception cause,
        +                                                     int rendererIndex)
        +
        Creates an instance of type TYPE_RENDERER.
        +
        +
        Parameters:
        +
        cause - The cause of the failure.
        +
        rendererIndex - The index of the renderer in which the failure occurred.
        +
        Returns:
        +
        The created instance.
        +
        +
      • +
      + + + +
        +
      • +

        createForSource

        +
        public static ExoPlaybackException createForSource(java.io.IOException cause)
        +
        Creates an instance of type TYPE_SOURCE.
        +
        +
        Parameters:
        +
        cause - The cause of the failure.
        +
        Returns:
        +
        The created instance.
        +
        +
      • +
      + + + +
        +
      • +

        getSourceException

        +
        public java.io.IOException getSourceException()
        +
        Retrieves the underlying error when type is TYPE_SOURCE.
        +
        +
        Throws:
        +
        java.lang.IllegalStateException - If type is not TYPE_SOURCE.
        +
        +
      • +
      + + + +
        +
      • +

        getRendererException

        +
        public java.lang.Exception getRendererException()
        +
        Retrieves the underlying error when type is TYPE_RENDERER.
        +
        +
        Throws:
        +
        java.lang.IllegalStateException - If type is not TYPE_RENDERER.
        +
        +
      • +
      + + + +
        +
      • +

        getUnexpectedException

        +
        public java.lang.RuntimeException getUnexpectedException()
        +
        Retrieves the underlying error when type is TYPE_UNEXPECTED.
        +
        +
        Throws:
        +
        java.lang.IllegalStateException - If type is not TYPE_UNEXPECTED.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.EventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.EventListener.html new file mode 100644 index 00000000..0f49410d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.EventListener.html @@ -0,0 +1,324 @@ + + + + + +ExoPlayer.EventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Interface ExoPlayer.EventListener

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    DebugTextViewHelper
    +
    +
    +
    Enclosing interface:
    +
    ExoPlayer
    +
    +
    +
    +
    public static interface ExoPlayer.EventListener
    +
    Listener of changes in player state.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onLoadingChanged

        +
        void onLoadingChanged(boolean isLoading)
        +
        Called when the player starts or stops loading the source.
        +
        +
        Parameters:
        +
        isLoading - Whether the source is currently being loaded.
        +
        +
      • +
      + + + +
        +
      • +

        onPlayerStateChanged

        +
        void onPlayerStateChanged(boolean playWhenReady,
        +                          int playbackState)
        +
        Called when the value returned from either ExoPlayer.getPlayWhenReady() or + ExoPlayer.getPlaybackState() changes.
        +
        +
        Parameters:
        +
        playWhenReady - Whether playback will proceed when ready.
        +
        playbackState - One of the STATE constants defined in the ExoPlayer + interface.
        +
        +
      • +
      + + + +
        +
      • +

        onTimelineChanged

        +
        void onTimelineChanged(Timeline timeline,
        +                       java.lang.Object manifest)
        +
        Called when timeline and/or manifest has been refreshed.
        +
        +
        Parameters:
        +
        timeline - The latest timeline, or null if the timeline is being cleared.
        +
        manifest - The latest manifest, or null if the manifest is being cleared.
        +
        +
      • +
      + + + +
        +
      • +

        onPlayerError

        +
        void onPlayerError(ExoPlaybackException error)
        +
        Called when an error occurs. The playback state will transition to ExoPlayer.STATE_IDLE + immediately after this method is called. The player instance can still be used, and + ExoPlayer.release() must still be called on the player should it no longer be required.
        +
        +
        Parameters:
        +
        error - The error.
        +
        +
      • +
      + + + +
        +
      • +

        onPositionDiscontinuity

        +
        void onPositionDiscontinuity()
        +
        Called when a position discontinuity occurs. Position discontinuities occur when seeks are + performed, when playbacks transition from one period in the timeline to the next, and when + the player introduces discontinuities internally.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.ExoPlayerComponent.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.ExoPlayerComponent.html new file mode 100644 index 00000000..c93fae3e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.ExoPlayerComponent.html @@ -0,0 +1,248 @@ + + + + + +ExoPlayer.ExoPlayerComponent (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Interface ExoPlayer.ExoPlayerComponent

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidhandleMessage(int messageType, + java.lang.Object message) +
      Handles a message delivered to the component.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        handleMessage

        +
        void handleMessage(int messageType,
        +                   java.lang.Object message)
        +            throws ExoPlaybackException
        +
        Handles a message delivered to the component. Called on the playback thread.
        +
        +
        Parameters:
        +
        messageType - The message type.
        +
        message - The message.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurred whilst handling the message.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.ExoPlayerMessage.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.ExoPlayerMessage.html new file mode 100644 index 00000000..18dbb7aa --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.ExoPlayerMessage.html @@ -0,0 +1,321 @@ + + + + + +ExoPlayer.ExoPlayerMessage (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class ExoPlayer.ExoPlayerMessage

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.ExoPlayer.ExoPlayerMessage
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing interface:
    +
    ExoPlayer
    +
    +
    +
    +
    public static final class ExoPlayer.ExoPlayerMessage
    +extends java.lang.Object
    +
    Defines a message and a target ExoPlayer.ExoPlayerComponent to receive it.
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        messageType

        +
        public final int messageType
        +
        The type of the message.
        +
      • +
      + + + +
        +
      • +

        message

        +
        public final java.lang.Object message
        +
        The message.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ExoPlayerMessage

        +
        public ExoPlayerMessage(ExoPlayer.ExoPlayerComponent target,
        +                        int messageType,
        +                        java.lang.Object message)
        +
        +
        Parameters:
        +
        target - The target of the message.
        +
        messageType - The message type.
        +
        message - The message.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.html new file mode 100644 index 00000000..8d2db6cb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayer.html @@ -0,0 +1,895 @@ + + + + + +ExoPlayer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Interface ExoPlayer

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    SimpleExoPlayer
    +
    +
    +
    +
    public interface ExoPlayer
    +
    An extensible media player exposing traditional high-level media player functionality, such as + the ability to buffer media, play, pause and seek. Instances can be obtained from + ExoPlayerFactory. + +

    Player composition

    +

    ExoPlayer is designed to make few assumptions about (and hence impose few restrictions on) the + type of the media being played, how and where it is stored, and how it is rendered. Rather than + implementing the loading and rendering of media directly, ExoPlayer implementations delegate this + work to components that are injected when a player is created or when it's prepared for playback. + Components common to all ExoPlayer implementations are: +

    +

    An ExoPlayer can be built using the default components provided by the library, but may also + be built using custom implementations if non-standard behaviors are required. For example a + custom LoadControl could be injected to change the player's buffering strategy, or a custom + Renderer could be injected to use a video codec not supported natively by Android. + +

    The concept of injecting components that implement pieces of player functionality is present + throughout the library. The default component implementations listed above delegate work to + further injected components. This allows many sub-components to be individually replaced with + custom implementations. For example the default MediaSource implementations require one or more + DataSource factories to be injected via their constructors. By providing a custom factory + it's possible to load data from a non-standard source or through a different network stack. + +

    Threading model

    +

    The figure below shows ExoPlayer's threading model.

    +

    + ExoPlayer's threading model +

    + +
      +
    • It is recommended that ExoPlayer instances are created and accessed from a single application + thread. The application's main thread is ideal. Accessing an instance from multiple threads is + discouraged, however if an application does wish to do this then it may do so provided that it + ensures accesses are synchronized.
    • +
    • Registered listeners are called on the thread that created the ExoPlayer instance.
    • +
    • An internal playback thread is responsible for playback. Injected player components such as + Renderers, MediaSources, TrackSelectors and LoadControls are called by the player on this + thread.
    • +
    • When the application performs an operation on the player, for example a seek, a message is + delivered to the internal playback thread via a message queue. The internal playback thread + consumes messages from the queue and performs the corresponding operations. Similarly, when a + playback event occurs on the internal playback thread, a message is delivered to the application + thread via a second message queue. The application thread consumes messages from the queue, + updating the application visible state and calling corresponding listener methods.
    • +
    • Injected player components may use additional background threads. For example a MediaSource + may use a background thread to load data. These are implementation specific.
    • +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        STATE_IDLE

        +
        static final int STATE_IDLE
        +
        The player does not have a source to play, so it is neither buffering nor ready to play.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STATE_BUFFERING

        +
        static final int STATE_BUFFERING
        +
        The player not able to immediately play from the current position. The cause is + Renderer specific, but this state typically occurs when more data needs to be + loaded to be ready to play, or more data needs to be buffered for playback to resume.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STATE_READY

        +
        static final int STATE_READY
        +
        The player is able to immediately play from the current position. The player will be playing if + getPlayWhenReady() returns true, and paused otherwise.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STATE_ENDED

        +
        static final int STATE_ENDED
        +
        The player has finished playing the media.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addListener

        +
        void addListener(ExoPlayer.EventListener listener)
        +
        Register a listener to receive events from the player. The listener's methods will be called on + the thread that was used to construct the player.
        +
        +
        Parameters:
        +
        listener - The listener to register.
        +
        +
      • +
      + + + +
        +
      • +

        removeListener

        +
        void removeListener(ExoPlayer.EventListener listener)
        +
        Unregister a listener. The listener will no longer receive events from the player.
        +
        +
        Parameters:
        +
        listener - The listener to unregister.
        +
        +
      • +
      + + + +
        +
      • +

        getPlaybackState

        +
        int getPlaybackState()
        +
        Returns the current state of the player.
        +
        +
        Returns:
        +
        One of the STATE constants defined in this interface.
        +
        +
      • +
      + + + +
        +
      • +

        prepare

        +
        void prepare(MediaSource mediaSource)
        +
        Prepares the player to play the provided MediaSource. Equivalent to + prepare(mediaSource, true, true).
        +
      • +
      + + + +
        +
      • +

        prepare

        +
        void prepare(MediaSource mediaSource,
        +             boolean resetPosition,
        +             boolean resetTimeline)
        +
        Prepares the player to play the provided MediaSource, optionally resetting the playback + position the default position in the first Timeline.Window.
        +
        +
        Parameters:
        +
        mediaSource - The MediaSource to play.
        +
        resetPosition - Whether the playback position should be reset to the default position in + the first Timeline.Window. If false, playback will start from the position defined + by getCurrentWindowIndex() and getCurrentPosition().
        +
        resetTimeline - Whether the timeline and manifest should be reset. Should be true unless + the player is being prepared to play the same media as it was playing previously (e.g. if + playback failed and is being retried).
        +
        +
      • +
      + + + +
        +
      • +

        setPlayWhenReady

        +
        void setPlayWhenReady(boolean playWhenReady)
        +
        Sets whether playback should proceed when getPlaybackState() == STATE_READY. +

        + If the player is already in the ready state then this method can be used to pause and resume + playback.

        +
        +
        Parameters:
        +
        playWhenReady - Whether playback should proceed when ready.
        +
        +
      • +
      + + + +
        +
      • +

        getPlayWhenReady

        +
        boolean getPlayWhenReady()
        +
        Whether playback will proceed when getPlaybackState() == STATE_READY.
        +
        +
        Returns:
        +
        Whether playback will proceed when ready.
        +
        +
      • +
      + + + +
        +
      • +

        isLoading

        +
        boolean isLoading()
        +
        Whether the player is currently loading the source.
        +
        +
        Returns:
        +
        Whether the player is currently loading the source.
        +
        +
      • +
      + + + +
        +
      • +

        seekToDefaultPosition

        +
        void seekToDefaultPosition()
        +
        Seeks to the default position associated with the current window. The position can depend on + the type of source passed to prepare(MediaSource). For live streams it will typically + be the live edge of the window. For other streams it will typically be the start of the window.
        +
      • +
      + + + +
        +
      • +

        seekToDefaultPosition

        +
        void seekToDefaultPosition(int windowIndex)
        +
        Seeks to the default position associated with the specified window. The position can depend on + the type of source passed to prepare(MediaSource). For live streams it will typically + be the live edge of the window. For other streams it will typically be the start of the window.
        +
        +
        Parameters:
        +
        windowIndex - The index of the window whose associated default position should be seeked + to.
        +
        +
      • +
      + + + +
        +
      • +

        seekTo

        +
        void seekTo(long windowPositionMs)
        +
        Seeks to a position specified in milliseconds in the current window.
        +
        +
        Parameters:
        +
        windowPositionMs - The seek position in the current window.
        +
        +
      • +
      + + + +
        +
      • +

        seekTo

        +
        void seekTo(int windowIndex,
        +            long windowPositionMs)
        +
        Seeks to a position specified in milliseconds in the specified window.
        +
        +
        Parameters:
        +
        windowIndex - The index of the window.
        +
        windowPositionMs - The seek position in the specified window.
        +
        +
      • +
      + + + +
        +
      • +

        stop

        +
        void stop()
        +
        Stops playback. Use setPlayWhenReady(false) rather than this method if the intention + is to pause playback. +

        + Calling this method will cause the playback state to transition to STATE_IDLE. The + player instance can still be used, and release() must still be called on the player if + it's no longer required. +

        + Calling this method does not reset the playback position.

        +
      • +
      + + + +
        +
      • +

        release

        +
        void release()
        +
        Releases the player. This method must be called when the player is no longer required. The + player must not be used after calling this method.
        +
      • +
      + + + +
        +
      • +

        sendMessages

        +
        void sendMessages(ExoPlayer.ExoPlayerMessage... messages)
        +
        Sends messages to their target components. The messages are delivered on the playback thread. + If a component throws an ExoPlaybackException then it is propagated out of the player + as an error.
        +
        +
        Parameters:
        +
        messages - The messages to be sent.
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getCurrentTimeline

        +
        Timeline getCurrentTimeline()
        +
        Returns the current Timeline, or null if there is no timeline.
        +
      • +
      + + + +
        +
      • +

        getCurrentPeriodIndex

        +
        int getCurrentPeriodIndex()
        +
        Returns the index of the period currently being played, or C.INDEX_UNSET if unknown.
        +
      • +
      + + + +
        +
      • +

        getCurrentWindowIndex

        +
        int getCurrentWindowIndex()
        +
        Returns the index of the window currently being played.
        +
      • +
      + + + +
        +
      • +

        getDuration

        +
        long getDuration()
        +
        Returns the duration of the current window in milliseconds, or C.TIME_UNSET if the + duration is not known.
        +
      • +
      + + + +
        +
      • +

        getCurrentPosition

        +
        long getCurrentPosition()
        +
        Returns the playback position in the current window, in milliseconds.
        +
      • +
      + + + +
        +
      • +

        getBufferedPosition

        +
        long getBufferedPosition()
        +
        Returns an estimate of the position in the current window up to which data is buffered, in + milliseconds.
        +
      • +
      + + + +
        +
      • +

        getBufferedPercentage

        +
        int getBufferedPercentage()
        +
        Returns an estimate of the percentage in the current window up to which data is buffered, or 0 + if no estimate is available.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayerFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayerFactory.html new file mode 100644 index 00000000..fe5cf68d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayerFactory.html @@ -0,0 +1,453 @@ + + + + + +ExoPlayerFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class ExoPlayerFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.ExoPlayerFactory
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class ExoPlayerFactory
    +extends java.lang.Object
    +
    A factory for ExoPlayer instances.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_ALLOWED_VIDEO_JOINING_TIME_MS

        +
        public static final long DEFAULT_ALLOWED_VIDEO_JOINING_TIME_MS
        +
        The default maximum duration for which a video renderer can attempt to seamlessly join an + ongoing playback.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newSimpleInstance

        +
        public static SimpleExoPlayer newSimpleInstance(android.content.Context context,
        +                                                TrackSelector<?> trackSelector,
        +                                                LoadControl loadControl)
        +
        Creates a SimpleExoPlayer instance. Must be called from a thread that has an associated + Looper.
        +
        +
        Parameters:
        +
        context - A Context.
        +
        trackSelector - The TrackSelector that will be used by the instance.
        +
        loadControl - The LoadControl that will be used by the instance.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        newSimpleInstance

        +
        public static SimpleExoPlayer newSimpleInstance(android.content.Context context,
        +                                                TrackSelector<?> trackSelector,
        +                                                LoadControl loadControl,
        +                                                DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
        +                                                boolean preferExtensionDecoders)
        +
        Creates a SimpleExoPlayer instance. Must be called from a thread that has an associated + Looper.
        +
        +
        Parameters:
        +
        context - A Context.
        +
        trackSelector - The TrackSelector that will be used by the instance.
        +
        loadControl - The LoadControl that will be used by the instance.
        +
        drmSessionManager - An optional DrmSessionManager. May be null if the instance + will not be used for DRM protected playbacks.
        +
        preferExtensionDecoders - True to prefer Renderer instances defined in + available extensions over those defined in the core library. Note that extensions must be + included in the application build for setting this flag to have any effect.
        +
        +
      • +
      + + + +
        +
      • +

        newSimpleInstance

        +
        public static SimpleExoPlayer newSimpleInstance(android.content.Context context,
        +                                                TrackSelector<?> trackSelector,
        +                                                LoadControl loadControl,
        +                                                DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
        +                                                boolean preferExtensionDecoders,
        +                                                long allowedVideoJoiningTimeMs)
        +
        Creates a SimpleExoPlayer instance. Must be called from a thread that has an associated + Looper.
        +
        +
        Parameters:
        +
        context - A Context.
        +
        trackSelector - The TrackSelector that will be used by the instance.
        +
        loadControl - The LoadControl that will be used by the instance.
        +
        drmSessionManager - An optional DrmSessionManager. May be null if the instance + will not be used for DRM protected playbacks.
        +
        preferExtensionDecoders - True to prefer Renderer instances defined in + available extensions over those defined in the core library. Note that extensions must be + included in the application build for setting this flag to have any effect.
        +
        allowedVideoJoiningTimeMs - The maximum duration for which a video renderer can attempt to + seamlessly join an ongoing playback.
        +
        +
      • +
      + + + +
        +
      • +

        newInstance

        +
        public static ExoPlayer newInstance(Renderer[] renderers,
        +                                    TrackSelector<?> trackSelector)
        +
        Creates an ExoPlayer instance. Must be called from a thread that has an associated + Looper.
        +
        +
        Parameters:
        +
        renderers - The Renderers that will be used by the instance.
        +
        trackSelector - The TrackSelector that will be used by the instance.
        +
        +
      • +
      + + + +
        +
      • +

        newInstance

        +
        public static ExoPlayer newInstance(Renderer[] renderers,
        +                                    TrackSelector<?> trackSelector,
        +                                    LoadControl loadControl)
        +
        Creates an ExoPlayer instance. Must be called from a thread that has an associated + Looper.
        +
        +
        Parameters:
        +
        renderers - The Renderers that will be used by the instance.
        +
        trackSelector - The TrackSelector that will be used by the instance.
        +
        loadControl - The LoadControl that will be used by the instance.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayerLibraryInfo.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayerLibraryInfo.html new file mode 100644 index 00000000..42240893 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ExoPlayerLibraryInfo.html @@ -0,0 +1,289 @@ + + + + + +ExoPlayerLibraryInfo (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Interface ExoPlayerLibraryInfo

+
+
+
+
    +
  • +
    +
    +
    public interface ExoPlayerLibraryInfo
    +
    Information about the ExoPlayer library.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static booleanASSERTIONS_ENABLED +
      Whether the library was compiled with Assertions + checks enabled.
      +
      static booleanTRACE_ENABLED +
      Whether the library was compiled with TraceUtil + trace enabled.
      +
      static java.lang.StringVERSION +
      The version of the library, expressed as a string.
      +
      static intVERSION_INT +
      The version of the library, expressed as an integer.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        VERSION

        +
        static final java.lang.String VERSION
        +
        The version of the library, expressed as a string.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        VERSION_INT

        +
        static final int VERSION_INT
        +
        The version of the library, expressed as an integer. +

        + Three digits are used for each component of VERSION. For example "1.2.3" has the + corresponding integer version 1002003 (001-002-003), and "123.45.6" has the corresponding + integer version 123045006 (123-045-006).

        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ASSERTIONS_ENABLED

        +
        static final boolean ASSERTIONS_ENABLED
        +
        Whether the library was compiled with Assertions + checks enabled.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TRACE_ENABLED

        +
        static final boolean TRACE_ENABLED
        +
        Whether the library was compiled with TraceUtil + trace enabled.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Format.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Format.html new file mode 100644 index 00000000..19ef2242 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Format.html @@ -0,0 +1,1346 @@ + + + + + +Format (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class Format

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.Format
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    android.os.Parcelable
    +
    +
    +
    +
    public final class Format
    +extends java.lang.Object
    +implements android.os.Parcelable
    +
    Representation of a media format.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from interface android.os.Parcelable

        +android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intbitrate +
      The average bandwidth in bits per second, or NO_VALUE if unknown or not applicable.
      +
      intchannelCount +
      The number of audio channels, or NO_VALUE if unknown or not applicable.
      +
      java.lang.Stringcodecs +
      Codecs of the format as described in RFC 6381, or null if unknown or not applicable.
      +
      java.lang.StringcontainerMimeType +
      The mime type of the container, or null if unknown or not applicable.
      +
      static android.os.Parcelable.Creator<Format>CREATOR +
      Creator implementation.
      +
      DrmInitDatadrmInitData +
      DRM initialization data if the stream is protected, or null otherwise.
      +
      intencoderDelay +
      The number of samples to trim from the start of the decoded audio stream.
      +
      intencoderPadding +
      The number of samples to trim from the end of the decoded audio stream.
      +
      floatframeRate +
      The frame rate in frames per second, or NO_VALUE if unknown or not applicable.
      +
      intheight +
      The height of the video in pixels, or NO_VALUE if unknown or not applicable.
      +
      java.lang.Stringid +
      An identifier for the format, or null if unknown or not applicable.
      +
      java.util.List<byte[]>initializationData +
      Initialization data that must be provided to the decoder.
      +
      java.lang.Stringlanguage +
      The language, or null if unknown or not applicable.
      +
      intmaxInputSize +
      The maximum size of a buffer of data (typically one sample), or NO_VALUE if unknown or + not applicable.
      +
      static intNO_VALUE +
      A value for various fields to indicate that the field's value is unknown or not applicable.
      +
      static longOFFSET_SAMPLE_RELATIVE +
      A value for subsampleOffsetUs to indicate that subsample timestamps are relative to + the timestamps of their parent samples.
      +
      intpcmEncoding +
      The encoding for PCM audio streams.
      +
      floatpixelWidthHeightRatio +
      The width to height ratio of pixels in the video, or NO_VALUE if unknown or not + applicable.
      +
      byte[]projectionData +
      The projection data for 360/VR video, or null if not applicable.
      +
      introtationDegrees +
      The clockwise rotation that should be applied to the video for it to be rendered in the correct + orientation, or NO_VALUE if unknown or not applicable.
      +
      java.lang.StringsampleMimeType +
      The mime type of the elementary stream (i.e.
      +
      intsampleRate +
      The audio sampling rate in Hz, or NO_VALUE if unknown or not applicable.
      +
      intselectionFlags +
      Track selection flags.
      +
      intstereoMode +
      The stereo layout for 360/3D/VR video, or NO_VALUE if not applicable.
      +
      longsubsampleOffsetUs +
      For samples that contain subsamples, this is an offset that should be added to subsample + timestamps.
      +
      intwidth +
      The width of the video in pixels, or NO_VALUE if unknown or not applicable.
      +
      +
        +
      • + + +

        Fields inherited from interface android.os.Parcelable

        +CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
      • +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      FormatcopyWithContainerInfo(java.lang.String id, + java.lang.String codecs, + int bitrate, + int width, + int height, + int selectionFlags, + java.lang.String language) 
      FormatcopyWithDrmInitData(DrmInitData drmInitData) 
      FormatcopyWithGaplessInfo(int encoderDelay, + int encoderPadding) 
      FormatcopyWithManifestFormatInfo(Format manifestFormat, + boolean preferManifestDrmInitData) 
      FormatcopyWithMaxInputSize(int maxInputSize) 
      FormatcopyWithSubsampleOffsetUs(long subsampleOffsetUs) 
      static FormatcreateAudioContainerFormat(java.lang.String id, + java.lang.String containerMimeType, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int channelCount, + int sampleRate, + java.util.List<byte[]> initializationData, + int selectionFlags, + java.lang.String language) 
      static FormatcreateAudioSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int maxInputSize, + int channelCount, + int sampleRate, + int pcmEncoding, + int encoderDelay, + int encoderPadding, + java.util.List<byte[]> initializationData, + DrmInitData drmInitData, + int selectionFlags, + java.lang.String language) 
      static FormatcreateAudioSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int maxInputSize, + int channelCount, + int sampleRate, + int pcmEncoding, + java.util.List<byte[]> initializationData, + DrmInitData drmInitData, + int selectionFlags, + java.lang.String language) 
      static FormatcreateAudioSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int maxInputSize, + int channelCount, + int sampleRate, + java.util.List<byte[]> initializationData, + DrmInitData drmInitData, + int selectionFlags, + java.lang.String language) 
      static FormatcreateContainerFormat(java.lang.String id, + java.lang.String containerMimeType, + java.lang.String codecs, + java.lang.String sampleMimeType, + int bitrate) 
      static FormatcreateImageSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + java.util.List<byte[]> initializationData, + java.lang.String language, + DrmInitData drmInitData) 
      static FormatcreateSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + DrmInitData drmInitData) 
      static FormatcreateTextContainerFormat(java.lang.String id, + java.lang.String containerMimeType, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int selectionFlags, + java.lang.String language) 
      static FormatcreateTextSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int selectionFlags, + java.lang.String language, + DrmInitData drmInitData) 
      static FormatcreateTextSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int selectionFlags, + java.lang.String language, + DrmInitData drmInitData, + long subsampleOffsetUs) 
      static FormatcreateVideoContainerFormat(java.lang.String id, + java.lang.String containerMimeType, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int width, + int height, + float frameRate, + java.util.List<byte[]> initializationData) 
      static FormatcreateVideoSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int maxInputSize, + int width, + int height, + float frameRate, + java.util.List<byte[]> initializationData, + DrmInitData drmInitData) 
      static FormatcreateVideoSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int maxInputSize, + int width, + int height, + float frameRate, + java.util.List<byte[]> initializationData, + int rotationDegrees, + float pixelWidthHeightRatio, + byte[] projectionData, + int stereoMode, + DrmInitData drmInitData) 
      static FormatcreateVideoSampleFormat(java.lang.String id, + java.lang.String sampleMimeType, + java.lang.String codecs, + int bitrate, + int maxInputSize, + int width, + int height, + float frameRate, + java.util.List<byte[]> initializationData, + int rotationDegrees, + float pixelWidthHeightRatio, + DrmInitData drmInitData) 
      intdescribeContents() 
      booleanequals(java.lang.Object obj) 
      android.media.MediaFormatgetFrameworkMediaFormatV16() +
      Returns a MediaFormat representation of this format.
      +
      intgetPixelCount() +
      Returns the number of pixels if this is a video format whose width and height + are known, or NO_VALUE otherwise
      +
      inthashCode() 
      java.lang.StringtoString() 
      voidwriteToParcel(android.os.Parcel dest, + int flags) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NO_VALUE

        +
        public static final int NO_VALUE
        +
        A value for various fields to indicate that the field's value is unknown or not applicable.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        OFFSET_SAMPLE_RELATIVE

        +
        public static final long OFFSET_SAMPLE_RELATIVE
        +
        A value for subsampleOffsetUs to indicate that subsample timestamps are relative to + the timestamps of their parent samples.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        id

        +
        public final java.lang.String id
        +
        An identifier for the format, or null if unknown or not applicable.
        +
      • +
      + + + +
        +
      • +

        bitrate

        +
        public final int bitrate
        +
        The average bandwidth in bits per second, or NO_VALUE if unknown or not applicable.
        +
      • +
      + + + +
        +
      • +

        codecs

        +
        public final java.lang.String codecs
        +
        Codecs of the format as described in RFC 6381, or null if unknown or not applicable.
        +
      • +
      + + + +
        +
      • +

        containerMimeType

        +
        public final java.lang.String containerMimeType
        +
        The mime type of the container, or null if unknown or not applicable.
        +
      • +
      + + + +
        +
      • +

        sampleMimeType

        +
        public final java.lang.String sampleMimeType
        +
        The mime type of the elementary stream (i.e. the individual samples), or null if unknown or not + applicable.
        +
      • +
      + + + +
        +
      • +

        maxInputSize

        +
        public final int maxInputSize
        +
        The maximum size of a buffer of data (typically one sample), or NO_VALUE if unknown or + not applicable.
        +
      • +
      + + + +
        +
      • +

        initializationData

        +
        public final java.util.List<byte[]> initializationData
        +
        Initialization data that must be provided to the decoder. Will not be null, but may be empty + if initialization data is not required.
        +
      • +
      + + + +
        +
      • +

        drmInitData

        +
        public final DrmInitData drmInitData
        +
        DRM initialization data if the stream is protected, or null otherwise.
        +
      • +
      + + + +
        +
      • +

        width

        +
        public final int width
        +
        The width of the video in pixels, or NO_VALUE if unknown or not applicable.
        +
      • +
      + + + +
        +
      • +

        height

        +
        public final int height
        +
        The height of the video in pixels, or NO_VALUE if unknown or not applicable.
        +
      • +
      + + + +
        +
      • +

        frameRate

        +
        public final float frameRate
        +
        The frame rate in frames per second, or NO_VALUE if unknown or not applicable.
        +
      • +
      + + + +
        +
      • +

        rotationDegrees

        +
        public final int rotationDegrees
        +
        The clockwise rotation that should be applied to the video for it to be rendered in the correct + orientation, or NO_VALUE if unknown or not applicable. Only 0, 90, 180 and 270 are + supported.
        +
      • +
      + + + +
        +
      • +

        pixelWidthHeightRatio

        +
        public final float pixelWidthHeightRatio
        +
        The width to height ratio of pixels in the video, or NO_VALUE if unknown or not + applicable.
        +
      • +
      + + + + + + + +
        +
      • +

        projectionData

        +
        public final byte[] projectionData
        +
        The projection data for 360/VR video, or null if not applicable.
        +
      • +
      + + + +
        +
      • +

        channelCount

        +
        public final int channelCount
        +
        The number of audio channels, or NO_VALUE if unknown or not applicable.
        +
      • +
      + + + +
        +
      • +

        sampleRate

        +
        public final int sampleRate
        +
        The audio sampling rate in Hz, or NO_VALUE if unknown or not applicable.
        +
      • +
      + + + + + + + +
        +
      • +

        encoderDelay

        +
        public final int encoderDelay
        +
        The number of samples to trim from the start of the decoded audio stream.
        +
      • +
      + + + +
        +
      • +

        encoderPadding

        +
        public final int encoderPadding
        +
        The number of samples to trim from the end of the decoded audio stream.
        +
      • +
      + + + +
        +
      • +

        subsampleOffsetUs

        +
        public final long subsampleOffsetUs
        +
        For samples that contain subsamples, this is an offset that should be added to subsample + timestamps. A value of OFFSET_SAMPLE_RELATIVE indicates that subsample timestamps are + relative to the timestamps of their parent samples.
        +
      • +
      + + + +
        +
      • +

        selectionFlags

        +
        public final int selectionFlags
        +
        Track selection flags.
        +
      • +
      + + + +
        +
      • +

        language

        +
        public final java.lang.String language
        +
        The language, or null if unknown or not applicable.
        +
      • +
      + + + +
        +
      • +

        CREATOR

        +
        public static final android.os.Parcelable.Creator<Format> CREATOR
        +
        Creator implementation.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createVideoContainerFormat

        +
        public static Format createVideoContainerFormat(java.lang.String id,
        +                                                java.lang.String containerMimeType,
        +                                                java.lang.String sampleMimeType,
        +                                                java.lang.String codecs,
        +                                                int bitrate,
        +                                                int width,
        +                                                int height,
        +                                                float frameRate,
        +                                                java.util.List<byte[]> initializationData)
        +
      • +
      + + + +
        +
      • +

        createVideoSampleFormat

        +
        public static Format createVideoSampleFormat(java.lang.String id,
        +                                             java.lang.String sampleMimeType,
        +                                             java.lang.String codecs,
        +                                             int bitrate,
        +                                             int maxInputSize,
        +                                             int width,
        +                                             int height,
        +                                             float frameRate,
        +                                             java.util.List<byte[]> initializationData,
        +                                             DrmInitData drmInitData)
        +
      • +
      + + + +
        +
      • +

        createVideoSampleFormat

        +
        public static Format createVideoSampleFormat(java.lang.String id,
        +                                             java.lang.String sampleMimeType,
        +                                             java.lang.String codecs,
        +                                             int bitrate,
        +                                             int maxInputSize,
        +                                             int width,
        +                                             int height,
        +                                             float frameRate,
        +                                             java.util.List<byte[]> initializationData,
        +                                             int rotationDegrees,
        +                                             float pixelWidthHeightRatio,
        +                                             DrmInitData drmInitData)
        +
      • +
      + + + +
        +
      • +

        createVideoSampleFormat

        +
        public static Format createVideoSampleFormat(java.lang.String id,
        +                                             java.lang.String sampleMimeType,
        +                                             java.lang.String codecs,
        +                                             int bitrate,
        +                                             int maxInputSize,
        +                                             int width,
        +                                             int height,
        +                                             float frameRate,
        +                                             java.util.List<byte[]> initializationData,
        +                                             int rotationDegrees,
        +                                             float pixelWidthHeightRatio,
        +                                             byte[] projectionData,
        +                                             int stereoMode,
        +                                             DrmInitData drmInitData)
        +
      • +
      + + + +
        +
      • +

        createAudioContainerFormat

        +
        public static Format createAudioContainerFormat(java.lang.String id,
        +                                                java.lang.String containerMimeType,
        +                                                java.lang.String sampleMimeType,
        +                                                java.lang.String codecs,
        +                                                int bitrate,
        +                                                int channelCount,
        +                                                int sampleRate,
        +                                                java.util.List<byte[]> initializationData,
        +                                                int selectionFlags,
        +                                                java.lang.String language)
        +
      • +
      + + + +
        +
      • +

        createAudioSampleFormat

        +
        public static Format createAudioSampleFormat(java.lang.String id,
        +                                             java.lang.String sampleMimeType,
        +                                             java.lang.String codecs,
        +                                             int bitrate,
        +                                             int maxInputSize,
        +                                             int channelCount,
        +                                             int sampleRate,
        +                                             java.util.List<byte[]> initializationData,
        +                                             DrmInitData drmInitData,
        +                                             int selectionFlags,
        +                                             java.lang.String language)
        +
      • +
      + + + +
        +
      • +

        createAudioSampleFormat

        +
        public static Format createAudioSampleFormat(java.lang.String id,
        +                                             java.lang.String sampleMimeType,
        +                                             java.lang.String codecs,
        +                                             int bitrate,
        +                                             int maxInputSize,
        +                                             int channelCount,
        +                                             int sampleRate,
        +                                             int pcmEncoding,
        +                                             java.util.List<byte[]> initializationData,
        +                                             DrmInitData drmInitData,
        +                                             int selectionFlags,
        +                                             java.lang.String language)
        +
      • +
      + + + +
        +
      • +

        createAudioSampleFormat

        +
        public static Format createAudioSampleFormat(java.lang.String id,
        +                                             java.lang.String sampleMimeType,
        +                                             java.lang.String codecs,
        +                                             int bitrate,
        +                                             int maxInputSize,
        +                                             int channelCount,
        +                                             int sampleRate,
        +                                             int pcmEncoding,
        +                                             int encoderDelay,
        +                                             int encoderPadding,
        +                                             java.util.List<byte[]> initializationData,
        +                                             DrmInitData drmInitData,
        +                                             int selectionFlags,
        +                                             java.lang.String language)
        +
      • +
      + + + +
        +
      • +

        createTextContainerFormat

        +
        public static Format createTextContainerFormat(java.lang.String id,
        +                                               java.lang.String containerMimeType,
        +                                               java.lang.String sampleMimeType,
        +                                               java.lang.String codecs,
        +                                               int bitrate,
        +                                               int selectionFlags,
        +                                               java.lang.String language)
        +
      • +
      + + + +
        +
      • +

        createTextSampleFormat

        +
        public static Format createTextSampleFormat(java.lang.String id,
        +                                            java.lang.String sampleMimeType,
        +                                            java.lang.String codecs,
        +                                            int bitrate,
        +                                            int selectionFlags,
        +                                            java.lang.String language,
        +                                            DrmInitData drmInitData)
        +
      • +
      + + + +
        +
      • +

        createTextSampleFormat

        +
        public static Format createTextSampleFormat(java.lang.String id,
        +                                            java.lang.String sampleMimeType,
        +                                            java.lang.String codecs,
        +                                            int bitrate,
        +                                            int selectionFlags,
        +                                            java.lang.String language,
        +                                            DrmInitData drmInitData,
        +                                            long subsampleOffsetUs)
        +
      • +
      + + + +
        +
      • +

        createImageSampleFormat

        +
        public static Format createImageSampleFormat(java.lang.String id,
        +                                             java.lang.String sampleMimeType,
        +                                             java.lang.String codecs,
        +                                             int bitrate,
        +                                             java.util.List<byte[]> initializationData,
        +                                             java.lang.String language,
        +                                             DrmInitData drmInitData)
        +
      • +
      + + + +
        +
      • +

        createContainerFormat

        +
        public static Format createContainerFormat(java.lang.String id,
        +                                           java.lang.String containerMimeType,
        +                                           java.lang.String codecs,
        +                                           java.lang.String sampleMimeType,
        +                                           int bitrate)
        +
      • +
      + + + +
        +
      • +

        createSampleFormat

        +
        public static Format createSampleFormat(java.lang.String id,
        +                                        java.lang.String sampleMimeType,
        +                                        java.lang.String codecs,
        +                                        int bitrate,
        +                                        DrmInitData drmInitData)
        +
      • +
      + + + +
        +
      • +

        copyWithMaxInputSize

        +
        public Format copyWithMaxInputSize(int maxInputSize)
        +
      • +
      + + + +
        +
      • +

        copyWithSubsampleOffsetUs

        +
        public Format copyWithSubsampleOffsetUs(long subsampleOffsetUs)
        +
      • +
      + + + +
        +
      • +

        copyWithContainerInfo

        +
        public Format copyWithContainerInfo(java.lang.String id,
        +                                    java.lang.String codecs,
        +                                    int bitrate,
        +                                    int width,
        +                                    int height,
        +                                    int selectionFlags,
        +                                    java.lang.String language)
        +
      • +
      + + + +
        +
      • +

        copyWithManifestFormatInfo

        +
        public Format copyWithManifestFormatInfo(Format manifestFormat,
        +                                         boolean preferManifestDrmInitData)
        +
      • +
      + + + +
        +
      • +

        copyWithGaplessInfo

        +
        public Format copyWithGaplessInfo(int encoderDelay,
        +                                  int encoderPadding)
        +
      • +
      + + + +
        +
      • +

        copyWithDrmInitData

        +
        public Format copyWithDrmInitData(DrmInitData drmInitData)
        +
      • +
      + + + +
        +
      • +

        getPixelCount

        +
        public int getPixelCount()
        +
        Returns the number of pixels if this is a video format whose width and height + are known, or NO_VALUE otherwise
        +
      • +
      + + + +
        +
      • +

        getFrameworkMediaFormatV16

        +
        public final android.media.MediaFormat getFrameworkMediaFormatV16()
        +
        Returns a MediaFormat representation of this format.
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        describeContents

        +
        public int describeContents()
        +
        +
        Specified by:
        +
        describeContents in interface android.os.Parcelable
        +
        +
      • +
      + + + +
        +
      • +

        writeToParcel

        +
        public void writeToParcel(android.os.Parcel dest,
        +                          int flags)
        +
        +
        Specified by:
        +
        writeToParcel in interface android.os.Parcelable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/FormatHolder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/FormatHolder.html new file mode 100644 index 00000000..c915156d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/FormatHolder.html @@ -0,0 +1,275 @@ + + + + + +FormatHolder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class FormatHolder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.FormatHolder
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class FormatHolder
    +extends java.lang.Object
    +
    Holds a Format.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      Formatformat +
      The held Format.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      FormatHolder() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FormatHolder

        +
        public FormatHolder()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/LoadControl.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/LoadControl.html new file mode 100644 index 00000000..1b7c6cbb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/LoadControl.html @@ -0,0 +1,352 @@ + + + + + +LoadControl (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Interface LoadControl

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    DefaultLoadControl
    +
    +
    +
    +
    public interface LoadControl
    +
    Controls buffering of media.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      AllocatorgetAllocator() +
      Returns the Allocator that should be used to obtain media buffer allocations.
      +
      voidonPrepared() +
      Called by the player when prepared with a new source.
      +
      voidonReleased() +
      Called by the player when released.
      +
      voidonStopped() +
      Called by the player when stopped.
      +
      voidonTracksSelected(Renderer[] renderers, + TrackGroupArray trackGroups, + TrackSelections<?> trackSelections) +
      Called by the player when a track selection occurs.
      +
      booleanshouldContinueLoading(long bufferedDurationUs) +
      Called by the player to determine whether it should continue to load the source.
      +
      booleanshouldStartPlayback(long bufferedDurationUs, + boolean rebuffering) +
      Called by the player to determine whether sufficient media is buffered for playback to be + started or resumed.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onPrepared

        +
        void onPrepared()
        +
        Called by the player when prepared with a new source.
        +
      • +
      + + + +
        +
      • +

        onTracksSelected

        +
        void onTracksSelected(Renderer[] renderers,
        +                      TrackGroupArray trackGroups,
        +                      TrackSelections<?> trackSelections)
        +
        Called by the player when a track selection occurs.
        +
        +
        Parameters:
        +
        renderers - The renderers.
        +
        trackGroups - The TrackGroups from which the selection was made.
        +
        trackSelections - The track selections that were made.
        +
        +
      • +
      + + + +
        +
      • +

        onStopped

        +
        void onStopped()
        +
        Called by the player when stopped.
        +
      • +
      + + + +
        +
      • +

        onReleased

        +
        void onReleased()
        +
        Called by the player when released.
        +
      • +
      + + + +
        +
      • +

        getAllocator

        +
        Allocator getAllocator()
        +
        Returns the Allocator that should be used to obtain media buffer allocations.
        +
      • +
      + + + +
        +
      • +

        shouldStartPlayback

        +
        boolean shouldStartPlayback(long bufferedDurationUs,
        +                            boolean rebuffering)
        +
        Called by the player to determine whether sufficient media is buffered for playback to be + started or resumed.
        +
        +
        Parameters:
        +
        bufferedDurationUs - The duration of media that's currently buffered.
        +
        rebuffering - Whether the player is rebuffering. A rebuffer is defined to be caused by + buffer depletion rather than a user action. Hence this parameter is false during initial + buffering and when buffering as a result of a seek operation.
        +
        Returns:
        +
        Whether playback should be allowed to start or resume.
        +
        +
      • +
      + + + +
        +
      • +

        shouldContinueLoading

        +
        boolean shouldContinueLoading(long bufferedDurationUs)
        +
        Called by the player to determine whether it should continue to load the source.
        +
        +
        Parameters:
        +
        bufferedDurationUs - The duration of media that's currently buffered.
        +
        Returns:
        +
        Whether the loading should continue.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ParserException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ParserException.html new file mode 100644 index 00000000..bddc376c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ParserException.html @@ -0,0 +1,321 @@ + + + + + +ParserException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class ParserException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.ParserException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ParserException

        +
        public ParserException()
        +
      • +
      + + + +
        +
      • +

        ParserException

        +
        public ParserException(java.lang.String message)
        +
        +
        Parameters:
        +
        message - The detail message for the exception.
        +
        +
      • +
      + + + +
        +
      • +

        ParserException

        +
        public ParserException(java.lang.Throwable cause)
        +
        +
        Parameters:
        +
        cause - The cause for the exception.
        +
        +
      • +
      + + + +
        +
      • +

        ParserException

        +
        public ParserException(java.lang.String message,
        +                       java.lang.Throwable cause)
        +
        +
        Parameters:
        +
        message - The detail message for the exception.
        +
        cause - The cause for the exception.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Renderer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Renderer.html new file mode 100644 index 00000000..28d91241 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Renderer.html @@ -0,0 +1,768 @@ + + + + + +Renderer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Interface Renderer

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        STATE_DISABLED

        +
        static final int STATE_DISABLED
        +
        The renderer is disabled.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STATE_ENABLED

        +
        static final int STATE_ENABLED
        +
        The renderer is enabled but not started. A renderer in this state is not actively rendering + media, but will typically hold resources that it requires for rendering (e.g. media decoders).
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTrackType

        +
        int getTrackType()
        +
        Returns the track type that the Renderer handles. For example, a video renderer will + return C.TRACK_TYPE_VIDEO, an audio renderer will return C.TRACK_TYPE_AUDIO, a + text renderer will return C.TRACK_TYPE_TEXT, and so on.
        +
        +
        Returns:
        +
        One of the TRACK_TYPE_* constants defined in C.
        +
        +
      • +
      + + + +
        +
      • +

        getCapabilities

        +
        RendererCapabilities getCapabilities()
        +
        Returns the capabilities of the renderer.
        +
        +
        Returns:
        +
        The capabilities of the renderer.
        +
        +
      • +
      + + + +
        +
      • +

        setIndex

        +
        void setIndex(int index)
        +
        Sets the index of this renderer within the player.
        +
        +
        Parameters:
        +
        index - The renderer index.
        +
        +
      • +
      + + + +
        +
      • +

        getMediaClock

        +
        MediaClock getMediaClock()
        +
        If the renderer advances its own playback position then this method returns a corresponding + MediaClock. If provided, the player will use the returned MediaClock as its + source of time during playback. A player may have at most one renderer that returns a + MediaClock from this method.
        +
        +
        Returns:
        +
        The MediaClock tracking the playback position of the renderer, or null.
        +
        +
      • +
      + + + +
        +
      • +

        getState

        +
        int getState()
        +
        Returns the current state of the renderer.
        +
        +
        Returns:
        +
        The current state (one of the STATE_* constants).
        +
        +
      • +
      + + + +
        +
      • +

        enable

        +
        void enable(Format[] formats,
        +            SampleStream stream,
        +            long positionUs,
        +            boolean joining,
        +            long offsetUs)
        +     throws ExoPlaybackException
        +
        Enables the renderer to consume from the specified SampleStream. +

        + This method may be called when the renderer is in the following states: + STATE_DISABLED.

        +
        +
        Parameters:
        +
        formats - The enabled formats.
        +
        stream - The SampleStream from which the renderer should consume.
        +
        positionUs - The player's current position.
        +
        joining - Whether this renderer is being enabled to join an ongoing playback.
        +
        offsetUs - The offset to be added to timestamps of buffers read from stream + before they are rendered.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        replaceStream

        +
        void replaceStream(Format[] formats,
        +                   SampleStream stream,
        +                   long offsetUs)
        +            throws ExoPlaybackException
        +
        Replaces the SampleStream from which samples will be consumed. +

        + This method may be called when the renderer is in the following states: + STATE_ENABLED, STATE_STARTED.

        +
        +
        Parameters:
        +
        formats - The enabled formats.
        +
        stream - The SampleStream from which the renderer should consume.
        +
        offsetUs - The offset to be added to timestamps of buffers read from stream before + they are rendered.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        getStream

        +
        SampleStream getStream()
        +
        Returns the SampleStream being consumed, or null if the renderer is disabled.
        +
      • +
      + + + +
        +
      • +

        hasReadStreamToEnd

        +
        boolean hasReadStreamToEnd()
        +
        Returns whether the renderer has read the current SampleStream to the end. +

        + This method may be called when the renderer is in the following states: + STATE_ENABLED, STATE_STARTED.

        +
      • +
      + + + +
        +
      • +

        setCurrentStreamIsFinal

        +
        void setCurrentStreamIsFinal()
        +
        Signals to the renderer that the current SampleStream will be the final one supplied + before it is next disabled or reset. +

        + This method may be called when the renderer is in the following states: + STATE_ENABLED, STATE_STARTED.

        +
      • +
      + + + +
        +
      • +

        maybeThrowStreamError

        +
        void maybeThrowStreamError()
        +                    throws java.io.IOException
        +
        Throws an error that's preventing the renderer from reading from its SampleStream. Does + nothing if no such error exists. +

        + This method may be called when the renderer is in the following states: + STATE_ENABLED, STATE_STARTED.

        +
        +
        Throws:
        +
        java.io.IOException - An error that's preventing the renderer from making progress or buffering + more data.
        +
        +
      • +
      + + + +
        +
      • +

        resetPosition

        +
        void resetPosition(long positionUs)
        +            throws ExoPlaybackException
        +
        Signals to the renderer that a position discontinuity has occurred. +

        + After a position discontinuity, the renderer's SampleStream is guaranteed to provide + samples starting from a key frame. +

        + This method may be called when the renderer is in the following states: + STATE_ENABLED, STATE_STARTED.

        +
        +
        Parameters:
        +
        positionUs - The new playback position in microseconds.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs handling the reset.
        +
        +
      • +
      + + + +
        +
      • +

        render

        +
        void render(long positionUs,
        +            long elapsedRealtimeUs)
        +     throws ExoPlaybackException
        +
        Incrementally renders the SampleStream. +

        + If the renderer is in the STATE_ENABLED state then each call to this method will do + work toward being ready to render the SampleStream when the renderer is started. It may + also render the very start of the media, for example the first frame of a video stream. If the + renderer is in the STATE_STARTED state then calls to this method will render the + SampleStream in sync with the specified media positions. +

        + This method should return quickly, and should not block if the renderer is unable to make + useful progress. +

        + This method may be called when the renderer is in the following states: + STATE_ENABLED, STATE_STARTED.

        +
        +
        Parameters:
        +
        positionUs - The current media time in microseconds, measured at the start of the + current iteration of the rendering loop.
        +
        elapsedRealtimeUs - SystemClock.elapsedRealtime() in microseconds, + measured at the start of the current iteration of the rendering loop.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        isReady

        +
        boolean isReady()
        +
        Whether the renderer is able to immediately render media from the current position. +

        + If the renderer is in the STATE_STARTED state then returning true indicates that the + renderer has everything that it needs to continue playback. Returning false indicates that + the player should pause until the renderer is ready. +

        + If the renderer is in the STATE_ENABLED state then returning true indicates that the + renderer is ready for playback to be started. Returning false indicates that it is not. +

        + This method may be called when the renderer is in the following states: + STATE_ENABLED, STATE_STARTED.

        +
        +
        Returns:
        +
        Whether the renderer is ready to render media.
        +
        +
      • +
      + + + +
        +
      • +

        isEnded

        +
        boolean isEnded()
        +
        Whether the renderer is ready for the ExoPlayer instance to transition to + ExoPlayer.STATE_ENDED. The player will make this transition as soon as true is + returned by all of its Renderers. +

        + This method may be called when the renderer is in the following states: + STATE_ENABLED, STATE_STARTED.

        +
        +
        Returns:
        +
        Whether the renderer is ready for the player to transition to the ended state.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        disable

        +
        void disable()
        +
        Disable the renderer, transitioning it to the STATE_DISABLED state. +

        + This method may be called when the renderer is in the following states: + STATE_ENABLED.

        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/RendererCapabilities.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/RendererCapabilities.html new file mode 100644 index 00000000..083f8d23 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/RendererCapabilities.html @@ -0,0 +1,529 @@ + + + + + +RendererCapabilities (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Interface RendererCapabilities

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/SimpleExoPlayer.VideoListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/SimpleExoPlayer.VideoListener.html new file mode 100644 index 00000000..6022a80a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/SimpleExoPlayer.VideoListener.html @@ -0,0 +1,282 @@ + + + + + +SimpleExoPlayer.VideoListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Interface SimpleExoPlayer.VideoListener

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    SimpleExoPlayer
    +
    +
    +
    +
    public static interface SimpleExoPlayer.VideoListener
    +
    A listener for video rendering information from a SimpleExoPlayer.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidonRenderedFirstFrame() +
      Called when a frame is rendered for the first time since setting the surface, and when a + frame is rendered for the first time since a video track was selected.
      +
      voidonVideoSizeChanged(int width, + int height, + int unappliedRotationDegrees, + float pixelWidthHeightRatio) +
      Called each time there's a change in the size of the video being rendered.
      +
      voidonVideoTracksDisabled() +
      Called when a video track is no longer selected.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onVideoSizeChanged

        +
        void onVideoSizeChanged(int width,
        +                        int height,
        +                        int unappliedRotationDegrees,
        +                        float pixelWidthHeightRatio)
        +
        Called each time there's a change in the size of the video being rendered.
        +
        +
        Parameters:
        +
        width - The video width in pixels.
        +
        height - The video height in pixels.
        +
        unappliedRotationDegrees - For videos that require a rotation, this is the clockwise + rotation in degrees that the application should apply for the video for it to be rendered + in the correct orientation. This value will always be zero on API levels 21 and above, + since the renderer will apply all necessary rotations internally. On earlier API levels + this is not possible. Applications that use TextureView can apply + the rotation by calling TextureView.setTransform(android.graphics.Matrix). Applications that + do not expect to encounter rotated videos can safely ignore this parameter.
        +
        pixelWidthHeightRatio - The width to height ratio of each pixel. For the normal case + of square pixels this will be equal to 1.0. Different values are indicative of anamorphic + content.
        +
        +
      • +
      + + + +
        +
      • +

        onRenderedFirstFrame

        +
        void onRenderedFirstFrame()
        +
        Called when a frame is rendered for the first time since setting the surface, and when a + frame is rendered for the first time since a video track was selected.
        +
      • +
      + + + +
        +
      • +

        onVideoTracksDisabled

        +
        void onVideoTracksDisabled()
        +
        Called when a video track is no longer selected.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/SimpleExoPlayer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/SimpleExoPlayer.html new file mode 100644 index 00000000..ec8b104d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/SimpleExoPlayer.html @@ -0,0 +1,1250 @@ + + + + + +SimpleExoPlayer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class SimpleExoPlayer

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.SimpleExoPlayer
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    ExoPlayer
    +
    +
    +
    +
    public final class SimpleExoPlayer
    +extends java.lang.Object
    +implements ExoPlayer
    +
    An ExoPlayer implementation that uses default Renderer components. Instances can + be obtained from ExoPlayerFactory.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getRendererCount

        +
        public int getRendererCount()
        +
        Returns the number of renderers.
        +
        +
        Returns:
        +
        The number of renderers.
        +
        +
      • +
      + + + +
        +
      • +

        getRendererType

        +
        public int getRendererType(int index)
        +
        Returns the track type that the renderer at a given index handles.
        +
        +
        Parameters:
        +
        index - The index of the renderer.
        +
        Returns:
        +
        One of the TRACK_TYPE_* constants defined in C.
        +
        See Also:
        +
        Renderer.getTrackType()
        +
        +
      • +
      + + + +
        +
      • +

        clearVideoSurface

        +
        public void clearVideoSurface()
        +
        Clears any Surface, SurfaceHolder, SurfaceView or TextureView + currently set on the player.
        +
      • +
      + + + +
        +
      • +

        setVideoSurface

        +
        public void setVideoSurface(android.view.Surface surface)
        +
        Sets the Surface onto which video will be rendered. The caller is responsible for + tracking the lifecycle of the surface, and must clear the surface by calling + setVideoSurface(null) if the surface is destroyed. +

        + If the surface is held by a SurfaceView, TextureView or SurfaceHolder + then it's recommended to use setVideoSurfaceView(SurfaceView), + setVideoTextureView(TextureView) or setVideoSurfaceHolder(SurfaceHolder) + rather than this method, since passing the holder allows the player to track the lifecycle of + the surface automatically.

        +
        +
        Parameters:
        +
        surface - The Surface.
        +
        +
      • +
      + + + +
        +
      • +

        setVideoSurfaceHolder

        +
        public void setVideoSurfaceHolder(android.view.SurfaceHolder surfaceHolder)
        +
        Sets the SurfaceHolder that holds the Surface onto which video will be + rendered. The player will track the lifecycle of the surface automatically.
        +
        +
        Parameters:
        +
        surfaceHolder - The surface holder.
        +
        +
      • +
      + + + +
        +
      • +

        setVideoSurfaceView

        +
        public void setVideoSurfaceView(android.view.SurfaceView surfaceView)
        +
        Sets the SurfaceView onto which video will be rendered. The player will track the + lifecycle of the surface automatically.
        +
        +
        Parameters:
        +
        surfaceView - The surface view.
        +
        +
      • +
      + + + +
        +
      • +

        setVideoTextureView

        +
        public void setVideoTextureView(android.view.TextureView textureView)
        +
        Sets the TextureView onto which video will be rendered. The player will track the + lifecycle of the surface automatically.
        +
        +
        Parameters:
        +
        textureView - The texture view.
        +
        +
      • +
      + + + +
        +
      • +

        setVolume

        +
        public void setVolume(float volume)
        +
        Sets the audio volume, with 0 being silence and 1 being unity gain.
        +
        +
        Parameters:
        +
        volume - The volume.
        +
        +
      • +
      + + + +
        +
      • +

        getVolume

        +
        public float getVolume()
        +
        Returns the audio volume, with 0 being silence and 1 being unity gain.
        +
      • +
      + + + +
        +
      • +

        setPlaybackParams

        +
        public void setPlaybackParams(android.media.PlaybackParams params)
        +
        Sets the PlaybackParams governing audio playback.
        +
        +
        Parameters:
        +
        params - The PlaybackParams, or null to clear any previously set parameters.
        +
        +
      • +
      + + + +
        +
      • +

        getPlaybackParams

        +
        public android.media.PlaybackParams getPlaybackParams()
        +
        Returns the PlaybackParams governing audio playback, or null if not set.
        +
      • +
      + + + +
        +
      • +

        getVideoFormat

        +
        public Format getVideoFormat()
        +
        Returns the video format currently being played, or null if no video is being played.
        +
      • +
      + + + +
        +
      • +

        getAudioFormat

        +
        public Format getAudioFormat()
        +
        Returns the audio format currently being played, or null if no audio is being played.
        +
      • +
      + + + +
        +
      • +

        getAudioSessionId

        +
        public int getAudioSessionId()
        +
        Returns the audio session identifier, or AudioTrack.SESSION_ID_NOT_SET if not set.
        +
      • +
      + + + +
        +
      • +

        getVideoDecoderCounters

        +
        public DecoderCounters getVideoDecoderCounters()
        +
        Returns DecoderCounters for video, or null if no video is being played.
        +
      • +
      + + + +
        +
      • +

        getAudioDecoderCounters

        +
        public DecoderCounters getAudioDecoderCounters()
        +
        Returns DecoderCounters for audio, or null if no audio is being played.
        +
      • +
      + + + +
        +
      • +

        setVideoListener

        +
        public void setVideoListener(SimpleExoPlayer.VideoListener listener)
        +
        Sets a listener to receive video events.
        +
        +
        Parameters:
        +
        listener - The listener.
        +
        +
      • +
      + + + +
        +
      • +

        setVideoDebugListener

        +
        public void setVideoDebugListener(VideoRendererEventListener listener)
        +
        Sets a listener to receive debug events from the video renderer.
        +
        +
        Parameters:
        +
        listener - The listener.
        +
        +
      • +
      + + + +
        +
      • +

        setAudioDebugListener

        +
        public void setAudioDebugListener(AudioRendererEventListener listener)
        +
        Sets a listener to receive debug events from the audio renderer.
        +
        +
        Parameters:
        +
        listener - The listener.
        +
        +
      • +
      + + + +
        +
      • +

        setTextOutput

        +
        public void setTextOutput(TextRenderer.Output output)
        +
        Sets an output to receive text events.
        +
        +
        Parameters:
        +
        output - The output.
        +
        +
      • +
      + + + +
        +
      • +

        setId3Output

        +
        public void setId3Output(MetadataRenderer.Output<java.util.List<Id3Frame>> output)
        +
        Sets a listener to receive ID3 metadata events.
        +
        +
        Parameters:
        +
        output - The output.
        +
        +
      • +
      + + + +
        +
      • +

        addListener

        +
        public void addListener(ExoPlayer.EventListener listener)
        +
        Description copied from interface: ExoPlayer
        +
        Register a listener to receive events from the player. The listener's methods will be called on + the thread that was used to construct the player.
        +
        +
        Specified by:
        +
        addListener in interface ExoPlayer
        +
        Parameters:
        +
        listener - The listener to register.
        +
        +
      • +
      + + + +
        +
      • +

        removeListener

        +
        public void removeListener(ExoPlayer.EventListener listener)
        +
        Description copied from interface: ExoPlayer
        +
        Unregister a listener. The listener will no longer receive events from the player.
        +
        +
        Specified by:
        +
        removeListener in interface ExoPlayer
        +
        Parameters:
        +
        listener - The listener to unregister.
        +
        +
      • +
      + + + +
        +
      • +

        getPlaybackState

        +
        public int getPlaybackState()
        +
        Description copied from interface: ExoPlayer
        +
        Returns the current state of the player.
        +
        +
        Specified by:
        +
        getPlaybackState in interface ExoPlayer
        +
        Returns:
        +
        One of the STATE constants defined in this interface.
        +
        +
      • +
      + + + +
        +
      • +

        prepare

        +
        public void prepare(MediaSource mediaSource)
        +
        Description copied from interface: ExoPlayer
        +
        Prepares the player to play the provided MediaSource. Equivalent to + prepare(mediaSource, true, true).
        +
        +
        Specified by:
        +
        prepare in interface ExoPlayer
        +
        +
      • +
      + + + +
        +
      • +

        prepare

        +
        public void prepare(MediaSource mediaSource,
        +                    boolean resetPosition,
        +                    boolean resetTimeline)
        +
        Description copied from interface: ExoPlayer
        +
        Prepares the player to play the provided MediaSource, optionally resetting the playback + position the default position in the first Timeline.Window.
        +
        +
        Specified by:
        +
        prepare in interface ExoPlayer
        +
        Parameters:
        +
        mediaSource - The MediaSource to play.
        +
        resetPosition - Whether the playback position should be reset to the default position in + the first Timeline.Window. If false, playback will start from the position defined + by ExoPlayer.getCurrentWindowIndex() and ExoPlayer.getCurrentPosition().
        +
        resetTimeline - Whether the timeline and manifest should be reset. Should be true unless + the player is being prepared to play the same media as it was playing previously (e.g. if + playback failed and is being retried).
        +
        +
      • +
      + + + +
        +
      • +

        setPlayWhenReady

        +
        public void setPlayWhenReady(boolean playWhenReady)
        +
        Description copied from interface: ExoPlayer
        +
        Sets whether playback should proceed when ExoPlayer.getPlaybackState() == ExoPlayer.STATE_READY. +

        + If the player is already in the ready state then this method can be used to pause and resume + playback.

        +
        +
        Specified by:
        +
        setPlayWhenReady in interface ExoPlayer
        +
        Parameters:
        +
        playWhenReady - Whether playback should proceed when ready.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        isLoading

        +
        public boolean isLoading()
        +
        Description copied from interface: ExoPlayer
        +
        Whether the player is currently loading the source.
        +
        +
        Specified by:
        +
        isLoading in interface ExoPlayer
        +
        Returns:
        +
        Whether the player is currently loading the source.
        +
        +
      • +
      + + + +
        +
      • +

        seekToDefaultPosition

        +
        public void seekToDefaultPosition()
        +
        Description copied from interface: ExoPlayer
        +
        Seeks to the default position associated with the current window. The position can depend on + the type of source passed to ExoPlayer.prepare(MediaSource). For live streams it will typically + be the live edge of the window. For other streams it will typically be the start of the window.
        +
        +
        Specified by:
        +
        seekToDefaultPosition in interface ExoPlayer
        +
        +
      • +
      + + + +
        +
      • +

        seekToDefaultPosition

        +
        public void seekToDefaultPosition(int windowIndex)
        +
        Description copied from interface: ExoPlayer
        +
        Seeks to the default position associated with the specified window. The position can depend on + the type of source passed to ExoPlayer.prepare(MediaSource). For live streams it will typically + be the live edge of the window. For other streams it will typically be the start of the window.
        +
        +
        Specified by:
        +
        seekToDefaultPosition in interface ExoPlayer
        +
        Parameters:
        +
        windowIndex - The index of the window whose associated default position should be seeked + to.
        +
        +
      • +
      + + + +
        +
      • +

        seekTo

        +
        public void seekTo(long positionMs)
        +
        Description copied from interface: ExoPlayer
        +
        Seeks to a position specified in milliseconds in the current window.
        +
        +
        Specified by:
        +
        seekTo in interface ExoPlayer
        +
        Parameters:
        +
        positionMs - The seek position in the current window.
        +
        +
      • +
      + + + +
        +
      • +

        seekTo

        +
        public void seekTo(int windowIndex,
        +                   long positionMs)
        +
        Description copied from interface: ExoPlayer
        +
        Seeks to a position specified in milliseconds in the specified window.
        +
        +
        Specified by:
        +
        seekTo in interface ExoPlayer
        +
        Parameters:
        +
        windowIndex - The index of the window.
        +
        positionMs - The seek position in the specified window.
        +
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public void stop()
        +
        Description copied from interface: ExoPlayer
        +
        Stops playback. Use setPlayWhenReady(false) rather than this method if the intention + is to pause playback. +

        + Calling this method will cause the playback state to transition to ExoPlayer.STATE_IDLE. The + player instance can still be used, and ExoPlayer.release() must still be called on the player if + it's no longer required. +

        + Calling this method does not reset the playback position.

        +
        +
        Specified by:
        +
        stop in interface ExoPlayer
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: ExoPlayer
        +
        Releases the player. This method must be called when the player is no longer required. The + player must not be used after calling this method.
        +
        +
        Specified by:
        +
        release in interface ExoPlayer
        +
        +
      • +
      + + + +
        +
      • +

        sendMessages

        +
        public void sendMessages(ExoPlayer.ExoPlayerMessage... messages)
        +
        Description copied from interface: ExoPlayer
        +
        Sends messages to their target components. The messages are delivered on the playback thread. + If a component throws an ExoPlaybackException then it is propagated out of the player + as an error.
        +
        +
        Specified by:
        +
        sendMessages in interface ExoPlayer
        +
        Parameters:
        +
        messages - The messages to be sent.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getCurrentPeriodIndex

        +
        public int getCurrentPeriodIndex()
        +
        Description copied from interface: ExoPlayer
        +
        Returns the index of the period currently being played, or C.INDEX_UNSET if unknown.
        +
        +
        Specified by:
        +
        getCurrentPeriodIndex in interface ExoPlayer
        +
        +
      • +
      + + + +
        +
      • +

        getCurrentWindowIndex

        +
        public int getCurrentWindowIndex()
        +
        Description copied from interface: ExoPlayer
        +
        Returns the index of the window currently being played.
        +
        +
        Specified by:
        +
        getCurrentWindowIndex in interface ExoPlayer
        +
        +
      • +
      + + + +
        +
      • +

        getDuration

        +
        public long getDuration()
        +
        Description copied from interface: ExoPlayer
        +
        Returns the duration of the current window in milliseconds, or C.TIME_UNSET if the + duration is not known.
        +
        +
        Specified by:
        +
        getDuration in interface ExoPlayer
        +
        +
      • +
      + + + +
        +
      • +

        getCurrentPosition

        +
        public long getCurrentPosition()
        +
        Description copied from interface: ExoPlayer
        +
        Returns the playback position in the current window, in milliseconds.
        +
        +
        Specified by:
        +
        getCurrentPosition in interface ExoPlayer
        +
        +
      • +
      + + + +
        +
      • +

        getBufferedPosition

        +
        public long getBufferedPosition()
        +
        Description copied from interface: ExoPlayer
        +
        Returns an estimate of the position in the current window up to which data is buffered, in + milliseconds.
        +
        +
        Specified by:
        +
        getBufferedPosition in interface ExoPlayer
        +
        +
      • +
      + + + +
        +
      • +

        getBufferedPercentage

        +
        public int getBufferedPercentage()
        +
        Description copied from interface: ExoPlayer
        +
        Returns an estimate of the percentage in the current window up to which data is buffered, or 0 + if no estimate is available.
        +
        +
        Specified by:
        +
        getBufferedPercentage in interface ExoPlayer
        +
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Timeline.Period.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Timeline.Period.html new file mode 100644 index 00000000..f90625b4 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Timeline.Period.html @@ -0,0 +1,432 @@ + + + + + +Timeline.Period (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class Timeline.Period

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.Timeline.Period
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    Timeline
    +
    +
    +
    +
    public static final class Timeline.Period
    +extends java.lang.Object
    +
    Holds information about a period in a Timeline. A period defines a single logical piece + of media, for example a a media file. See Timeline for more details. The figure below + shows some of the information defined by a period, as well as how this information relates to a + corresponding Timeline.Window in the timeline. +

    + Information defined by a period +

    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.Objectid +
      An identifier for the period.
      +
      java.lang.Objectuid +
      A unique identifier for the period.
      +
      intwindowIndex +
      The index of the window to which this period belongs.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Period() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longgetDurationMs() +
      Returns the duration of the period in milliseconds, or C.TIME_UNSET if unknown.
      +
      longgetDurationUs() +
      Returns the duration of this period in microseconds, or C.TIME_UNSET if unknown.
      +
      longgetPositionInWindowMs() +
      Returns the position of the start of this period relative to the start of the window to which + it belongs, in milliseconds.
      +
      longgetPositionInWindowUs() +
      Returns the position of the start of this period relative to the start of the window to which + it belongs, in microseconds.
      +
      Timeline.Periodset(java.lang.Object id, + java.lang.Object uid, + int windowIndex, + long durationUs, + long positionInWindowUs) +
      Sets the data held by this period.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        id

        +
        public java.lang.Object id
        +
        An identifier for the period. Not necessarily unique.
        +
      • +
      + + + +
        +
      • +

        uid

        +
        public java.lang.Object uid
        +
        A unique identifier for the period.
        +
      • +
      + + + +
        +
      • +

        windowIndex

        +
        public int windowIndex
        +
        The index of the window to which this period belongs.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Period

        +
        public Period()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        set

        +
        public Timeline.Period set(java.lang.Object id,
        +                           java.lang.Object uid,
        +                           int windowIndex,
        +                           long durationUs,
        +                           long positionInWindowUs)
        +
        Sets the data held by this period.
        +
      • +
      + + + +
        +
      • +

        getDurationMs

        +
        public long getDurationMs()
        +
        Returns the duration of the period in milliseconds, or C.TIME_UNSET if unknown.
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        public long getDurationUs()
        +
        Returns the duration of this period in microseconds, or C.TIME_UNSET if unknown.
        +
      • +
      + + + +
        +
      • +

        getPositionInWindowMs

        +
        public long getPositionInWindowMs()
        +
        Returns the position of the start of this period relative to the start of the window to which + it belongs, in milliseconds. May be negative if the start of the period is not within the + window.
        +
      • +
      + + + +
        +
      • +

        getPositionInWindowUs

        +
        public long getPositionInWindowUs()
        +
        Returns the position of the start of this period relative to the start of the window to which + it belongs, in microseconds. May be negative if the start of the period is not within the + window.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Timeline.Window.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Timeline.Window.html new file mode 100644 index 00000000..2aeaa157 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Timeline.Window.html @@ -0,0 +1,545 @@ + + + + + +Timeline.Window (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class Timeline.Window

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.Timeline.Window
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    Timeline
    +
    +
    +
    +
    public static final class Timeline.Window
    +extends java.lang.Object
    +
    Holds information about a window in a Timeline. A window defines a region of media + currently available for playback along with additional information such as whether seeking is + supported within the window. See Timeline for more details. The figure below shows some + of the information defined by a window, as well as how this information relates to + corresponding Timeline.Periods in the timeline. +

    + Information defined by a timeline window +

    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intfirstPeriodIndex +
      The index of the first period that belongs to this window.
      +
      java.lang.Objectid +
      An identifier for the window.
      +
      booleanisDynamic +
      Whether this window may change when the timeline is updated.
      +
      booleanisSeekable +
      Whether it's possible to seek within this window.
      +
      intlastPeriodIndex +
      The index of the last period that belongs to this window.
      +
      longpresentationStartTimeMs +
      The start time of the presentation to which this window belongs in milliseconds since the + epoch, or C.TIME_UNSET if unknown or not applicable.
      +
      longwindowStartTimeMs +
      The windows start time in milliseconds since the epoch, or C.TIME_UNSET if unknown or + not applicable.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Window() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longgetDefaultPositionMs() +
      Returns the default position relative to the start of the window at which to begin playback, + in milliseconds.
      +
      longgetDefaultPositionUs() +
      Returns the default position relative to the start of the window at which to begin playback, + in microseconds.
      +
      longgetDurationMs() +
      Returns the duration of the window in milliseconds, or C.TIME_UNSET if unknown.
      +
      longgetDurationUs() +
      Returns the duration of this window in microseconds, or C.TIME_UNSET if unknown.
      +
      longgetPositionInFirstPeriodMs() +
      Returns the position of the start of this window relative to the start of the first period + belonging to it, in milliseconds.
      +
      longgetPositionInFirstPeriodUs() +
      Returns the position of the start of this window relative to the start of the first period + belonging to it, in microseconds.
      +
      Timeline.Windowset(java.lang.Object id, + long presentationStartTimeMs, + long windowStartTimeMs, + boolean isSeekable, + boolean isDynamic, + long defaultPositionUs, + long durationUs, + int firstPeriodIndex, + int lastPeriodIndex, + long positionInFirstPeriodUs) +
      Sets the data held by this window.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        id

        +
        public java.lang.Object id
        +
        An identifier for the window. Not necessarily unique.
        +
      • +
      + + + +
        +
      • +

        presentationStartTimeMs

        +
        public long presentationStartTimeMs
        +
        The start time of the presentation to which this window belongs in milliseconds since the + epoch, or C.TIME_UNSET if unknown or not applicable. For informational purposes only.
        +
      • +
      + + + +
        +
      • +

        windowStartTimeMs

        +
        public long windowStartTimeMs
        +
        The windows start time in milliseconds since the epoch, or C.TIME_UNSET if unknown or + not applicable. For informational purposes only.
        +
      • +
      + + + +
        +
      • +

        isSeekable

        +
        public boolean isSeekable
        +
        Whether it's possible to seek within this window.
        +
      • +
      + + + +
        +
      • +

        isDynamic

        +
        public boolean isDynamic
        +
        Whether this window may change when the timeline is updated.
        +
      • +
      + + + +
        +
      • +

        firstPeriodIndex

        +
        public int firstPeriodIndex
        +
        The index of the first period that belongs to this window.
        +
      • +
      + + + +
        +
      • +

        lastPeriodIndex

        +
        public int lastPeriodIndex
        +
        The index of the last period that belongs to this window.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Window

        +
        public Window()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        set

        +
        public Timeline.Window set(java.lang.Object id,
        +                           long presentationStartTimeMs,
        +                           long windowStartTimeMs,
        +                           boolean isSeekable,
        +                           boolean isDynamic,
        +                           long defaultPositionUs,
        +                           long durationUs,
        +                           int firstPeriodIndex,
        +                           int lastPeriodIndex,
        +                           long positionInFirstPeriodUs)
        +
        Sets the data held by this window.
        +
      • +
      + + + +
        +
      • +

        getDefaultPositionMs

        +
        public long getDefaultPositionMs()
        +
        Returns the default position relative to the start of the window at which to begin playback, + in milliseconds.
        +
      • +
      + + + +
        +
      • +

        getDefaultPositionUs

        +
        public long getDefaultPositionUs()
        +
        Returns the default position relative to the start of the window at which to begin playback, + in microseconds.
        +
      • +
      + + + +
        +
      • +

        getDurationMs

        +
        public long getDurationMs()
        +
        Returns the duration of the window in milliseconds, or C.TIME_UNSET if unknown.
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        public long getDurationUs()
        +
        Returns the duration of this window in microseconds, or C.TIME_UNSET if unknown.
        +
      • +
      + + + +
        +
      • +

        getPositionInFirstPeriodMs

        +
        public long getPositionInFirstPeriodMs()
        +
        Returns the position of the start of this window relative to the start of the first period + belonging to it, in milliseconds.
        +
      • +
      + + + +
        +
      • +

        getPositionInFirstPeriodUs

        +
        public long getPositionInFirstPeriodUs()
        +
        Returns the position of the start of this window relative to the start of the first period + belonging to it, in microseconds.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Timeline.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Timeline.html new file mode 100644 index 00000000..b1db3452 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/Timeline.html @@ -0,0 +1,526 @@ + + + + + +Timeline (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2
+

Class Timeline

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.Timeline
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    SinglePeriodTimeline
    +
    +
    +
    +
    public abstract class Timeline
    +extends java.lang.Object
    +
    A representation of media currently available for playback. +

    + Timeline instances are immutable. For cases where the available media is changing dynamically + (e.g. live streams) a timeline provides a snapshot of the media currently available. +

    + A timeline consists of related Timeline.Periods and Timeline.Windows. A period defines a single + logical piece of media, for example a media file. A window spans one or more periods, defining + the region within those periods that's currently available for playback along with additional + information such as whether seeking is supported within the window. Each window defines a default + position, which is the position from which playback will start when the player starts playing the + window. The following examples illustrate timelines for various use cases. + +

    Single media file or on-demand stream

    +

    + Example timeline for a single file +

    + A timeline for a single media file or on-demand stream consists of a single period and window. + The window spans the whole period, indicating that all parts of the media are available for + playback. The window's default position is typically at the start of the period (indicated by the + black dot in the figure above). + +

    Playlist of media files or on-demand streams

    +

    + Example timeline for a playlist of files +

    + A timeline for a playlist of media files or on-demand streams consists of multiple periods, each + with its own window. Each window spans the whole of the corresponding period, and typically has a + default position at the start of the period. The properties of the periods and windows (e.g. + their durations and whether the window is seekable) will often only become known when the player + starts buffering the corresponding file or stream. + +

    Live stream with limited availability

    +

    + Example timeline for a live stream with
+       limited availability +

    + A timeline for a live stream consists of a period whose duration is unknown, since it's + continually extending as more content is broadcast. If content only remains available for a + limited period of time then the window may start at a non-zero position, defining the region of + content that can still be played. The window will have Timeline.Window.isDynamic set to true if + the stream is still live. Its default position is typically near to the live edge (indicated by + the black dot in the figure above). + +

    Live stream with indefinite availability

    +

    + Example timeline for a live stream with
+       indefinite availability +

    + A timeline for a live stream with indefinite availability is similar to the + Live stream with limited availability case, except that the window + starts at the beginning of the period to indicate that all of the previously broadcast content + can still be played. + +

    Live stream with multiple periods

    +

    + Example timeline for a live stream
+       with multiple periods +

    + This case arises when a live stream is explicitly divided into separate periods, for example at + content and advert boundaries. This case is similar to the Live stream + with limited availability case, except that the window may span more than one period. + Multiple periods are also possible in the indefinite availability case. + +

    On-demand pre-roll followed by live stream

    +

    + Example timeline for an on-demand pre-roll
+       followed by a live stream +

    + This case is the concatenation of the Single media file or on-demand + stream and Live stream with multiple periods cases. When playback + of the pre-roll ends, playback of the live stream will start from its default position near the + live edge.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Timeline

        +
        public Timeline()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getWindowCount

        +
        public abstract int getWindowCount()
        +
        Returns the number of windows in the timeline.
        +
      • +
      + + + + + + + +
        +
      • +

        getWindow

        +
        public abstract Timeline.Window getWindow(int windowIndex,
        +                                          Timeline.Window window,
        +                                          boolean setIds)
        +
        Populates a Timeline.Window with data for the window at the specified index.
        +
        +
        Parameters:
        +
        windowIndex - The index of the window.
        +
        window - The Timeline.Window to populate. Must not be null.
        +
        setIds - Whether Timeline.Window.id should be populated. If false, the field will be set to + null. The caller should pass false for efficiency reasons unless the field is required.
        +
        Returns:
        +
        The populated Timeline.Window, for convenience.
        +
        +
      • +
      + + + +
        +
      • +

        getPeriodCount

        +
        public abstract int getPeriodCount()
        +
        Returns the number of periods in the timeline.
        +
      • +
      + + + + + + + +
        +
      • +

        getPeriod

        +
        public abstract Timeline.Period getPeriod(int periodIndex,
        +                                          Timeline.Period period,
        +                                          boolean setIds)
        +
        Populates a Timeline.Period with data for the period at the specified index.
        +
        +
        Parameters:
        +
        periodIndex - The index of the period.
        +
        period - The Timeline.Period to populate. Must not be null.
        +
        setIds - Whether Timeline.Period.id and Timeline.Period.uid should be populated. If false, + the fields will be set to null. The caller should pass false for efficiency reasons unless + the fields are required.
        +
        Returns:
        +
        The populated Timeline.Period, for convenience.
        +
        +
      • +
      + + + +
        +
      • +

        getIndexOfPeriod

        +
        public abstract int getIndexOfPeriod(java.lang.Object uid)
        +
        Returns the index of the period identified by its unique id, or C.INDEX_UNSET + if the period is not in the timeline.
        +
        +
        Parameters:
        +
        uid - A unique identifier for a period.
        +
        Returns:
        +
        The index of the period, or C.INDEX_UNSET if the period was not found.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/Ac3Util.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/Ac3Util.html new file mode 100644 index 00000000..916abe0f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/Ac3Util.html @@ -0,0 +1,458 @@ + + + + + +Ac3Util (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class Ac3Util

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.audio.Ac3Util
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class Ac3Util
    +extends java.lang.Object
    +
    Utility methods for parsing (E-)AC-3 syncframes, which are access units in (E-)AC-3 bitstreams.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parseAc3AnnexFFormat

        +
        public static Format parseAc3AnnexFFormat(ParsableByteArray data,
        +                                          java.lang.String trackId,
        +                                          java.lang.String language,
        +                                          DrmInitData drmInitData)
        +
        Returns the AC-3 format given data containing the AC3SpecificBox according to + ETSI TS 102 366 Annex F. The reading position of data will be modified.
        +
        +
        Parameters:
        +
        data - The AC3SpecificBox to parse.
        +
        trackId - The track identifier to set on the format, or null.
        +
        language - The language to set on the format.
        +
        drmInitData - DrmInitData to be included in the format.
        +
        Returns:
        +
        The AC-3 format parsed from data in the header.
        +
        +
      • +
      + + + +
        +
      • +

        parseEAc3AnnexFFormat

        +
        public static Format parseEAc3AnnexFFormat(ParsableByteArray data,
        +                                           java.lang.String trackId,
        +                                           java.lang.String language,
        +                                           DrmInitData drmInitData)
        +
        Returns the E-AC-3 format given data containing the EC3SpecificBox according to + ETSI TS 102 366 Annex F. The reading position of data will be modified.
        +
        +
        Parameters:
        +
        data - The EC3SpecificBox to parse.
        +
        trackId - The track identifier to set on the format, or null.
        +
        language - The language to set on the format.
        +
        drmInitData - DrmInitData to be included in the format.
        +
        Returns:
        +
        The E-AC-3 format parsed from data in the header.
        +
        +
      • +
      + + + +
        +
      • +

        parseAc3SyncframeFormat

        +
        public static Format parseAc3SyncframeFormat(ParsableBitArray data,
        +                                             java.lang.String trackId,
        +                                             java.lang.String language,
        +                                             DrmInitData drmInitData)
        +
        Returns the AC-3 format given data containing a syncframe. The reading position of + data will be modified.
        +
        +
        Parameters:
        +
        data - The data to parse, positioned at the start of the syncframe.
        +
        trackId - The track identifier to set on the format, or null.
        +
        language - The language to set on the format.
        +
        drmInitData - DrmInitData to be included in the format.
        +
        Returns:
        +
        The AC-3 format parsed from data in the header.
        +
        +
      • +
      + + + +
        +
      • +

        parseEac3SyncframeFormat

        +
        public static Format parseEac3SyncframeFormat(ParsableBitArray data,
        +                                              java.lang.String trackId,
        +                                              java.lang.String language,
        +                                              DrmInitData drmInitData)
        +
        Returns the E-AC-3 format given data containing a syncframe. The reading position of + data will be modified.
        +
        +
        Parameters:
        +
        data - The data to parse, positioned at the start of the syncframe.
        +
        trackId - The track identifier to set on the format, or null.
        +
        language - The language to set on the format.
        +
        drmInitData - DrmInitData to be included in the format.
        +
        Returns:
        +
        The E-AC-3 format parsed from data in the header.
        +
        +
      • +
      + + + +
        +
      • +

        parseAc3SyncframeSize

        +
        public static int parseAc3SyncframeSize(byte[] data)
        +
        Returns the size in bytes of the given AC-3 syncframe.
        +
        +
        Parameters:
        +
        data - The syncframe to parse.
        +
        Returns:
        +
        The syncframe size in bytes. C.LENGTH_UNSET if the input is invalid.
        +
        +
      • +
      + + + +
        +
      • +

        parseEAc3SyncframeSize

        +
        public static int parseEAc3SyncframeSize(byte[] data)
        +
        Returns the size in bytes of the given E-AC-3 syncframe.
        +
        +
        Parameters:
        +
        data - The syncframe to parse.
        +
        Returns:
        +
        The syncframe size in bytes.
        +
        +
      • +
      + + + +
        +
      • +

        getAc3SyncframeAudioSampleCount

        +
        public static int getAc3SyncframeAudioSampleCount()
        +
        Returns the number of audio samples in an AC-3 syncframe.
        +
      • +
      + + + +
        +
      • +

        parseEAc3SyncframeAudioSampleCount

        +
        public static int parseEAc3SyncframeAudioSampleCount(byte[] data)
        +
        Returns the number of audio samples represented by the given E-AC-3 syncframe.
        +
        +
        Parameters:
        +
        data - The syncframe to parse.
        +
        Returns:
        +
        The number of audio samples represented by the syncframe.
        +
        +
      • +
      + + + +
        +
      • +

        parseEAc3SyncframeAudioSampleCount

        +
        public static int parseEAc3SyncframeAudioSampleCount(java.nio.ByteBuffer buffer)
        +
        Like parseEAc3SyncframeAudioSampleCount(byte[]) but reads from a ByteBuffer. + The buffer's position is not modified.
        +
        +
        Parameters:
        +
        buffer - The ByteBuffer from which to read.
        +
        Returns:
        +
        The number of audio samples represented by the syncframe.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioCapabilities.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioCapabilities.html new file mode 100644 index 00000000..dc41ca55 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioCapabilities.html @@ -0,0 +1,373 @@ + + + + + +AudioCapabilities (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class AudioCapabilities

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.audio.AudioCapabilities
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class AudioCapabilities
    +extends java.lang.Object
    +
    Represents the set of audio formats that a device is capable of playing.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object other) 
      static AudioCapabilitiesgetCapabilities(android.content.Context context) +
      Returns the current audio capabilities for the device.
      +
      intgetMaxChannelCount() +
      Returns the maximum number of channels the device can play at the same time.
      +
      inthashCode() 
      booleansupportsEncoding(int encoding) +
      Returns whether this device supports playback of the specified audio encoding.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_AUDIO_CAPABILITIES

        +
        public static final AudioCapabilities DEFAULT_AUDIO_CAPABILITIES
        +
        The minimum audio capabilities supported by all devices.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCapabilities

        +
        public static AudioCapabilities getCapabilities(android.content.Context context)
        +
        Returns the current audio capabilities for the device.
        +
        +
        Parameters:
        +
        context - A context for obtaining the current audio capabilities.
        +
        Returns:
        +
        The current audio capabilities for the device.
        +
        +
      • +
      + + + +
        +
      • +

        supportsEncoding

        +
        public boolean supportsEncoding(int encoding)
        +
        Returns whether this device supports playback of the specified audio encoding.
        +
        +
        Parameters:
        +
        encoding - One of AudioFormat's ENCODING_* constants.
        +
        Returns:
        +
        Whether this device supports playback the specified audio encoding.
        +
        +
      • +
      + + + +
        +
      • +

        getMaxChannelCount

        +
        public int getMaxChannelCount()
        +
        Returns the maximum number of channels the device can play at the same time.
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object other)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioCapabilitiesReceiver.Listener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioCapabilitiesReceiver.Listener.html new file mode 100644 index 00000000..3ba08e17 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioCapabilitiesReceiver.Listener.html @@ -0,0 +1,231 @@ + + + + + +AudioCapabilitiesReceiver.Listener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Interface AudioCapabilitiesReceiver.Listener

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    AudioCapabilitiesReceiver
    +
    +
    +
    +
    public static interface AudioCapabilitiesReceiver.Listener
    +
    Listener notified when audio capabilities change.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onAudioCapabilitiesChanged

        +
        void onAudioCapabilitiesChanged(AudioCapabilities audioCapabilities)
        +
        Called when the audio capabilities change.
        +
        +
        Parameters:
        +
        audioCapabilities - The current audio capabilities for the device.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioCapabilitiesReceiver.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioCapabilitiesReceiver.html new file mode 100644 index 00000000..9a010305 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioCapabilitiesReceiver.html @@ -0,0 +1,327 @@ + + + + + +AudioCapabilitiesReceiver (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class AudioCapabilitiesReceiver

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.audio.AudioCapabilitiesReceiver
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class AudioCapabilitiesReceiver
    +extends java.lang.Object
    +
    Receives broadcast events indicating changes to the device's audio capabilities, notifying a + AudioCapabilitiesReceiver.Listener when audio capability changes occur.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface AudioCapabilitiesReceiver.Listener +
      Listener notified when audio capabilities change.
      +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      AudioCapabilitiesregister() +
      Registers the receiver, meaning it will notify the listener when audio capability changes + occur.
      +
      voidunregister() +
      Unregisters the receiver, meaning it will no longer notify the listener when audio capability + changes occur.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AudioCapabilitiesReceiver

        +
        public AudioCapabilitiesReceiver(android.content.Context context,
        +                                 AudioCapabilitiesReceiver.Listener listener)
        +
        +
        Parameters:
        +
        context - A context for registering the receiver.
        +
        listener - The listener to notify when audio capabilities change.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        register

        +
        public AudioCapabilities register()
        +
        Registers the receiver, meaning it will notify the listener when audio capability changes + occur. The current audio capabilities will be returned. It is important to call + unregister() when the receiver is no longer required.
        +
        +
        Returns:
        +
        The current audio capabilities for the device.
        +
        +
      • +
      + + + +
        +
      • +

        unregister

        +
        public void unregister()
        +
        Unregisters the receiver, meaning it will no longer notify the listener when audio capability + changes occur.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioDecoderException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioDecoderException.html new file mode 100644 index 00000000..e3ce0212 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioDecoderException.html @@ -0,0 +1,265 @@ + + + + + +AudioDecoderException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class AudioDecoderException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.audio.AudioDecoderException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public abstract class AudioDecoderException
    +extends java.lang.Exception
    +
    Thrown when an audio decoder error occurs.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AudioDecoderException(java.lang.String detailMessage) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AudioDecoderException

        +
        public AudioDecoderException(java.lang.String detailMessage)
        +
        +
        Parameters:
        +
        detailMessage - The detail message for this exception.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioRendererEventListener.EventDispatcher.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioRendererEventListener.EventDispatcher.html new file mode 100644 index 00000000..b8ac4f91 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioRendererEventListener.EventDispatcher.html @@ -0,0 +1,373 @@ + + + + + +AudioRendererEventListener.EventDispatcher (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class AudioRendererEventListener.EventDispatcher

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.audio.AudioRendererEventListener.EventDispatcher
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioRendererEventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioRendererEventListener.html new file mode 100644 index 00000000..bdc71785 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioRendererEventListener.html @@ -0,0 +1,364 @@ + + + + + +AudioRendererEventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Interface AudioRendererEventListener

+
+
+
+
    +
  • +
    +
    +
    public interface AudioRendererEventListener
    +
    Listener of audio Renderer events.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onAudioEnabled

        +
        void onAudioEnabled(DecoderCounters counters)
        +
        Called when the renderer is enabled.
        +
        +
        Parameters:
        +
        counters - DecoderCounters that will be updated by the renderer for as long as it + remains enabled.
        +
        +
      • +
      + + + +
        +
      • +

        onAudioSessionId

        +
        void onAudioSessionId(int audioSessionId)
        +
        Called when the audio session is set.
        +
        +
        Parameters:
        +
        audioSessionId - The audio session id.
        +
        +
      • +
      + + + +
        +
      • +

        onAudioDecoderInitialized

        +
        void onAudioDecoderInitialized(java.lang.String decoderName,
        +                               long initializedTimestampMs,
        +                               long initializationDurationMs)
        +
        Called when a decoder is created.
        +
        +
        Parameters:
        +
        decoderName - The decoder that was created.
        +
        initializedTimestampMs - SystemClock.elapsedRealtime() when initialization + finished.
        +
        initializationDurationMs - The time taken to initialize the decoder in milliseconds.
        +
        +
      • +
      + + + +
        +
      • +

        onAudioInputFormatChanged

        +
        void onAudioInputFormatChanged(Format format)
        +
        Called when the format of the media being consumed by the renderer changes.
        +
        +
        Parameters:
        +
        format - The new format.
        +
        +
      • +
      + + + +
        +
      • +

        onAudioTrackUnderrun

        +
        void onAudioTrackUnderrun(int bufferSize,
        +                          long bufferSizeMs,
        +                          long elapsedSinceLastFeedMs)
        +
        Called when an AudioTrack underrun occurs.
        +
        +
        Parameters:
        +
        bufferSize - The size of the AudioTrack's buffer, in bytes.
        +
        bufferSizeMs - The size of the AudioTrack's buffer, in milliseconds, if it is + configured for PCM output. C.TIME_UNSET if it is configured for passthrough output, + as the buffered media can have a variable bitrate so the duration may be unknown.
        +
        elapsedSinceLastFeedMs - The time since the AudioTrack was last fed data.
        +
        +
      • +
      + + + +
        +
      • +

        onAudioDisabled

        +
        void onAudioDisabled(DecoderCounters counters)
        +
        Called when the renderer is disabled.
        +
        +
        Parameters:
        +
        counters - DecoderCounters that were updated by the renderer.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.InitializationException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.InitializationException.html new file mode 100644 index 00000000..32c2eb44 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.InitializationException.html @@ -0,0 +1,317 @@ + + + + + +AudioTrack.InitializationException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class AudioTrack.InitializationException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.audio.AudioTrack.InitializationException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    AudioTrack
    +
    +
    +
    +
    public static final class AudioTrack.InitializationException
    +extends java.lang.Exception
    +
    Thrown when a failure occurs initializing an AudioTrack.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intaudioTrackState +
      The state as reported by AudioTrack.getState().
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      InitializationException(int audioTrackState, + int sampleRate, + int channelConfig, + int bufferSize) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        audioTrackState

        +
        public final int audioTrackState
        +
        The state as reported by AudioTrack.getState().
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InitializationException

        +
        public InitializationException(int audioTrackState,
        +                               int sampleRate,
        +                               int channelConfig,
        +                               int bufferSize)
        +
        +
        Parameters:
        +
        audioTrackState - The state as reported by AudioTrack.getState().
        +
        sampleRate - The requested sample rate in Hz.
        +
        channelConfig - The requested channel configuration.
        +
        bufferSize - The requested buffer size in bytes.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.InvalidAudioTrackTimestampException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.InvalidAudioTrackTimestampException.html new file mode 100644 index 00000000..4ea0359f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.InvalidAudioTrackTimestampException.html @@ -0,0 +1,275 @@ + + + + + +AudioTrack.InvalidAudioTrackTimestampException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class AudioTrack.InvalidAudioTrackTimestampException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.lang.RuntimeException
        • +
        • +
            +
          • com.google.android.exoplayer2.audio.AudioTrack.InvalidAudioTrackTimestampException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    AudioTrack
    +
    +
    +
    +
    public static final class AudioTrack.InvalidAudioTrackTimestampException
    +extends java.lang.RuntimeException
    +
    Thrown when AudioTrack.getTimestamp(android.media.AudioTimestamp) returns a spurious timestamp, if + AudioTrack#failOnSpuriousAudioTimestamp is set.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InvalidAudioTrackTimestampException

        +
        public InvalidAudioTrackTimestampException(java.lang.String detailMessage)
        +
        +
        Parameters:
        +
        detailMessage - The detail message for this exception.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.WriteException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.WriteException.html new file mode 100644 index 00000000..a180d629 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.WriteException.html @@ -0,0 +1,309 @@ + + + + + +AudioTrack.WriteException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class AudioTrack.WriteException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.audio.AudioTrack.WriteException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    AudioTrack
    +
    +
    +
    +
    public static final class AudioTrack.WriteException
    +extends java.lang.Exception
    +
    Thrown when a failure occurs writing to an AudioTrack.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      interrorCode +
      An error value returned from AudioTrack.write(byte[], int, int).
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      WriteException(int errorCode) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        errorCode

        +
        public final int errorCode
        +
        An error value returned from AudioTrack.write(byte[], int, int).
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WriteException

        +
        public WriteException(int errorCode)
        +
        +
        Parameters:
        +
        errorCode - An error value returned from + AudioTrack.write(byte[], int, int).
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.html new file mode 100644 index 00000000..0d98b46e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/AudioTrack.html @@ -0,0 +1,842 @@ + + + + + +AudioTrack (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class AudioTrack

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.audio.AudioTrack
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + + + + + +
        +
      • +

        SESSION_ID_NOT_SET

        +
        public static final int SESSION_ID_NOT_SET
        +
        Represents an unset AudioTrack session identifier.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + + + + +
        +
      • +

        enablePreV21AudioSessionWorkaround

        +
        public static boolean enablePreV21AudioSessionWorkaround
        +
        Whether to enable a workaround for an issue where an audio effect does not keep its session + active across releasing/initializing a new audio track, on platform builds where + Util.SDK_INT < 21. +

        + The flag must be set before creating a player.

        +
      • +
      + + + +
        +
      • +

        failOnSpuriousAudioTimestamp

        +
        public static boolean failOnSpuriousAudioTimestamp
        +
        Whether to throw an AudioTrack.InvalidAudioTrackTimestampException when a spurious timestamp is + reported from AudioTrack.getTimestamp(android.media.AudioTimestamp). +

        + The flag must be set before creating a player. Should be set to true for testing and + debugging purposes only.

        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AudioTrack

        +
        public AudioTrack(AudioCapabilities audioCapabilities,
        +                  int streamType)
        +
        +
        Parameters:
        +
        audioCapabilities - The current audio capabilities.
        +
        streamType - The type of audio stream for the underlying AudioTrack.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isPassthroughSupported

        +
        public boolean isPassthroughSupported(java.lang.String mimeType)
        +
        Returns whether it's possible to play audio in the specified format using encoded passthrough.
        +
        +
        Parameters:
        +
        mimeType - The format mime type.
        +
        Returns:
        +
        Whether it's possible to play audio in the format using encoded passthrough.
        +
        +
      • +
      + + + +
        +
      • +

        isInitialized

        +
        public boolean isInitialized()
        +
        Returns whether the audio track has been successfully initialized via initialize(int) and + not yet reset().
        +
      • +
      + + + +
        +
      • +

        getCurrentPositionUs

        +
        public long getCurrentPositionUs(boolean sourceEnded)
        +
        Returns the playback position in the stream starting at zero, in microseconds, or + CURRENT_POSITION_NOT_SET if it is not yet available. + +

        If the device supports it, the method uses the playback timestamp from + AudioTrack.getTimestamp(android.media.AudioTimestamp). Otherwise, it derives a smoothed position by + sampling the AudioTrack's frame position.

        +
        +
        Parameters:
        +
        sourceEnded - Specify true if no more input buffers will be provided.
        +
        Returns:
        +
        The playback position relative to the start of playback, in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        configure

        +
        public void configure(java.lang.String mimeType,
        +                      int channelCount,
        +                      int sampleRate,
        +                      int pcmEncoding,
        +                      int specifiedBufferSize)
        +
        Configures (or reconfigures) the audio track.
        +
        +
        Parameters:
        +
        mimeType - The mime type.
        +
        channelCount - The number of channels.
        +
        sampleRate - The sample rate in Hz.
        +
        pcmEncoding - For PCM formats, the encoding used. One of C.ENCODING_PCM_16BIT, + C.ENCODING_PCM_16BIT, C.ENCODING_PCM_24BIT and + C.ENCODING_PCM_32BIT.
        +
        specifiedBufferSize - A specific size for the playback buffer in bytes, or 0 to infer a + suitable buffer size automatically.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getBufferSize

        +
        public int getBufferSize()
        +
        Returns the size of this AudioTrack's buffer in bytes. +

        + The value returned from this method may change as a result of calling one of the + configure(java.lang.String, int, int, int, int) methods.

        +
        +
        Returns:
        +
        The size of the buffer in bytes.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        play

        +
        public void play()
        +
        Starts or resumes playing audio if the audio track has been initialized.
        +
      • +
      + + + +
        +
      • +

        handleDiscontinuity

        +
        public void handleDiscontinuity()
        +
        Signals to the audio track that the next buffer is discontinuous with the previous buffer.
        +
      • +
      + + + +
        +
      • +

        handleBuffer

        +
        public int handleBuffer(java.nio.ByteBuffer buffer,
        +                        long presentationTimeUs)
        +                 throws AudioTrack.WriteException
        +
        Attempts to write data from a ByteBuffer to the audio track, starting from its current + position and ending at its limit (exclusive). The position of the ByteBuffer is + advanced by the number of bytes that were successfully written. +

        + Returns a bit field containing RESULT_BUFFER_CONSUMED if the data was written in full, + and RESULT_POSITION_DISCONTINUITY if the buffer was discontinuous with previously + written data. +

        + If the data was not written in full then the same ByteBuffer must be provided to + subsequent calls until it has been fully consumed, except in the case of an interleaving call + to configure(java.lang.String, int, int, int, int) or reset().

        +
        +
        Parameters:
        +
        buffer - The buffer containing audio data to play back.
        +
        presentationTimeUs - Presentation timestamp of the next buffer in microseconds.
        +
        Returns:
        +
        A bit field with RESULT_BUFFER_CONSUMED if the buffer can be released, and + RESULT_POSITION_DISCONTINUITY if the buffer was not contiguous with previously + written data.
        +
        Throws:
        +
        AudioTrack.WriteException - If an error occurs writing the audio data.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        hasPendingData

        +
        public boolean hasPendingData()
        +
        Returns whether the audio track has more data pending that will be played back.
        +
      • +
      + + + +
        +
      • +

        setPlaybackParams

        +
        public void setPlaybackParams(android.media.PlaybackParams playbackParams)
        +
        Sets the playback parameters. Only available for Util.SDK_INT >= 23
        +
        +
        Parameters:
        +
        playbackParams - The playback parameters to be used by the + AudioTrack.
        +
        Throws:
        +
        java.lang.UnsupportedOperationException - if the Playback Parameters are not supported. That is, + Util.SDK_INT < 23.
        +
        +
      • +
      + + + +
        +
      • +

        setVolume

        +
        public void setVolume(float volume)
        +
        Sets the playback volume.
        +
        +
        Parameters:
        +
        volume - A volume in the range [0.0, 1.0].
        +
        +
      • +
      + + + +
        +
      • +

        pause

        +
        public void pause()
        +
        Pauses playback.
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public void reset()
        +
        Releases the underlying audio track asynchronously. +

        + Calling initialize(int) will block until the audio track has been released, so it is + safe to initialize immediately after a reset. The audio session may remain active until + release() is called.

        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Releases all resources associated with this instance.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/DtsUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/DtsUtil.html new file mode 100644 index 00000000..7e1cc3ee --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/DtsUtil.html @@ -0,0 +1,323 @@ + + + + + +DtsUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class DtsUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.audio.DtsUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class DtsUtil
    +extends java.lang.Object
    +
    Utility methods for parsing DTS frames.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static intgetDtsFrameSize(byte[] data) +
      Returns the size in bytes of the given DTS frame.
      +
      static intparseDtsAudioSampleCount(byte[] data) +
      Returns the number of audio samples represented by the given DTS frame.
      +
      static intparseDtsAudioSampleCount(java.nio.ByteBuffer buffer) +
      Like parseDtsAudioSampleCount(byte[]) but reads from a ByteBuffer.
      +
      static FormatparseDtsFormat(byte[] frame, + java.lang.String trackId, + java.lang.String language, + DrmInitData drmInitData) +
      Returns the DTS format given data containing the DTS frame according to ETSI TS 102 114 + subsections 5.3/5.4.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parseDtsFormat

        +
        public static Format parseDtsFormat(byte[] frame,
        +                                    java.lang.String trackId,
        +                                    java.lang.String language,
        +                                    DrmInitData drmInitData)
        +
        Returns the DTS format given data containing the DTS frame according to ETSI TS 102 114 + subsections 5.3/5.4.
        +
        +
        Parameters:
        +
        frame - The DTS frame to parse.
        +
        trackId - The track identifier to set on the format, or null.
        +
        language - The language to set on the format.
        +
        drmInitData - DrmInitData to be included in the format.
        +
        Returns:
        +
        The DTS format parsed from data in the header.
        +
        +
      • +
      + + + +
        +
      • +

        parseDtsAudioSampleCount

        +
        public static int parseDtsAudioSampleCount(byte[] data)
        +
        Returns the number of audio samples represented by the given DTS frame.
        +
        +
        Parameters:
        +
        data - The frame to parse.
        +
        Returns:
        +
        The number of audio samples represented by the frame.
        +
        +
      • +
      + + + +
        +
      • +

        parseDtsAudioSampleCount

        +
        public static int parseDtsAudioSampleCount(java.nio.ByteBuffer buffer)
        +
        Like parseDtsAudioSampleCount(byte[]) but reads from a ByteBuffer. The + buffer's position is not modified.
        +
        +
        Parameters:
        +
        buffer - The ByteBuffer from which to read.
        +
        Returns:
        +
        The number of audio samples represented by the syncframe.
        +
        +
      • +
      + + + +
        +
      • +

        getDtsFrameSize

        +
        public static int getDtsFrameSize(byte[] data)
        +
        Returns the size in bytes of the given DTS frame.
        +
        +
        Parameters:
        +
        data - The frame to parse.
        +
        Returns:
        +
        The frame's size in bytes.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/MediaCodecAudioRenderer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/MediaCodecAudioRenderer.html new file mode 100644 index 00000000..d97f0704 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/MediaCodecAudioRenderer.html @@ -0,0 +1,1073 @@ + + + + + +MediaCodecAudioRenderer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class MediaCodecAudioRenderer

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MediaCodecAudioRenderer

        +
        public MediaCodecAudioRenderer(MediaCodecSelector mediaCodecSelector)
        +
        +
        Parameters:
        +
        mediaCodecSelector - A decoder selector.
        +
        +
      • +
      + + + +
        +
      • +

        MediaCodecAudioRenderer

        +
        public MediaCodecAudioRenderer(MediaCodecSelector mediaCodecSelector,
        +                               DrmSessionManager drmSessionManager,
        +                               boolean playClearSamplesWithoutKeys)
        +
        +
        Parameters:
        +
        mediaCodecSelector - A decoder selector.
        +
        drmSessionManager - For use with encrypted content. May be null if support for encrypted + content is not required.
        +
        playClearSamplesWithoutKeys - Encrypted media may contain clear (un-encrypted) regions. + For example a media file may start with a short clear region so as to allow playback to + begin in parallel with key acquisition. This parameter specifies whether the renderer is + permitted to play clear regions of encrypted media files before drmSessionManager + has obtained the keys necessary to decrypt encrypted regions of the media.
        +
        +
      • +
      + + + +
        +
      • +

        MediaCodecAudioRenderer

        +
        public MediaCodecAudioRenderer(MediaCodecSelector mediaCodecSelector,
        +                               android.os.Handler eventHandler,
        +                               AudioRendererEventListener eventListener)
        +
        +
        Parameters:
        +
        mediaCodecSelector - A decoder selector.
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        +
      • +
      + + + +
        +
      • +

        MediaCodecAudioRenderer

        +
        public MediaCodecAudioRenderer(MediaCodecSelector mediaCodecSelector,
        +                               DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
        +                               boolean playClearSamplesWithoutKeys,
        +                               android.os.Handler eventHandler,
        +                               AudioRendererEventListener eventListener)
        +
        +
        Parameters:
        +
        mediaCodecSelector - A decoder selector.
        +
        drmSessionManager - For use with encrypted content. May be null if support for encrypted + content is not required.
        +
        playClearSamplesWithoutKeys - Encrypted media may contain clear (un-encrypted) regions. + For example a media file may start with a short clear region so as to allow playback to + begin in parallel with key acquisition. This parameter specifies whether the renderer is + permitted to play clear regions of encrypted media files before drmSessionManager + has obtained the keys necessary to decrypt encrypted regions of the media.
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        +
      • +
      + + + +
        +
      • +

        MediaCodecAudioRenderer

        +
        public MediaCodecAudioRenderer(MediaCodecSelector mediaCodecSelector,
        +                               DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
        +                               boolean playClearSamplesWithoutKeys,
        +                               android.os.Handler eventHandler,
        +                               AudioRendererEventListener eventListener,
        +                               AudioCapabilities audioCapabilities,
        +                               int streamType)
        +
        +
        Parameters:
        +
        mediaCodecSelector - A decoder selector.
        +
        drmSessionManager - For use with encrypted content. May be null if support for encrypted + content is not required.
        +
        playClearSamplesWithoutKeys - Encrypted media may contain clear (un-encrypted) regions. + For example a media file may start with a short clear region so as to allow playback to + begin in parallel with key acquisition. This parameter specifies whether the renderer is + permitted to play clear regions of encrypted media files before drmSessionManager + has obtained the keys necessary to decrypt encrypted regions of the media.
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        audioCapabilities - The audio capabilities for playback on this device. May be null if the + default capabilities (no encoded audio passthrough support) should be assumed.
        +
        streamType - The type of audio stream for the AudioTrack.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        allowPassthrough

        +
        protected boolean allowPassthrough(java.lang.String mimeType)
        +
        Returns whether encoded audio passthrough should be used for playing back the input format. + This implementation returns true if the AudioTrack's audio capabilities indicate that + passthrough is supported.
        +
        +
        Parameters:
        +
        mimeType - The type of input media.
        +
        Returns:
        +
        Whether passthrough playback should be used.
        +
        +
      • +
      + + + +
        +
      • +

        configureCodec

        +
        protected void configureCodec(android.media.MediaCodec codec,
        +                              Format format,
        +                              android.media.MediaCrypto crypto)
        +
        Description copied from class: MediaCodecRenderer
        +
        Configures a newly created MediaCodec.
        +
        +
        Specified by:
        +
        configureCodec in class MediaCodecRenderer
        +
        Parameters:
        +
        codec - The MediaCodec to configure.
        +
        format - The format for which the codec is being configured.
        +
        crypto - For drm protected playbacks, a MediaCrypto to use for decryption.
        +
        +
      • +
      + + + +
        +
      • +

        getMediaClock

        +
        public MediaClock getMediaClock()
        +
        Description copied from interface: Renderer
        +
        If the renderer advances its own playback position then this method returns a corresponding + MediaClock. If provided, the player will use the returned MediaClock as its + source of time during playback. A player may have at most one renderer that returns a + MediaClock from this method.
        +
        +
        Specified by:
        +
        getMediaClock in interface Renderer
        +
        Overrides:
        +
        getMediaClock in class BaseRenderer
        +
        Returns:
        +
        The MediaClock tracking the playback position of the renderer, or null.
        +
        +
      • +
      + + + +
        +
      • +

        onCodecInitialized

        +
        protected void onCodecInitialized(java.lang.String name,
        +                                  long initializedTimestampMs,
        +                                  long initializationDurationMs)
        +
        Description copied from class: MediaCodecRenderer
        +
        Called when a MediaCodec has been created and configured. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onCodecInitialized in class MediaCodecRenderer
        +
        Parameters:
        +
        name - The name of the codec that was initialized.
        +
        initializedTimestampMs - SystemClock.elapsedRealtime() when initialization + finished.
        +
        initializationDurationMs - The time taken to initialize the codec in milliseconds.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        onOutputFormatChanged

        +
        protected void onOutputFormatChanged(android.media.MediaCodec codec,
        +                                     android.media.MediaFormat outputFormat)
        +
        Description copied from class: MediaCodecRenderer
        +
        Called when the output format of the MediaCodec changes. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onOutputFormatChanged in class MediaCodecRenderer
        +
        Parameters:
        +
        codec - The MediaCodec instance.
        +
        outputFormat - The new output format.
        +
        +
      • +
      + + + +
        +
      • +

        onAudioSessionId

        +
        protected void onAudioSessionId(int audioSessionId)
        +
        Called when the audio session id becomes known. Once the id is known it will not change (and + hence this method will not be called again) unless the renderer is disabled and then + subsequently re-enabled. +

        + The default implementation is a no-op. One reason for overriding this method would be to + instantiate and enable a Virtualizer in order to spatialize the audio channels. For + this use case, any Virtualizer instances should be released in onDisabled() + (if not before).

        +
        +
        Parameters:
        +
        audioSessionId - The audio session id.
        +
        +
      • +
      + + + +
        +
      • +

        onEnabled

        +
        protected void onEnabled(boolean joining)
        +                  throws ExoPlaybackException
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is enabled. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onEnabled in class MediaCodecRenderer
        +
        Parameters:
        +
        joining - Whether this renderer is being enabled to join an ongoing playback.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        onPositionReset

        +
        protected void onPositionReset(long positionUs,
        +                               boolean joining)
        +                        throws ExoPlaybackException
        +
        Description copied from class: BaseRenderer
        +
        Called when the position is reset. This occurs when the renderer is enabled after + BaseRenderer.onStreamChanged(Format[]) has been called, and also when a position discontinuity + is encountered. +

        + After a position reset, the renderer's SampleStream is guaranteed to provide samples + starting from a key frame. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onPositionReset in class MediaCodecRenderer
        +
        Parameters:
        +
        positionUs - The new playback position in microseconds.
        +
        joining - Whether this renderer is being enabled to join an ongoing playback.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        onStarted

        +
        protected void onStarted()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is started. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onStarted in class MediaCodecRenderer
        +
        +
      • +
      + + + +
        +
      • +

        onStopped

        +
        protected void onStopped()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is stopped. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onStopped in class MediaCodecRenderer
        +
        +
      • +
      + + + +
        +
      • +

        onDisabled

        +
        protected void onDisabled()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is disabled. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onDisabled in class MediaCodecRenderer
        +
        +
      • +
      + + + + + + + +
        +
      • +

        isReady

        +
        public boolean isReady()
        +
        Description copied from interface: Renderer
        +
        Whether the renderer is able to immediately render media from the current position. +

        + If the renderer is in the Renderer.STATE_STARTED state then returning true indicates that the + renderer has everything that it needs to continue playback. Returning false indicates that + the player should pause until the renderer is ready. +

        + If the renderer is in the Renderer.STATE_ENABLED state then returning true indicates that the + renderer is ready for playback to be started. Returning false indicates that it is not. +

        + This method may be called when the renderer is in the following states: + Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        +
        +
        Specified by:
        +
        isReady in interface Renderer
        +
        Overrides:
        +
        isReady in class MediaCodecRenderer
        +
        Returns:
        +
        Whether the renderer is ready to render media.
        +
        +
      • +
      + + + +
        +
      • +

        getPositionUs

        +
        public long getPositionUs()
        +
        Description copied from interface: MediaClock
        +
        Returns the current media position in microseconds.
        +
        +
        Specified by:
        +
        getPositionUs in interface MediaClock
        +
        +
      • +
      + + + +
        +
      • +

        processOutputBuffer

        +
        protected boolean processOutputBuffer(long positionUs,
        +                                      long elapsedRealtimeUs,
        +                                      android.media.MediaCodec codec,
        +                                      java.nio.ByteBuffer buffer,
        +                                      int bufferIndex,
        +                                      int bufferFlags,
        +                                      long bufferPresentationTimeUs,
        +                                      boolean shouldSkip)
        +                               throws ExoPlaybackException
        +
        Description copied from class: MediaCodecRenderer
        +
        Processes an output media buffer. +

        + When a new ByteBuffer is passed to this method its position and limit delineate the + data to be processed. The return value indicates whether the buffer was processed in full. If + true is returned then the next call to this method will receive a new buffer to be processed. + If false is returned then the same buffer will be passed to the next call. An implementation of + this method is free to modify the buffer and can assume that the buffer will not be externally + modified between successive calls. Hence an implementation can, for example, modify the + buffer's position to keep track of how much of the data it has processed. +

        + Note that the first call to this method following a call to + MediaCodecRenderer.onPositionReset(long, boolean) will always receive a new ByteBuffer to be + processed.

        +
        +
        Specified by:
        +
        processOutputBuffer in class MediaCodecRenderer
        +
        Parameters:
        +
        positionUs - The current media time in microseconds, measured at the start of the + current iteration of the rendering loop.
        +
        elapsedRealtimeUs - SystemClock.elapsedRealtime() in microseconds, + measured at the start of the current iteration of the rendering loop.
        +
        codec - The MediaCodec instance.
        +
        buffer - The output buffer to process.
        +
        bufferIndex - The index of the output buffer.
        +
        bufferFlags - The flags attached to the output buffer.
        +
        bufferPresentationTimeUs - The presentation time of the output buffer in microseconds.
        +
        shouldSkip - Whether the buffer should be skipped (i.e. not rendered).
        +
        Returns:
        +
        Whether the output buffer was fully processed (e.g. rendered or skipped).
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs processing the output buffer.
        +
        +
      • +
      + + + +
        +
      • +

        onOutputStreamEnded

        +
        protected void onOutputStreamEnded()
        +
        Description copied from class: MediaCodecRenderer
        +
        Called when the output stream ends, meaning that the last output buffer has been processed and + the MediaCodec.BUFFER_FLAG_END_OF_STREAM flag has been propagated through the decoder. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onOutputStreamEnded in class MediaCodecRenderer
        +
        +
      • +
      + + + +
        +
      • +

        handleAudioTrackDiscontinuity

        +
        protected void handleAudioTrackDiscontinuity()
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/SimpleDecoderAudioRenderer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/SimpleDecoderAudioRenderer.html new file mode 100644 index 00000000..6c504089 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/SimpleDecoderAudioRenderer.html @@ -0,0 +1,735 @@ + + + + + +SimpleDecoderAudioRenderer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.audio
+

Class SimpleDecoderAudioRenderer

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SimpleDecoderAudioRenderer

        +
        public SimpleDecoderAudioRenderer()
        +
      • +
      + + + +
        +
      • +

        SimpleDecoderAudioRenderer

        +
        public SimpleDecoderAudioRenderer(android.os.Handler eventHandler,
        +                                  AudioRendererEventListener eventListener)
        +
        +
        Parameters:
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        +
      • +
      + + + +
        +
      • +

        SimpleDecoderAudioRenderer

        +
        public SimpleDecoderAudioRenderer(android.os.Handler eventHandler,
        +                                  AudioRendererEventListener eventListener,
        +                                  AudioCapabilities audioCapabilities,
        +                                  int streamType)
        +
        +
        Parameters:
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        audioCapabilities - The audio capabilities for playback on this device. May be null if the + default capabilities (no encoded audio passthrough support) should be assumed.
        +
        streamType - The type of audio stream for the AudioTrack.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getMediaClock

        +
        public MediaClock getMediaClock()
        +
        Description copied from interface: Renderer
        +
        If the renderer advances its own playback position then this method returns a corresponding + MediaClock. If provided, the player will use the returned MediaClock as its + source of time during playback. A player may have at most one renderer that returns a + MediaClock from this method.
        +
        +
        Specified by:
        +
        getMediaClock in interface Renderer
        +
        Overrides:
        +
        getMediaClock in class BaseRenderer
        +
        Returns:
        +
        The MediaClock tracking the playback position of the renderer, or null.
        +
        +
      • +
      + + + +
        +
      • +

        render

        +
        public void render(long positionUs,
        +                   long elapsedRealtimeUs)
        +            throws ExoPlaybackException
        +
        Description copied from interface: Renderer
        +
        Incrementally renders the SampleStream. +

        + If the renderer is in the Renderer.STATE_ENABLED state then each call to this method will do + work toward being ready to render the SampleStream when the renderer is started. It may + also render the very start of the media, for example the first frame of a video stream. If the + renderer is in the Renderer.STATE_STARTED state then calls to this method will render the + SampleStream in sync with the specified media positions. +

        + This method should return quickly, and should not block if the renderer is unable to make + useful progress. +

        + This method may be called when the renderer is in the following states: + Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        +
        +
        Specified by:
        +
        render in interface Renderer
        +
        Parameters:
        +
        positionUs - The current media time in microseconds, measured at the start of the + current iteration of the rendering loop.
        +
        elapsedRealtimeUs - SystemClock.elapsedRealtime() in microseconds, + measured at the start of the current iteration of the rendering loop.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getOutputFormat

        +
        protected Format getOutputFormat()
        +
        Returns the format of audio buffers output by the decoder. Will not be called until the first + output buffer has been dequeued, so the decoder may use input data to determine the format. +

        + The default implementation returns a 16-bit PCM format with the same channel count and sample + rate as the input.

        +
      • +
      + + + +
        +
      • +

        isEnded

        +
        public boolean isEnded()
        +
        Description copied from interface: Renderer
        +
        Whether the renderer is ready for the ExoPlayer instance to transition to + ExoPlayer.STATE_ENDED. The player will make this transition as soon as true is + returned by all of its Renderers. +

        + This method may be called when the renderer is in the following states: + Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        +
        +
        Specified by:
        +
        isEnded in interface Renderer
        +
        Returns:
        +
        Whether the renderer is ready for the player to transition to the ended state.
        +
        +
      • +
      + + + +
        +
      • +

        isReady

        +
        public boolean isReady()
        +
        Description copied from interface: Renderer
        +
        Whether the renderer is able to immediately render media from the current position. +

        + If the renderer is in the Renderer.STATE_STARTED state then returning true indicates that the + renderer has everything that it needs to continue playback. Returning false indicates that + the player should pause until the renderer is ready. +

        + If the renderer is in the Renderer.STATE_ENABLED state then returning true indicates that the + renderer is ready for playback to be started. Returning false indicates that it is not. +

        + This method may be called when the renderer is in the following states: + Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        +
        +
        Specified by:
        +
        isReady in interface Renderer
        +
        Returns:
        +
        Whether the renderer is ready to render media.
        +
        +
      • +
      + + + +
        +
      • +

        getPositionUs

        +
        public long getPositionUs()
        +
        Description copied from interface: MediaClock
        +
        Returns the current media position in microseconds.
        +
        +
        Specified by:
        +
        getPositionUs in interface MediaClock
        +
        +
      • +
      + + + +
        +
      • +

        onAudioSessionId

        +
        protected void onAudioSessionId(int audioSessionId)
        +
        Called when the audio session id becomes known. Once the id is known it will not change (and + hence this method will not be called again) unless the renderer is disabled and then + subsequently re-enabled. +

        + The default implementation is a no-op.

        +
        +
        Parameters:
        +
        audioSessionId - The audio session id.
        +
        +
      • +
      + + + +
        +
      • +

        onEnabled

        +
        protected void onEnabled(boolean joining)
        +                  throws ExoPlaybackException
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is enabled. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onEnabled in class BaseRenderer
        +
        Parameters:
        +
        joining - Whether this renderer is being enabled to join an ongoing playback.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        onPositionReset

        +
        protected void onPositionReset(long positionUs,
        +                               boolean joining)
        +
        Description copied from class: BaseRenderer
        +
        Called when the position is reset. This occurs when the renderer is enabled after + BaseRenderer.onStreamChanged(Format[]) has been called, and also when a position discontinuity + is encountered. +

        + After a position reset, the renderer's SampleStream is guaranteed to provide samples + starting from a key frame. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onPositionReset in class BaseRenderer
        +
        Parameters:
        +
        positionUs - The new playback position in microseconds.
        +
        joining - Whether this renderer is being enabled to join an ongoing playback.
        +
        +
      • +
      + + + +
        +
      • +

        onStarted

        +
        protected void onStarted()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is started. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onStarted in class BaseRenderer
        +
        +
      • +
      + + + +
        +
      • +

        onStopped

        +
        protected void onStopped()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is stopped. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onStopped in class BaseRenderer
        +
        +
      • +
      + + + +
        +
      • +

        onDisabled

        +
        protected void onDisabled()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is disabled. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onDisabled in class BaseRenderer
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/package-frame.html new file mode 100644 index 00000000..17a48e46 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/package-frame.html @@ -0,0 +1,39 @@ + + + + + +com.google.android.exoplayer2.audio (library API) + + + + + +

com.google.android.exoplayer2.audio

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/package-summary.html new file mode 100644 index 00000000..7b746027 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/package-summary.html @@ -0,0 +1,244 @@ + + + + + +com.google.android.exoplayer2.audio (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.audio

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/package-tree.html new file mode 100644 index 00000000..50bd9c35 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/audio/package-tree.html @@ -0,0 +1,171 @@ + + + + + +com.google.android.exoplayer2.audio Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.audio

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/Buffer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/Buffer.html new file mode 100644 index 00000000..4c0d2940 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/Buffer.html @@ -0,0 +1,409 @@ + + + + + +Buffer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.decoder
+

Class Buffer

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.decoder.Buffer
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    DecoderInputBuffer, OutputBuffer
    +
    +
    +
    +
    public abstract class Buffer
    +extends java.lang.Object
    +
    Base class for buffers with flags.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Buffer() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddFlag(int flag) +
      Adds the flag to this buffer's flags.
      +
      voidclear() +
      Clears the buffer.
      +
      voidclearFlag(int flag) +
      Removes the flag from this buffer's flags, if it is set.
      +
      protected booleangetFlag(int flag) +
      Returns whether the specified flag has been set on this buffer.
      +
      booleanisDecodeOnly() +
      Returns whether the C.BUFFER_FLAG_DECODE_ONLY flag is set.
      +
      booleanisEndOfStream() +
      Returns whether the C.BUFFER_FLAG_END_OF_STREAM flag is set.
      +
      booleanisKeyFrame() +
      Returns whether the C.BUFFER_FLAG_KEY_FRAME flag is set.
      +
      voidsetFlags(int flags) +
      Replaces this buffer's flags with flags.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Buffer

        +
        public Buffer()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        Clears the buffer.
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        setFlags

        +
        public final void setFlags(int flags)
        +
        Replaces this buffer's flags with flags.
        +
        +
        Parameters:
        +
        flags - The flags to set, which should be a combination of the C.BUFFER_FLAG_* + constants.
        +
        +
      • +
      + + + +
        +
      • +

        addFlag

        +
        public final void addFlag(int flag)
        +
        Adds the flag to this buffer's flags.
        +
        +
        Parameters:
        +
        flag - The flag to add to this buffer's flags, which should be one of the + C.BUFFER_FLAG_* constants.
        +
        +
      • +
      + + + +
        +
      • +

        clearFlag

        +
        public final void clearFlag(int flag)
        +
        Removes the flag from this buffer's flags, if it is set.
        +
        +
        Parameters:
        +
        flag - The flag to remove.
        +
        +
      • +
      + + + +
        +
      • +

        getFlag

        +
        protected final boolean getFlag(int flag)
        +
        Returns whether the specified flag has been set on this buffer.
        +
        +
        Parameters:
        +
        flag - The flag to check.
        +
        Returns:
        +
        Whether the flag is set.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/CryptoInfo.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/CryptoInfo.html new file mode 100644 index 00000000..c85a0a79 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/CryptoInfo.html @@ -0,0 +1,433 @@ + + + + + +CryptoInfo (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.decoder
+

Class CryptoInfo

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.decoder.CryptoInfo
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class CryptoInfo
    +extends java.lang.Object
    +
    Compatibility wrapper for MediaCodec.CryptoInfo.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CryptoInfo() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      android.media.MediaCodec.CryptoInfogetFrameworkCryptoInfoV16() +
      Returns an equivalent MediaCodec.CryptoInfo instance.
      +
      voidset(int numSubSamples, + int[] numBytesOfClearData, + int[] numBytesOfEncryptedData, + byte[] key, + byte[] iv, + int mode) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        iv

        +
        public byte[] iv
        +
        +
        See Also:
        +
        MediaCodec.CryptoInfo.iv
        +
        +
      • +
      + + + +
        +
      • +

        key

        +
        public byte[] key
        +
        +
        See Also:
        +
        MediaCodec.CryptoInfo.key
        +
        +
      • +
      + + + +
        +
      • +

        mode

        +
        public int mode
        +
        +
        See Also:
        +
        MediaCodec.CryptoInfo.mode
        +
        +
      • +
      + + + +
        +
      • +

        numBytesOfClearData

        +
        public int[] numBytesOfClearData
        +
        +
        See Also:
        +
        MediaCodec.CryptoInfo.numBytesOfClearData
        +
        +
      • +
      + + + +
        +
      • +

        numBytesOfEncryptedData

        +
        public int[] numBytesOfEncryptedData
        +
        +
        See Also:
        +
        MediaCodec.CryptoInfo.numBytesOfEncryptedData
        +
        +
      • +
      + + + +
        +
      • +

        numSubSamples

        +
        public int numSubSamples
        +
        +
        See Also:
        +
        MediaCodec.CryptoInfo.numSubSamples
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CryptoInfo

        +
        public CryptoInfo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        set

        +
        public void set(int numSubSamples,
        +                int[] numBytesOfClearData,
        +                int[] numBytesOfEncryptedData,
        +                byte[] key,
        +                byte[] iv,
        +                int mode)
        +
        +
        See Also:
        +
        MediaCodec.CryptoInfo.set(int, int[], int[], byte[], byte[], int)
        +
        +
      • +
      + + + +
        +
      • +

        getFrameworkCryptoInfoV16

        +
        public android.media.MediaCodec.CryptoInfo getFrameworkCryptoInfoV16()
        +
        Returns an equivalent MediaCodec.CryptoInfo instance. +

        + Successive calls to this method on a single CryptoInfo will return the same instance. + Changes to the CryptoInfo will be reflected in the returned object. The return object + should not be modified directly.

        +
        +
        Returns:
        +
        The equivalent MediaCodec.CryptoInfo instance.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/Decoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/Decoder.html new file mode 100644 index 00000000..f4b883dd --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/Decoder.html @@ -0,0 +1,348 @@ + + + + + +Decoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.decoder
+

Interface Decoder<I,O,E extends java.lang.Exception>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      IdequeueInputBuffer() +
      Dequeues the next input buffer to be filled and queued to the decoder.
      +
      OdequeueOutputBuffer() +
      Dequeues the next output buffer from the decoder.
      +
      voidflush() +
      Flushes the decoder.
      +
      java.lang.StringgetName() +
      Returns the name of the decoder.
      +
      voidqueueInputBuffer(I inputBuffer) +
      Queues an input buffer to the decoder.
      +
      voidrelease() +
      Releases the decoder.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getName

        +
        java.lang.String getName()
        +
        Returns the name of the decoder.
        +
        +
        Returns:
        +
        The name of the decoder.
        +
        +
      • +
      + + + +
        +
      • +

        dequeueInputBuffer

        +
        I dequeueInputBuffer()
        +              throws E extends java.lang.Exception
        +
        Dequeues the next input buffer to be filled and queued to the decoder.
        +
        +
        Returns:
        +
        The input buffer, which will have been cleared, or null if a buffer isn't available.
        +
        Throws:
        +
        E - If a decoder error has occurred.
        +
        E extends java.lang.Exception
        +
        +
      • +
      + + + + + +
        +
      • +

        queueInputBuffer

        +
        void queueInputBuffer(I inputBuffer)
        +               throws E extends java.lang.Exception
        +
        Queues an input buffer to the decoder.
        +
        +
        Parameters:
        +
        inputBuffer - The input buffer.
        +
        Throws:
        +
        E - If a decoder error has occurred.
        +
        E extends java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        dequeueOutputBuffer

        +
        O dequeueOutputBuffer()
        +               throws E extends java.lang.Exception
        +
        Dequeues the next output buffer from the decoder.
        +
        +
        Returns:
        +
        The output buffer, or null if an output buffer isn't available.
        +
        Throws:
        +
        E - If a decoder error has occurred.
        +
        E extends java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        flush

        +
        void flush()
        +
        Flushes the decoder. Ownership of dequeued input buffers is returned to the decoder. The caller + is still responsible for releasing any dequeued output buffers.
        +
      • +
      + + + +
        +
      • +

        release

        +
        void release()
        +
        Releases the decoder. Must be called when the decoder is no longer needed.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/DecoderCounters.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/DecoderCounters.html new file mode 100644 index 00000000..291c0b85 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/DecoderCounters.html @@ -0,0 +1,441 @@ + + + + + +DecoderCounters (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.decoder
+

Class DecoderCounters

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.decoder.DecoderCounters
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class DecoderCounters
    +extends java.lang.Object
    +
    Maintains decoder event counts, for debugging purposes only. +

    + Counters should be written from the playback thread only. Counters may be read from any thread. + To ensure that the counter values are made visible across threads, users of this class should + invoke ensureUpdated() prior to reading and after writing.

    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DecoderCounters() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidensureUpdated() +
      Should be called to ensure counter values are made visible across threads.
      +
      voidmerge(DecoderCounters other) +
      Merges the counts from other into this instance.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        decoderInitCount

        +
        public int decoderInitCount
        +
        The number of times a decoder has been initialized.
        +
      • +
      + + + +
        +
      • +

        decoderReleaseCount

        +
        public int decoderReleaseCount
        +
        The number of times a decoder has been released.
        +
      • +
      + + + +
        +
      • +

        inputBufferCount

        +
        public int inputBufferCount
        +
        The number of queued input buffers.
        +
      • +
      + + + +
        +
      • +

        renderedOutputBufferCount

        +
        public int renderedOutputBufferCount
        +
        The number of rendered output buffers.
        +
      • +
      + + + +
        +
      • +

        skippedOutputBufferCount

        +
        public int skippedOutputBufferCount
        +
        The number of skipped output buffers. +

        + A skipped output buffer is an output buffer that was deliberately not rendered.

        +
      • +
      + + + +
        +
      • +

        droppedOutputBufferCount

        +
        public int droppedOutputBufferCount
        +
        The number of dropped output buffers. +

        + A dropped output buffer is an output buffer that was supposed to be rendered, but was instead + dropped because it could not be rendered in time.

        +
      • +
      + + + +
        +
      • +

        maxConsecutiveDroppedOutputBufferCount

        +
        public int maxConsecutiveDroppedOutputBufferCount
        +
        The maximum number of dropped output buffers without an interleaving rendered output buffer. +

        + Skipped output buffers are ignored for the purposes of calculating this value.

        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DecoderCounters

        +
        public DecoderCounters()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        ensureUpdated

        +
        public void ensureUpdated()
        +
        Should be called to ensure counter values are made visible across threads. The playback thread + should call this method after updating the counter values. Any other thread should call this + method before reading the counters.
        +
      • +
      + + + +
        +
      • +

        merge

        +
        public void merge(DecoderCounters other)
        +
        Merges the counts from other into this instance.
        +
        +
        Parameters:
        +
        other - The DecoderCounters to merge into this instance.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/DecoderInputBuffer.BufferReplacementMode.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/DecoderInputBuffer.BufferReplacementMode.html new file mode 100644 index 00000000..5ddb7007 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/DecoderInputBuffer.BufferReplacementMode.html @@ -0,0 +1,163 @@ + + + + + +DecoderInputBuffer.BufferReplacementMode (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.decoder
+

Annotation Type DecoderInputBuffer.BufferReplacementMode

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface DecoderInputBuffer.BufferReplacementMode
    +
    The buffer replacement mode, which may disable replacement.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/DecoderInputBuffer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/DecoderInputBuffer.html new file mode 100644 index 00000000..29daecad --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/DecoderInputBuffer.html @@ -0,0 +1,518 @@ + + + + + +DecoderInputBuffer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.decoder
+

Class DecoderInputBuffer

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    SubtitleInputBuffer
    +
    +
    +
    +
    public class DecoderInputBuffer
    +extends Buffer
    +
    Holds input for a decoder.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        BUFFER_REPLACEMENT_MODE_DISABLED

        +
        public static final int BUFFER_REPLACEMENT_MODE_DISABLED
        +
        Disallows buffer replacement.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        BUFFER_REPLACEMENT_MODE_NORMAL

        +
        public static final int BUFFER_REPLACEMENT_MODE_NORMAL
        +
        Allows buffer replacement using ByteBuffer.allocate(int).
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        BUFFER_REPLACEMENT_MODE_DIRECT

        +
        public static final int BUFFER_REPLACEMENT_MODE_DIRECT
        +
        Allows buffer replacement using ByteBuffer.allocateDirect(int).
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + + + + +
        +
      • +

        data

        +
        public java.nio.ByteBuffer data
        +
        The buffer's data, or null if no data has been set.
        +
      • +
      + + + +
        +
      • +

        timeUs

        +
        public long timeUs
        +
        The time at which the sample should be presented.
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        ensureSpaceForWrite

        +
        public void ensureSpaceForWrite(int length)
        +                         throws java.lang.IllegalStateException
        +
        Ensures that data is large enough to accommodate a write of a given length at its + current position. +

        + If the capacity of data is sufficient this method does nothing. If the capacity is + insufficient then an attempt is made to replace data with a new ByteBuffer + whose capacity is sufficient. Data up to the current position is copied to the new buffer.

        +
        +
        Parameters:
        +
        length - The length of the write that must be accommodated, in bytes.
        +
        Throws:
        +
        java.lang.IllegalStateException - If there is insufficient capacity to accommodate the write and + the buffer replacement mode of the holder is BUFFER_REPLACEMENT_MODE_DISABLED.
        +
        +
      • +
      + + + +
        +
      • +

        isEncrypted

        +
        public final boolean isEncrypted()
        +
        Returns whether the C.BUFFER_FLAG_ENCRYPTED flag is set.
        +
      • +
      + + + +
        +
      • +

        flip

        +
        public final void flip()
        +
        Flips data in preparation for being queued to a decoder.
        +
        +
        See Also:
        +
        Buffer.flip()
        +
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        Description copied from class: Buffer
        +
        Clears the buffer.
        +
        +
        Overrides:
        +
        clear in class Buffer
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/OutputBuffer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/OutputBuffer.html new file mode 100644 index 00000000..d268c26c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/OutputBuffer.html @@ -0,0 +1,344 @@ + + + + + +OutputBuffer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.decoder
+

Class OutputBuffer

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intskippedOutputBufferCount +
      The number of buffers immediately prior to this one that were skipped in the Decoder.
      +
      longtimeUs +
      The presentation timestamp for the buffer, in microseconds.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      OutputBuffer() 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        timeUs

        +
        public long timeUs
        +
        The presentation timestamp for the buffer, in microseconds.
        +
      • +
      + + + +
        +
      • +

        skippedOutputBufferCount

        +
        public int skippedOutputBufferCount
        +
        The number of buffers immediately prior to this one that were skipped in the Decoder.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OutputBuffer

        +
        public OutputBuffer()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        release

        +
        public abstract void release()
        +
        Releases the output buffer for reuse. Must be called when the buffer is no longer needed.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/SimpleDecoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/SimpleDecoder.html new file mode 100644 index 00000000..6a727156 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/SimpleDecoder.html @@ -0,0 +1,521 @@ + + + + + +SimpleDecoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.decoder
+

Class SimpleDecoder<I extends DecoderInputBuffer,O extends OutputBuffer,E extends java.lang.Exception>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.decoder.SimpleDecoder<I,O,E>
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ModifierConstructor and Description
      protected SimpleDecoder(I[] inputBuffers, + O[] outputBuffers) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected abstract IcreateInputBuffer() +
      Creates a new input buffer.
      +
      protected abstract OcreateOutputBuffer() +
      Creates a new output buffer.
      +
      protected abstract Edecode(I inputBuffer, + O outputBuffer, + boolean reset) +
      Decodes the inputBuffer and stores any decoded output in outputBuffer.
      +
      IdequeueInputBuffer() +
      Dequeues the next input buffer to be filled and queued to the decoder.
      +
      OdequeueOutputBuffer() +
      Dequeues the next output buffer from the decoder.
      +
      voidflush() +
      Flushes the decoder.
      +
      voidqueueInputBuffer(I inputBuffer) +
      Queues an input buffer to the decoder.
      +
      voidrelease() +
      Releases the decoder.
      +
      protected voidreleaseOutputBuffer(O outputBuffer) +
      Releases an output buffer back to the decoder.
      +
      protected voidsetInitialInputBufferSize(int size) +
      Sets the initial size of each input buffer.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface com.google.android.exoplayer2.decoder.Decoder

        +getName
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        SimpleDecoder

        +
        protected SimpleDecoder(I[] inputBuffers,
        +                        O[] outputBuffers)
        +
        +
        Parameters:
        +
        inputBuffers - An array of nulls that will be used to store references to input buffers.
        +
        outputBuffers - An array of nulls that will be used to store references to output buffers.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setInitialInputBufferSize

        +
        protected final void setInitialInputBufferSize(int size)
        +
        Sets the initial size of each input buffer. +

        + This method should only be called before the decoder is used (i.e. before the first call to + dequeueInputBuffer().

        +
        +
        Parameters:
        +
        size - The required input buffer size.
        +
        +
      • +
      + + + +
        +
      • +

        dequeueInputBuffer

        +
        public final I dequeueInputBuffer()
        +                           throws E extends java.lang.Exception
        +
        Description copied from interface: Decoder
        +
        Dequeues the next input buffer to be filled and queued to the decoder.
        +
        +
        Specified by:
        +
        dequeueInputBuffer in interface Decoder<I extends DecoderInputBuffer,O extends OutputBuffer,E extends java.lang.Exception>
        +
        Returns:
        +
        The input buffer, which will have been cleared, or null if a buffer isn't available.
        +
        Throws:
        +
        E - If a decoder error has occurred.
        +
        E extends java.lang.Exception
        +
        +
      • +
      + + + + + +
        +
      • +

        queueInputBuffer

        +
        public final void queueInputBuffer(I inputBuffer)
        +                            throws E extends java.lang.Exception
        +
        Description copied from interface: Decoder
        +
        Queues an input buffer to the decoder.
        +
        +
        Specified by:
        +
        queueInputBuffer in interface Decoder<I extends DecoderInputBuffer,O extends OutputBuffer,E extends java.lang.Exception>
        +
        Parameters:
        +
        inputBuffer - The input buffer.
        +
        Throws:
        +
        E - If a decoder error has occurred.
        +
        E extends java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        dequeueOutputBuffer

        +
        public final O dequeueOutputBuffer()
        +                            throws E extends java.lang.Exception
        +
        Description copied from interface: Decoder
        +
        Dequeues the next output buffer from the decoder.
        +
        +
        Specified by:
        +
        dequeueOutputBuffer in interface Decoder<I extends DecoderInputBuffer,O extends OutputBuffer,E extends java.lang.Exception>
        +
        Returns:
        +
        The output buffer, or null if an output buffer isn't available.
        +
        Throws:
        +
        E - If a decoder error has occurred.
        +
        E extends java.lang.Exception
        +
        +
      • +
      + + + + + +
        +
      • +

        releaseOutputBuffer

        +
        protected void releaseOutputBuffer(O outputBuffer)
        +
        Releases an output buffer back to the decoder.
        +
        +
        Parameters:
        +
        outputBuffer - The output buffer being released.
        +
        +
      • +
      + + + +
        +
      • +

        flush

        +
        public final void flush()
        +
        Description copied from interface: Decoder
        +
        Flushes the decoder. Ownership of dequeued input buffers is returned to the decoder. The caller + is still responsible for releasing any dequeued output buffers.
        +
        +
        Specified by:
        +
        flush in interface Decoder<I extends DecoderInputBuffer,O extends OutputBuffer,E extends java.lang.Exception>
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Decoder
        +
        Releases the decoder. Must be called when the decoder is no longer needed.
        +
        +
        Specified by:
        +
        release in interface Decoder<I extends DecoderInputBuffer,O extends OutputBuffer,E extends java.lang.Exception>
        +
        +
      • +
      + + + +
        +
      • +

        createInputBuffer

        +
        protected abstract I createInputBuffer()
        +
        Creates a new input buffer.
        +
      • +
      + + + +
        +
      • +

        createOutputBuffer

        +
        protected abstract O createOutputBuffer()
        +
        Creates a new output buffer.
        +
      • +
      + + + + + +
        +
      • +

        decode

        +
        protected abstract E decode(I inputBuffer,
        +                            O outputBuffer,
        +                            boolean reset)
        +
        Decodes the inputBuffer and stores any decoded output in outputBuffer.
        +
        +
        Parameters:
        +
        inputBuffer - The buffer to decode.
        +
        outputBuffer - The output buffer to store decoded data. The flag + C.BUFFER_FLAG_DECODE_ONLY will be set if the same flag is set on + inputBuffer, but may be set/unset as required. If the flag is set when the call + returns then the output buffer will not be made available to dequeue. The output buffer + may not have been populated in this case.
        +
        reset - Whether the decoder must be reset before decoding.
        +
        Returns:
        +
        A decoder exception if an error occurred, or null if decoding was successful.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/SimpleOutputBuffer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/SimpleOutputBuffer.html new file mode 100644 index 00000000..7aa29662 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/SimpleOutputBuffer.html @@ -0,0 +1,384 @@ + + + + + +SimpleOutputBuffer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.decoder
+

Class SimpleOutputBuffer

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        data

        +
        public java.nio.ByteBuffer data
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        init

        +
        public java.nio.ByteBuffer init(long timeUs,
        +                                int size)
        +
        Initializes the buffer.
        +
        +
        Parameters:
        +
        timeUs - The presentation timestamp for the buffer, in microseconds.
        +
        size - An upper bound on the size of the data that will be written to the buffer.
        +
        Returns:
        +
        The data buffer, for convenience.
        +
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        Description copied from class: Buffer
        +
        Clears the buffer.
        +
        +
        Overrides:
        +
        clear in class Buffer
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from class: OutputBuffer
        +
        Releases the output buffer for reuse. Must be called when the buffer is no longer needed.
        +
        +
        Specified by:
        +
        release in class OutputBuffer
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/package-frame.html new file mode 100644 index 00000000..ac44a527 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/package-frame.html @@ -0,0 +1,34 @@ + + + + + +com.google.android.exoplayer2.decoder (library API) + + + + + +

com.google.android.exoplayer2.decoder

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/package-summary.html new file mode 100644 index 00000000..7e026653 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/package-summary.html @@ -0,0 +1,212 @@ + + + + + +com.google.android.exoplayer2.decoder (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.decoder

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/package-tree.html new file mode 100644 index 00000000..2cdb58e9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/decoder/package-tree.html @@ -0,0 +1,155 @@ + + + + + +com.google.android.exoplayer2.decoder Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.decoder

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+
    +
  • com.google.android.exoplayer2.decoder.Decoder<I,O,E>
  • +
+

Annotation Type Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmInitData.SchemeData.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmInitData.SchemeData.html new file mode 100644 index 00000000..477a970a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmInitData.SchemeData.html @@ -0,0 +1,501 @@ + + + + + +DrmInitData.SchemeData (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Class DrmInitData.SchemeData

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.drm.DrmInitData.SchemeData
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    android.os.Parcelable
    +
    +
    +
    Enclosing class:
    +
    DrmInitData
    +
    +
    +
    +
    public static final class DrmInitData.SchemeData
    +extends java.lang.Object
    +implements android.os.Parcelable
    +
    Scheme initialization data.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from interface android.os.Parcelable

        +android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static android.os.Parcelable.Creator<DrmInitData.SchemeData>CREATOR 
      byte[]data +
      The initialization data.
      +
      java.lang.StringmimeType +
      The mimeType of data.
      +
      booleanrequiresSecureDecryption +
      Whether secure decryption is required.
      +
      +
        +
      • + + +

        Fields inherited from interface android.os.Parcelable

        +CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      SchemeData(java.util.UUID uuid, + java.lang.String mimeType, + byte[] data) 
      SchemeData(java.util.UUID uuid, + java.lang.String mimeType, + byte[] data, + boolean requiresSecureDecryption) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intdescribeContents() 
      booleanequals(java.lang.Object obj) 
      inthashCode() 
      booleanmatches(java.util.UUID schemeUuid) +
      Returns whether this initialization data applies to the specified scheme.
      +
      voidwriteToParcel(android.os.Parcel dest, + int flags) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        mimeType

        +
        public final java.lang.String mimeType
        +
        The mimeType of data.
        +
      • +
      + + + +
        +
      • +

        data

        +
        public final byte[] data
        +
        The initialization data.
        +
      • +
      + + + +
        +
      • +

        requiresSecureDecryption

        +
        public final boolean requiresSecureDecryption
        +
        Whether secure decryption is required.
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SchemeData

        +
        public SchemeData(java.util.UUID uuid,
        +                  java.lang.String mimeType,
        +                  byte[] data)
        +
        +
        Parameters:
        +
        uuid - The UUID of the DRM scheme, or C.UUID_NIL if the data is + universal (i.e. applies to all schemes).
        +
        mimeType - The mimeType of the initialization data.
        +
        data - The initialization data.
        +
        +
      • +
      + + + +
        +
      • +

        SchemeData

        +
        public SchemeData(java.util.UUID uuid,
        +                  java.lang.String mimeType,
        +                  byte[] data,
        +                  boolean requiresSecureDecryption)
        +
        +
        Parameters:
        +
        uuid - The UUID of the DRM scheme, or C.UUID_NIL if the data is + universal (i.e. applies to all schemes).
        +
        mimeType - The mimeType of the initialization data.
        +
        data - The initialization data.
        +
        requiresSecureDecryption - Whether secure decryption is required.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        matches

        +
        public boolean matches(java.util.UUID schemeUuid)
        +
        Returns whether this initialization data applies to the specified scheme.
        +
        +
        Parameters:
        +
        schemeUuid - The scheme UUID.
        +
        Returns:
        +
        Whether this initialization data applies to the specified scheme.
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        describeContents

        +
        public int describeContents()
        +
        +
        Specified by:
        +
        describeContents in interface android.os.Parcelable
        +
        +
      • +
      + + + +
        +
      • +

        writeToParcel

        +
        public void writeToParcel(android.os.Parcel dest,
        +                          int flags)
        +
        +
        Specified by:
        +
        writeToParcel in interface android.os.Parcelable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmInitData.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmInitData.html new file mode 100644 index 00000000..2a43f8db --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmInitData.html @@ -0,0 +1,511 @@ + + + + + +DrmInitData (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Class DrmInitData

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.drm.DrmInitData
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    android.os.Parcelable, java.util.Comparator<DrmInitData.SchemeData>
    +
    +
    +
    +
    public final class DrmInitData
    +extends java.lang.Object
    +implements java.util.Comparator<DrmInitData.SchemeData>, android.os.Parcelable
    +
    Initialization data for one or more DRM schemes.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class DrmInitData.SchemeData +
      Scheme initialization data.
      +
      +
        +
      • + + +

        Nested classes/interfaces inherited from interface android.os.Parcelable

        +android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static android.os.Parcelable.Creator<DrmInitData>CREATOR 
      intschemeDataCount + +
      +
        +
      • + + +

        Fields inherited from interface android.os.Parcelable

        +CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
      • +
      +
    • +
    + + + + +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DrmInitData

        +
        public DrmInitData(java.util.List<DrmInitData.SchemeData> schemeDatas)
        +
        +
        Parameters:
        +
        schemeDatas - Scheme initialization data for possibly multiple DRM schemes.
        +
        +
      • +
      + + + +
        +
      • +

        DrmInitData

        +
        public DrmInitData(DrmInitData.SchemeData... schemeDatas)
        +
        +
        Parameters:
        +
        schemeDatas - Scheme initialization data for possibly multiple DRM schemes.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public DrmInitData.SchemeData get(java.util.UUID uuid)
        +
        Retrieves data for a given DRM scheme, specified by its UUID.
        +
        +
        Parameters:
        +
        uuid - The DRM scheme's UUID.
        +
        Returns:
        +
        The initialization data for the scheme, or null if the scheme is not supported.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Specified by:
        +
        equals in interface java.util.Comparator<DrmInitData.SchemeData>
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + + + + + +
        +
      • +

        describeContents

        +
        public int describeContents()
        +
        +
        Specified by:
        +
        describeContents in interface android.os.Parcelable
        +
        +
      • +
      + + + +
        +
      • +

        writeToParcel

        +
        public void writeToParcel(android.os.Parcel dest,
        +                          int flags)
        +
        +
        Specified by:
        +
        writeToParcel in interface android.os.Parcelable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmSession.State.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmSession.State.html new file mode 100644 index 00000000..c9023078 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmSession.State.html @@ -0,0 +1,163 @@ + + + + + +DrmSession.State (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Annotation Type DrmSession.State

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface DrmSession.State
    +
    The state of the DRM session.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmSession.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmSession.html new file mode 100644 index 00000000..90850a95 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmSession.html @@ -0,0 +1,453 @@ + + + + + +DrmSession (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Interface DrmSession<T extends ExoMediaCrypto>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeInterface and Description
      static interface DrmSession.State +
      The state of the DRM session.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intSTATE_CLOSED +
      The session is closed.
      +
      static intSTATE_ERROR +
      The session has encountered an error.
      +
      static intSTATE_OPENED +
      The session is open, but does not yet have the keys required for decryption.
      +
      static intSTATE_OPENED_WITH_KEYS +
      The session is open and has the keys required for decryption.
      +
      static intSTATE_OPENING +
      The session is being opened.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        STATE_ERROR

        +
        static final int STATE_ERROR
        +
        The session has encountered an error. getError() can be used to retrieve the cause.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STATE_CLOSED

        +
        static final int STATE_CLOSED
        +
        The session is closed.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STATE_OPENING

        +
        static final int STATE_OPENING
        +
        The session is being opened.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STATE_OPENED

        +
        static final int STATE_OPENED
        +
        The session is open, but does not yet have the keys required for decryption.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        STATE_OPENED_WITH_KEYS

        +
        static final int STATE_OPENED_WITH_KEYS
        +
        The session is open and has the keys required for decryption.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getMediaCrypto

        +
        T getMediaCrypto()
        +
        Returns a ExoMediaCrypto for the open session. +

        + This method may be called when the session is in the following states: + STATE_OPENED, STATE_OPENED_WITH_KEYS

        +
        +
        Returns:
        +
        A ExoMediaCrypto for the open session.
        +
        Throws:
        +
        java.lang.IllegalStateException - If called when a session isn't opened.
        +
        +
      • +
      + + + +
        +
      • +

        requiresSecureDecoderComponent

        +
        boolean requiresSecureDecoderComponent(java.lang.String mimeType)
        +
        Whether the session requires a secure decoder for the specified mime type. +

        + Normally this method should return + ExoMediaCrypto.requiresSecureDecoderComponent(String), however in some cases + implementations may wish to modify the return value (i.e. to force a secure decoder even when + one is not required). +

        + This method may be called when the session is in the following states: + STATE_OPENED, STATE_OPENED_WITH_KEYS

        +
        +
        Returns:
        +
        Whether the open session requires a secure decoder for the specified mime type.
        +
        Throws:
        +
        java.lang.IllegalStateException - If called when a session isn't opened.
        +
        +
      • +
      + + + +
        +
      • +

        getError

        +
        java.lang.Exception getError()
        +
        Returns the cause of the error state. +

        + This method may be called when the session is in any state.

        +
        +
        Returns:
        +
        An exception if the state is STATE_ERROR. Null otherwise.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmSessionManager.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmSessionManager.html new file mode 100644 index 00000000..4c785a30 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/DrmSessionManager.html @@ -0,0 +1,253 @@ + + + + + +DrmSessionManager (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Interface DrmSessionManager<T extends ExoMediaCrypto>

+
+
+
+ +
+
+ +
+
+
    +
  • + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaCrypto.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaCrypto.html new file mode 100644 index 00000000..b1028ca9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaCrypto.html @@ -0,0 +1,228 @@ + + + + + +ExoMediaCrypto (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Interface ExoMediaCrypto

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    FrameworkMediaCrypto
    +
    +
    +
    +
    public interface ExoMediaCrypto
    +
    An opaque MediaCrypto equivalent.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        requiresSecureDecoderComponent

        +
        boolean requiresSecureDecoderComponent(java.lang.String mimeType)
        +
        +
        See Also:
        +
        MediaCrypto.requiresSecureDecoderComponent(String)
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.KeyRequest.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.KeyRequest.html new file mode 100644 index 00000000..1a7524de --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.KeyRequest.html @@ -0,0 +1,240 @@ + + + + + +ExoMediaDrm.KeyRequest (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Interface ExoMediaDrm.KeyRequest

+
+
+
+
    +
  • +
    +
    Enclosing interface:
    +
    ExoMediaDrm<T extends ExoMediaCrypto>
    +
    +
    +
    +
    public static interface ExoMediaDrm.KeyRequest
    +
    +
    See Also:
    +
    MediaDrm.KeyRequest
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getData

        +
        byte[] getData()
        +
      • +
      + + + +
        +
      • +

        getDefaultUrl

        +
        java.lang.String getDefaultUrl()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.OnEventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.OnEventListener.html new file mode 100644 index 00000000..b64e26a3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.OnEventListener.html @@ -0,0 +1,246 @@ + + + + + +ExoMediaDrm.OnEventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Interface ExoMediaDrm.OnEventListener<T extends ExoMediaCrypto>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidonEvent(ExoMediaDrm<? extends T> mediaDrm, + byte[] sessionId, + int event, + int extra, + byte[] data) +
      Called when an event occurs that requires the app to be notified
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onEvent

        +
        void onEvent(ExoMediaDrm<? extends T> mediaDrm,
        +             byte[] sessionId,
        +             int event,
        +             int extra,
        +             byte[] data)
        +
        Called when an event occurs that requires the app to be notified
        +
        +
        Parameters:
        +
        mediaDrm - the ExoMediaDrm object on which the event occurred.
        +
        sessionId - the DRM session ID on which the event occurred
        +
        event - indicates the event type
        +
        extra - an secondary error code
        +
        data - optional byte array of data that may be associated with the event
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.ProvisionRequest.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.ProvisionRequest.html new file mode 100644 index 00000000..5652a239 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.ProvisionRequest.html @@ -0,0 +1,240 @@ + + + + + +ExoMediaDrm.ProvisionRequest (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Interface ExoMediaDrm.ProvisionRequest

+
+
+
+
    +
  • +
    +
    Enclosing interface:
    +
    ExoMediaDrm<T extends ExoMediaCrypto>
    +
    +
    +
    +
    public static interface ExoMediaDrm.ProvisionRequest
    +
    +
    See Also:
    +
    MediaDrm.ProvisionRequest
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getData

        +
        byte[] getData()
        +
      • +
      + + + +
        +
      • +

        getDefaultUrl

        +
        java.lang.String getDefaultUrl()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.html new file mode 100644 index 00000000..86dbc999 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/ExoMediaDrm.html @@ -0,0 +1,535 @@ + + + + + +ExoMediaDrm (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Interface ExoMediaDrm<T extends ExoMediaCrypto>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    FrameworkMediaDrm
    +
    +
    +
    +
    public interface ExoMediaDrm<T extends ExoMediaCrypto>
    +
    Used to obtain keys for decrypting protected media streams. See MediaDrm.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setOnEventListener

        +
        void setOnEventListener(ExoMediaDrm.OnEventListener<? super T> listener)
        +
        +
        See Also:
        +
        MediaDrm.setOnEventListener(MediaDrm.OnEventListener)
        +
        +
      • +
      + + + +
        +
      • +

        openSession

        +
        byte[] openSession()
        +            throws android.media.NotProvisionedException,
        +                   android.media.ResourceBusyException
        +
        +
        Throws:
        +
        android.media.NotProvisionedException
        +
        android.media.ResourceBusyException
        +
        See Also:
        +
        MediaDrm.openSession()
        +
        +
      • +
      + + + +
        +
      • +

        closeSession

        +
        void closeSession(byte[] sessionId)
        +
        +
        See Also:
        +
        MediaDrm.closeSession(byte[])
        +
        +
      • +
      + + + +
        +
      • +

        getKeyRequest

        +
        ExoMediaDrm.KeyRequest getKeyRequest(byte[] scope,
        +                                     byte[] init,
        +                                     java.lang.String mimeType,
        +                                     int keyType,
        +                                     java.util.HashMap<java.lang.String,java.lang.String> optionalParameters)
        +                              throws android.media.NotProvisionedException
        +
        +
        Throws:
        +
        android.media.NotProvisionedException
        +
        See Also:
        +
        MediaDrm.getKeyRequest(byte[], byte[], String, int, HashMap)
        +
        +
      • +
      + + + +
        +
      • +

        provideKeyResponse

        +
        byte[] provideKeyResponse(byte[] scope,
        +                          byte[] response)
        +                   throws android.media.NotProvisionedException,
        +                          android.media.DeniedByServerException
        +
        +
        Throws:
        +
        android.media.NotProvisionedException
        +
        android.media.DeniedByServerException
        +
        See Also:
        +
        MediaDrm.provideKeyResponse(byte[], byte[])
        +
        +
      • +
      + + + + + + + +
        +
      • +

        provideProvisionResponse

        +
        void provideProvisionResponse(byte[] response)
        +                       throws android.media.DeniedByServerException
        +
        +
        Throws:
        +
        android.media.DeniedByServerException
        +
        See Also:
        +
        MediaDrm.provideProvisionResponse(byte[])
        +
        +
      • +
      + + + +
        +
      • +

        queryKeyStatus

        +
        java.util.Map<java.lang.String,java.lang.String> queryKeyStatus(byte[] sessionId)
        +
        +
        See Also:
        +
        MediaDrm.queryKeyStatus(byte[])
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        void release()
        +
        +
        See Also:
        +
        MediaDrm.release()
        +
        +
      • +
      + + + +
        +
      • +

        restoreKeys

        +
        void restoreKeys(byte[] sessionId,
        +                 byte[] keySetId)
        +
        +
        See Also:
        +
        MediaDrm.restoreKeys(byte[], byte[])
        +
        +
      • +
      + + + +
        +
      • +

        getPropertyString

        +
        java.lang.String getPropertyString(java.lang.String propertyName)
        +
        +
        See Also:
        +
        MediaDrm.getPropertyString(String)
        +
        +
      • +
      + + + +
        +
      • +

        getPropertyByteArray

        +
        byte[] getPropertyByteArray(java.lang.String propertyName)
        +
        +
        See Also:
        +
        MediaDrm.getPropertyByteArray(String)
        +
        +
      • +
      + + + +
        +
      • +

        setPropertyString

        +
        void setPropertyString(java.lang.String propertyName,
        +                       java.lang.String value)
        +
        +
        See Also:
        +
        MediaDrm.setPropertyString(String, String)
        +
        +
      • +
      + + + +
        +
      • +

        setPropertyByteArray

        +
        void setPropertyByteArray(java.lang.String propertyName,
        +                          byte[] value)
        +
        +
        See Also:
        +
        MediaDrm.setPropertyByteArray(String, byte[])
        +
        +
      • +
      + + + +
        +
      • +

        createMediaCrypto

        +
        T createMediaCrypto(java.util.UUID uuid,
        +                    byte[] initData)
        +             throws android.media.MediaCryptoException
        +
        +
        Parameters:
        +
        uuid - The UUID of the crypto scheme.
        +
        initData - Opaque initialization data specific to the crypto scheme.
        +
        Returns:
        +
        An object extends ExoMediaCrypto, using opaque crypto scheme specific data.
        +
        Throws:
        +
        android.media.MediaCryptoException
        +
        See Also:
        +
        MediaCrypto.MediaCrypto(UUID, byte[])
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/FrameworkMediaCrypto.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/FrameworkMediaCrypto.html new file mode 100644 index 00000000..50eda4e8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/FrameworkMediaCrypto.html @@ -0,0 +1,260 @@ + + + + + +FrameworkMediaCrypto (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Class FrameworkMediaCrypto

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.drm.FrameworkMediaCrypto
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    ExoMediaCrypto
    +
    +
    +
    +
    public final class FrameworkMediaCrypto
    +extends java.lang.Object
    +implements ExoMediaCrypto
    +
    An ExoMediaCrypto implementation that wraps the framework MediaCrypto.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getWrappedMediaCrypto

        +
        public android.media.MediaCrypto getWrappedMediaCrypto()
        +
      • +
      + + + +
        +
      • +

        requiresSecureDecoderComponent

        +
        public boolean requiresSecureDecoderComponent(java.lang.String mimeType)
        +
        +
        Specified by:
        +
        requiresSecureDecoderComponent in interface ExoMediaCrypto
        +
        See Also:
        +
        MediaCrypto.requiresSecureDecoderComponent(String)
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/FrameworkMediaDrm.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/FrameworkMediaDrm.html new file mode 100644 index 00000000..718c074c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/FrameworkMediaDrm.html @@ -0,0 +1,595 @@ + + + + + +FrameworkMediaDrm (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Class FrameworkMediaDrm

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.drm.FrameworkMediaDrm
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newInstance

        +
        public static FrameworkMediaDrm newInstance(java.util.UUID uuid)
        +                                     throws UnsupportedDrmException
        +
        Creates an instance for the specified scheme UUID.
        +
        +
        Parameters:
        +
        uuid - The scheme uuid.
        +
        Returns:
        +
        The created instance.
        +
        Throws:
        +
        UnsupportedDrmException - If the DRM scheme is unsupported or cannot be instantiated.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        openSession

        +
        public byte[] openSession()
        +                   throws android.media.NotProvisionedException,
        +                          android.media.ResourceBusyException
        +
        +
        Specified by:
        +
        openSession in interface ExoMediaDrm<FrameworkMediaCrypto>
        +
        Throws:
        +
        android.media.NotProvisionedException
        +
        android.media.ResourceBusyException
        +
        See Also:
        +
        MediaDrm.openSession()
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getKeyRequest

        +
        public ExoMediaDrm.KeyRequest getKeyRequest(byte[] scope,
        +                                            byte[] init,
        +                                            java.lang.String mimeType,
        +                                            int keyType,
        +                                            java.util.HashMap<java.lang.String,java.lang.String> optionalParameters)
        +                                     throws android.media.NotProvisionedException
        +
        +
        Specified by:
        +
        getKeyRequest in interface ExoMediaDrm<FrameworkMediaCrypto>
        +
        Throws:
        +
        android.media.NotProvisionedException
        +
        See Also:
        +
        MediaDrm.getKeyRequest(byte[], byte[], String, int, HashMap)
        +
        +
      • +
      + + + +
        +
      • +

        provideKeyResponse

        +
        public byte[] provideKeyResponse(byte[] scope,
        +                                 byte[] response)
        +                          throws android.media.NotProvisionedException,
        +                                 android.media.DeniedByServerException
        +
        +
        Specified by:
        +
        provideKeyResponse in interface ExoMediaDrm<FrameworkMediaCrypto>
        +
        Throws:
        +
        android.media.NotProvisionedException
        +
        android.media.DeniedByServerException
        +
        See Also:
        +
        MediaDrm.provideKeyResponse(byte[], byte[])
        +
        +
      • +
      + + + + + + + +
        +
      • +

        provideProvisionResponse

        +
        public void provideProvisionResponse(byte[] response)
        +                              throws android.media.DeniedByServerException
        +
        +
        Specified by:
        +
        provideProvisionResponse in interface ExoMediaDrm<FrameworkMediaCrypto>
        +
        Throws:
        +
        android.media.DeniedByServerException
        +
        See Also:
        +
        MediaDrm.provideProvisionResponse(byte[])
        +
        +
      • +
      + + + +
        +
      • +

        queryKeyStatus

        +
        public java.util.Map<java.lang.String,java.lang.String> queryKeyStatus(byte[] sessionId)
        +
        +
        Specified by:
        +
        queryKeyStatus in interface ExoMediaDrm<FrameworkMediaCrypto>
        +
        See Also:
        +
        MediaDrm.queryKeyStatus(byte[])
        +
        +
      • +
      + + + + + + + +
        +
      • +

        restoreKeys

        +
        public void restoreKeys(byte[] sessionId,
        +                        byte[] keySetId)
        +
        +
        Specified by:
        +
        restoreKeys in interface ExoMediaDrm<FrameworkMediaCrypto>
        +
        See Also:
        +
        MediaDrm.restoreKeys(byte[], byte[])
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        setPropertyString

        +
        public void setPropertyString(java.lang.String propertyName,
        +                              java.lang.String value)
        +
        +
        Specified by:
        +
        setPropertyString in interface ExoMediaDrm<FrameworkMediaCrypto>
        +
        See Also:
        +
        MediaDrm.setPropertyString(String, String)
        +
        +
      • +
      + + + +
        +
      • +

        setPropertyByteArray

        +
        public void setPropertyByteArray(java.lang.String propertyName,
        +                                 byte[] value)
        +
        +
        Specified by:
        +
        setPropertyByteArray in interface ExoMediaDrm<FrameworkMediaCrypto>
        +
        See Also:
        +
        MediaDrm.setPropertyByteArray(String, byte[])
        +
        +
      • +
      + + + +
        +
      • +

        createMediaCrypto

        +
        public FrameworkMediaCrypto createMediaCrypto(java.util.UUID uuid,
        +                                              byte[] initData)
        +                                       throws android.media.MediaCryptoException
        +
        +
        Specified by:
        +
        createMediaCrypto in interface ExoMediaDrm<FrameworkMediaCrypto>
        +
        Parameters:
        +
        uuid - The UUID of the crypto scheme.
        +
        initData - Opaque initialization data specific to the crypto scheme.
        +
        Returns:
        +
        An object extends ExoMediaCrypto, using opaque crypto scheme specific data.
        +
        Throws:
        +
        android.media.MediaCryptoException
        +
        See Also:
        +
        MediaCrypto.MediaCrypto(UUID, byte[])
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/HttpMediaDrmCallback.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/HttpMediaDrmCallback.html new file mode 100644 index 00000000..7a1d4880 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/HttpMediaDrmCallback.html @@ -0,0 +1,353 @@ + + + + + +HttpMediaDrmCallback (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Class HttpMediaDrmCallback

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.drm.HttpMediaDrmCallback
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HttpMediaDrmCallback

        +
        public HttpMediaDrmCallback(java.lang.String defaultUrl,
        +                            HttpDataSource.Factory dataSourceFactory)
        +
        +
        Parameters:
        +
        defaultUrl - The default license URL.
        +
        dataSourceFactory - A factory from which to obtain HttpDataSource instances.
        +
        +
      • +
      + + + +
        +
      • +

        HttpMediaDrmCallback

        +
        public HttpMediaDrmCallback(java.lang.String defaultUrl,
        +                            HttpDataSource.Factory dataSourceFactory,
        +                            java.util.Map<java.lang.String,java.lang.String> keyRequestProperties)
        +
        +
        Parameters:
        +
        defaultUrl - The default license URL.
        +
        dataSourceFactory - A factory from which to obtain HttpDataSource instances.
        +
        keyRequestProperties - Request properties to set when making key requests, or null.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        executeProvisionRequest

        +
        public byte[] executeProvisionRequest(java.util.UUID uuid,
        +                                      ExoMediaDrm.ProvisionRequest request)
        +                               throws java.io.IOException
        +
        Description copied from interface: MediaDrmCallback
        +
        Executes a provisioning request.
        +
        +
        Specified by:
        +
        executeProvisionRequest in interface MediaDrmCallback
        +
        Parameters:
        +
        uuid - The UUID of the content protection scheme.
        +
        request - The request.
        +
        Returns:
        +
        The response data.
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        executeKeyRequest

        +
        public byte[] executeKeyRequest(java.util.UUID uuid,
        +                                ExoMediaDrm.KeyRequest request)
        +                         throws java.lang.Exception
        +
        Description copied from interface: MediaDrmCallback
        +
        Executes a key request.
        +
        +
        Specified by:
        +
        executeKeyRequest in interface MediaDrmCallback
        +
        Parameters:
        +
        uuid - The UUID of the content protection scheme.
        +
        request - The request.
        +
        Returns:
        +
        The response data.
        +
        Throws:
        +
        java.lang.Exception - If an error occurred executing the request.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/KeysExpiredException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/KeysExpiredException.html new file mode 100644 index 00000000..0e31f64c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/KeysExpiredException.html @@ -0,0 +1,261 @@ + + + + + +KeysExpiredException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Class KeysExpiredException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.drm.KeysExpiredException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public final class KeysExpiredException
    +extends java.lang.Exception
    +
    Thrown when the drm keys loaded into an open session expire.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        KeysExpiredException

        +
        public KeysExpiredException()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/MediaDrmCallback.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/MediaDrmCallback.html new file mode 100644 index 00000000..8267253d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/MediaDrmCallback.html @@ -0,0 +1,267 @@ + + + + + +MediaDrmCallback (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Interface MediaDrmCallback

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    HttpMediaDrmCallback
    +
    +
    +
    +
    public interface MediaDrmCallback
    +
    Performs ExoMediaDrm key and provisioning requests.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        executeProvisionRequest

        +
        byte[] executeProvisionRequest(java.util.UUID uuid,
        +                               ExoMediaDrm.ProvisionRequest request)
        +                        throws java.lang.Exception
        +
        Executes a provisioning request.
        +
        +
        Parameters:
        +
        uuid - The UUID of the content protection scheme.
        +
        request - The request.
        +
        Returns:
        +
        The response data.
        +
        Throws:
        +
        java.lang.Exception - If an error occurred executing the request.
        +
        +
      • +
      + + + +
        +
      • +

        executeKeyRequest

        +
        byte[] executeKeyRequest(java.util.UUID uuid,
        +                         ExoMediaDrm.KeyRequest request)
        +                  throws java.lang.Exception
        +
        Executes a key request.
        +
        +
        Parameters:
        +
        uuid - The UUID of the content protection scheme.
        +
        request - The request.
        +
        Returns:
        +
        The response data.
        +
        Throws:
        +
        java.lang.Exception - If an error occurred executing the request.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/StreamingDrmSessionManager.EventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/StreamingDrmSessionManager.EventListener.html new file mode 100644 index 00000000..73d6e54c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/StreamingDrmSessionManager.EventListener.html @@ -0,0 +1,247 @@ + + + + + +StreamingDrmSessionManager.EventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Interface StreamingDrmSessionManager.EventListener

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onDrmKeysLoaded

        +
        void onDrmKeysLoaded()
        +
        Called each time keys are loaded.
        +
      • +
      + + + +
        +
      • +

        onDrmSessionManagerError

        +
        void onDrmSessionManagerError(java.lang.Exception e)
        +
        Called when a drm error occurs.
        +
        +
        Parameters:
        +
        e - The corresponding exception.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/StreamingDrmSessionManager.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/StreamingDrmSessionManager.html new file mode 100644 index 00000000..a6a256cf --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/StreamingDrmSessionManager.html @@ -0,0 +1,722 @@ + + + + + +StreamingDrmSessionManager (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Class StreamingDrmSessionManager<T extends ExoMediaCrypto>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.drm.StreamingDrmSessionManager<T>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        PLAYREADY_CUSTOM_DATA_KEY

        +
        public static final java.lang.String PLAYREADY_CUSTOM_DATA_KEY
        +
        The key to use when passing CustomData to a PlayReady instance in an optional parameter map.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StreamingDrmSessionManager

        +
        public StreamingDrmSessionManager(java.util.UUID uuid,
        +                                  ExoMediaDrm<T> mediaDrm,
        +                                  MediaDrmCallback callback,
        +                                  java.util.HashMap<java.lang.String,java.lang.String> optionalKeyRequestParameters,
        +                                  android.os.Handler eventHandler,
        +                                  StreamingDrmSessionManager.EventListener eventListener)
        +
        +
        Parameters:
        +
        uuid - The UUID of the drm scheme.
        +
        mediaDrm - An underlying ExoMediaDrm for use by the manager.
        +
        callback - Performs key and provisioning requests.
        +
        optionalKeyRequestParameters - An optional map of parameters to pass as the last argument + to MediaDrm.getKeyRequest(byte[], byte[], String, int, HashMap). May be null.
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newWidevineInstance

        +
        public static StreamingDrmSessionManager<FrameworkMediaCrypto> newWidevineInstance(MediaDrmCallback callback,
        +                                                                                   java.util.HashMap<java.lang.String,java.lang.String> optionalKeyRequestParameters,
        +                                                                                   android.os.Handler eventHandler,
        +                                                                                   StreamingDrmSessionManager.EventListener eventListener)
        +                                                                            throws UnsupportedDrmException
        +
        Instantiates a new instance using the Widevine scheme.
        +
        +
        Parameters:
        +
        callback - Performs key and provisioning requests.
        +
        optionalKeyRequestParameters - An optional map of parameters to pass as the last argument + to MediaDrm.getKeyRequest(byte[], byte[], String, int, HashMap). May be null.
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        Throws:
        +
        UnsupportedDrmException - If the specified DRM scheme is not supported.
        +
        +
      • +
      + + + +
        +
      • +

        newPlayReadyInstance

        +
        public static StreamingDrmSessionManager<FrameworkMediaCrypto> newPlayReadyInstance(MediaDrmCallback callback,
        +                                                                                    java.lang.String customData,
        +                                                                                    android.os.Handler eventHandler,
        +                                                                                    StreamingDrmSessionManager.EventListener eventListener)
        +                                                                             throws UnsupportedDrmException
        +
        Instantiates a new instance using the PlayReady scheme. +

        + Note that PlayReady is unsupported by most Android devices, with the exception of Android TV + devices, which do provide support.

        +
        +
        Parameters:
        +
        callback - Performs key and provisioning requests.
        +
        customData - Optional custom data to include in requests generated by the instance.
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        Throws:
        +
        UnsupportedDrmException - If the specified DRM scheme is not supported.
        +
        +
      • +
      + + + +
        +
      • +

        newFrameworkInstance

        +
        public static StreamingDrmSessionManager<FrameworkMediaCrypto> newFrameworkInstance(java.util.UUID uuid,
        +                                                                                    MediaDrmCallback callback,
        +                                                                                    java.util.HashMap<java.lang.String,java.lang.String> optionalKeyRequestParameters,
        +                                                                                    android.os.Handler eventHandler,
        +                                                                                    StreamingDrmSessionManager.EventListener eventListener)
        +                                                                             throws UnsupportedDrmException
        +
        Instantiates a new instance.
        +
        +
        Parameters:
        +
        uuid - The UUID of the drm scheme.
        +
        callback - Performs key and provisioning requests.
        +
        optionalKeyRequestParameters - An optional map of parameters to pass as the last argument + to MediaDrm.getKeyRequest(byte[], byte[], String, int, HashMap). May be null.
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        Throws:
        +
        UnsupportedDrmException - If the specified DRM scheme is not supported.
        +
        +
      • +
      + + + +
        +
      • +

        getPropertyString

        +
        public final java.lang.String getPropertyString(java.lang.String key)
        +
        Provides access to MediaDrm.getPropertyString(String). +

        + This method may be called when the manager is in any state.

        +
        +
        Parameters:
        +
        key - The key to request.
        +
        Returns:
        +
        The retrieved property.
        +
        +
      • +
      + + + +
        +
      • +

        setPropertyString

        +
        public final void setPropertyString(java.lang.String key,
        +                                    java.lang.String value)
        +
        Provides access to MediaDrm.setPropertyString(String, String). +

        + This method may be called when the manager is in any state.

        +
        +
        Parameters:
        +
        key - The property to write.
        +
        value - The value to write.
        +
        +
      • +
      + + + +
        +
      • +

        getPropertyByteArray

        +
        public final byte[] getPropertyByteArray(java.lang.String key)
        +
        Provides access to MediaDrm.getPropertyByteArray(String). +

        + This method may be called when the manager is in any state.

        +
        +
        Parameters:
        +
        key - The key to request.
        +
        Returns:
        +
        The retrieved property.
        +
        +
      • +
      + + + +
        +
      • +

        setPropertyByteArray

        +
        public final void setPropertyByteArray(java.lang.String key,
        +                                       byte[] value)
        +
        Provides access to MediaDrm.setPropertyByteArray(String, byte[]). +

        + This method may be called when the manager is in any state.

        +
        +
        Parameters:
        +
        key - The property to write.
        +
        value - The value to write.
        +
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getError

        +
        public final java.lang.Exception getError()
        +
        Description copied from interface: DrmSession
        +
        Returns the cause of the error state. +

        + This method may be called when the session is in any state.

        +
        +
        Specified by:
        +
        getError in interface DrmSession<T extends ExoMediaCrypto>
        +
        Returns:
        +
        An exception if the state is DrmSession.STATE_ERROR. Null otherwise.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/UnsupportedDrmException.Reason.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/UnsupportedDrmException.Reason.html new file mode 100644 index 00000000..2d3af6eb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/UnsupportedDrmException.Reason.html @@ -0,0 +1,163 @@ + + + + + +UnsupportedDrmException.Reason (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Annotation Type UnsupportedDrmException.Reason

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface UnsupportedDrmException.Reason
    +
    The reason for the exception.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/UnsupportedDrmException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/UnsupportedDrmException.html new file mode 100644 index 00000000..f1b46193 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/UnsupportedDrmException.html @@ -0,0 +1,386 @@ + + + + + +UnsupportedDrmException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.drm
+

Class UnsupportedDrmException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.drm.UnsupportedDrmException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public final class UnsupportedDrmException
    +extends java.lang.Exception
    +
    Thrown when the requested DRM scheme is not supported.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface UnsupportedDrmException.Reason +
      The reason for the exception.
      +
      +
    • +
    + + + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/package-frame.html new file mode 100644 index 00000000..c4877444 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/package-frame.html @@ -0,0 +1,47 @@ + + + + + +com.google.android.exoplayer2.drm (library API) + + + + + +

com.google.android.exoplayer2.drm

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/package-summary.html new file mode 100644 index 00000000..576e3452 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/package-summary.html @@ -0,0 +1,277 @@ + + + + + +com.google.android.exoplayer2.drm (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.drm

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/package-tree.html new file mode 100644 index 00000000..cf9ae154 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/drm/package-tree.html @@ -0,0 +1,167 @@ + + + + + +com.google.android.exoplayer2.drm Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.drm

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ChunkIndex.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ChunkIndex.html new file mode 100644 index 00000000..17743721 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ChunkIndex.html @@ -0,0 +1,493 @@ + + + + + +ChunkIndex (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class ChunkIndex

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ChunkIndex
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    SeekMap
    +
    +
    +
    +
    public final class ChunkIndex
    +extends java.lang.Object
    +implements SeekMap
    +
    Defines chunks of samples within a media stream.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      long[]durationsUs +
      The chunk durations, in microseconds.
      +
      intlength +
      The number of chunks.
      +
      long[]offsets +
      The chunk byte offsets.
      +
      int[]sizes +
      The chunk sizes, in bytes.
      +
      long[]timesUs +
      The start time of each chunk, in microseconds.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ChunkIndex(int[] sizes, + long[] offsets, + long[] durationsUs, + long[] timesUs) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetChunkIndex(long timeUs) +
      Obtains the index of the chunk corresponding to a given time.
      +
      longgetDurationUs() +
      Returns the duration of the stream in microseconds.
      +
      longgetPosition(long timeUs) +
      Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
      +
      booleanisSeekable() +
      Returns whether seeking is supported.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        length

        +
        public final int length
        +
        The number of chunks.
        +
      • +
      + + + +
        +
      • +

        sizes

        +
        public final int[] sizes
        +
        The chunk sizes, in bytes.
        +
      • +
      + + + +
        +
      • +

        offsets

        +
        public final long[] offsets
        +
        The chunk byte offsets.
        +
      • +
      + + + +
        +
      • +

        durationsUs

        +
        public final long[] durationsUs
        +
        The chunk durations, in microseconds.
        +
      • +
      + + + +
        +
      • +

        timesUs

        +
        public final long[] timesUs
        +
        The start time of each chunk, in microseconds.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChunkIndex

        +
        public ChunkIndex(int[] sizes,
        +                  long[] offsets,
        +                  long[] durationsUs,
        +                  long[] timesUs)
        +
        +
        Parameters:
        +
        sizes - The chunk sizes, in bytes.
        +
        offsets - The chunk byte offsets.
        +
        durationsUs - The chunk durations, in microseconds.
        +
        timesUs - The start time of each chunk, in microseconds.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getChunkIndex

        +
        public int getChunkIndex(long timeUs)
        +
        Obtains the index of the chunk corresponding to a given time.
        +
        +
        Parameters:
        +
        timeUs - The time, in microseconds.
        +
        Returns:
        +
        The index of the corresponding chunk.
        +
        +
      • +
      + + + +
        +
      • +

        isSeekable

        +
        public boolean isSeekable()
        +
        Description copied from interface: SeekMap
        +
        Returns whether seeking is supported. +

        + If seeking is not supported then the only valid seek position is the start of the file, and so + SeekMap.getPosition(long) will return 0 for all input values.

        +
        +
        Specified by:
        +
        isSeekable in interface SeekMap
        +
        Returns:
        +
        Whether seeking is supported.
        +
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        public long getDurationUs()
        +
        Description copied from interface: SeekMap
        +
        Returns the duration of the stream in microseconds.
        +
        +
        Specified by:
        +
        getDurationUs in interface SeekMap
        +
        Returns:
        +
        The duration of the stream in microseconds, or C.TIME_UNSET if the + duration is unknown.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public long getPosition(long timeUs)
        +
        Description copied from interface: SeekMap
        +
        Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
        +
        +
        Specified by:
        +
        getPosition in interface SeekMap
        +
        Parameters:
        +
        timeUs - A seek position in microseconds.
        +
        Returns:
        +
        The corresponding position (byte offset) in the stream from which data can be provided + to the extractor, or 0 if #isSeekable() returns false.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultExtractorInput.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultExtractorInput.html new file mode 100644 index 00000000..914732ee --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultExtractorInput.html @@ -0,0 +1,792 @@ + + + + + +DefaultExtractorInput (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class DefaultExtractorInput

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.DefaultExtractorInput
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidadvancePeekPosition(int length) +
      Advances the peek position by length bytes.
      +
      booleanadvancePeekPosition(int length, + boolean allowEndOfInput) +
      Advances the peek position by length bytes.
      +
      longgetLength() +
      Returns the length of the source stream, or C.LENGTH_UNSET if it is unknown.
      +
      longgetPeekPosition() +
      Returns the current peek position (byte offset) in the stream.
      +
      longgetPosition() +
      Returns the current read position (byte offset) in the stream.
      +
      voidpeekFully(byte[] target, + int offset, + int length) +
      Peeks length bytes from the peek position, writing them into target at index + offset.
      +
      booleanpeekFully(byte[] target, + int offset, + int length, + boolean allowEndOfInput) +
      Peeks length bytes from the peek position, writing them into target at index + offset.
      +
      intread(byte[] target, + int offset, + int length) +
      Reads up to length bytes from the input and resets the peek position.
      +
      voidreadFully(byte[] target, + int offset, + int length) +
      Equivalent to readFully(target, offset, length, false).
      +
      booleanreadFully(byte[] target, + int offset, + int length, + boolean allowEndOfInput) +
      Like ExtractorInput.read(byte[], int, int), but reads the requested length in full.
      +
      voidresetPeekPosition() +
      Resets the peek position to equal the current read position.
      +
      <E extends java.lang.Throwable>
      void
      setRetryPosition(long position, + E e) +
      Called when reading fails and the required retry position is different from the last position.
      +
      intskip(int length) +
      Like ExtractorInput.read(byte[], int, int), except the data is skipped instead of read.
      +
      voidskipFully(int length) +
      Like ExtractorInput.readFully(byte[], int, int), except the data is skipped instead of read.
      +
      booleanskipFully(int length, + boolean allowEndOfInput) +
      Like ExtractorInput.readFully(byte[], int, int, boolean), except the data is skipped instead of read.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultExtractorInput

        +
        public DefaultExtractorInput(DataSource dataSource,
        +                             long position,
        +                             long length)
        +
        +
        Parameters:
        +
        dataSource - The wrapped DataSource.
        +
        position - The initial position in the stream.
        +
        length - The length of the stream, or C.LENGTH_UNSET if it is unknown.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        read

        +
        public int read(byte[] target,
        +                int offset,
        +                int length)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Reads up to length bytes from the input and resets the peek position. +

        + This method blocks until at least one byte of data can be read, the end of the input is + detected, or an exception is thrown.

        +
        +
        Specified by:
        +
        read in interface ExtractorInput
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The maximum number of bytes to read from the input.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if the input has ended.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread has been interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        readFully

        +
        public boolean readFully(byte[] target,
        +                         int offset,
        +                         int length,
        +                         boolean allowEndOfInput)
        +                  throws java.io.IOException,
        +                         java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Like ExtractorInput.read(byte[], int, int), but reads the requested length in full. +

        + If the end of the input is found having read no data, then behavior is dependent on + allowEndOfInput. If allowEndOfInput == true then false is returned. + Otherwise an EOFException is thrown. +

        + Encountering the end of input having partially satisfied the read is always considered an + error, and will result in an EOFException being thrown.

        +
        +
        Specified by:
        +
        readFully in interface ExtractorInput
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The number of bytes to read from the input.
        +
        allowEndOfInput - True if encountering the end of the input having read no data is + allowed, and should result in false being returned. False if it should be + considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        True if the read was successful. False if the end of the input was encountered having + read no data.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered having partially satisfied the read + (i.e. having read at least one byte, but fewer than length), or if no bytes were + read and allowEndOfInput is false.
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread has been interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        readFully

        +
        public void readFully(byte[] target,
        +                      int offset,
        +                      int length)
        +               throws java.io.IOException,
        +                      java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Equivalent to readFully(target, offset, length, false).
        +
        +
        Specified by:
        +
        readFully in interface ExtractorInput
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The number of bytes to read from the input.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered.
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        skip

        +
        public int skip(int length)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Like ExtractorInput.read(byte[], int, int), except the data is skipped instead of read.
        +
        +
        Specified by:
        +
        skip in interface ExtractorInput
        +
        Parameters:
        +
        length - The maximum number of bytes to skip from the input.
        +
        Returns:
        +
        The number of bytes skipped, or C.RESULT_END_OF_INPUT if the input has ended.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread has been interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        skipFully

        +
        public boolean skipFully(int length,
        +                         boolean allowEndOfInput)
        +                  throws java.io.IOException,
        +                         java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Like ExtractorInput.readFully(byte[], int, int, boolean), except the data is skipped instead of read.
        +
        +
        Specified by:
        +
        skipFully in interface ExtractorInput
        +
        Parameters:
        +
        length - The number of bytes to skip from the input.
        +
        allowEndOfInput - True if encountering the end of the input having skipped no data is + allowed, and should result in false being returned. False if it should be + considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        True if the skip was successful. False if the end of the input was encountered having + skipped no data.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered having partially satisfied the skip + (i.e. having skipped at least one byte, but fewer than length), or if no bytes were + skipped and allowEndOfInput is false.
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread has been interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        skipFully

        +
        public void skipFully(int length)
        +               throws java.io.IOException,
        +                      java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Like ExtractorInput.readFully(byte[], int, int), except the data is skipped instead of read. +

        + Encountering the end of input is always considered an error, and will result in an + EOFException being thrown.

        +
        +
        Specified by:
        +
        skipFully in interface ExtractorInput
        +
        Parameters:
        +
        length - The number of bytes to skip from the input.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered.
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        peekFully

        +
        public boolean peekFully(byte[] target,
        +                         int offset,
        +                         int length,
        +                         boolean allowEndOfInput)
        +                  throws java.io.IOException,
        +                         java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Peeks length bytes from the peek position, writing them into target at index + offset. The current read position is left unchanged. +

        + If the end of the input is found having peeked no data, then behavior is dependent on + allowEndOfInput. If allowEndOfInput == true then false is returned. + Otherwise an EOFException is thrown. +

        + Calling ExtractorInput.resetPeekPosition() resets the peek position to equal the current read + position, so the caller can peek the same data again. Reading or skipping also resets the peek + position.

        +
        +
        Specified by:
        +
        peekFully in interface ExtractorInput
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The number of bytes to peek from the input.
        +
        allowEndOfInput - True if encountering the end of the input having peeked no data is + allowed, and should result in false being returned. False if it should be + considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        True if the peek was successful. False if the end of the input was encountered having + peeked no data.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered having partially satisfied the peek + (i.e. having peeked at least one byte, but fewer than length), or if no bytes were + peeked and allowEndOfInput is false.
        +
        java.io.IOException - If an error occurs peeking from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        peekFully

        +
        public void peekFully(byte[] target,
        +                      int offset,
        +                      int length)
        +               throws java.io.IOException,
        +                      java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Peeks length bytes from the peek position, writing them into target at index + offset. The current read position is left unchanged. +

        + Calling ExtractorInput.resetPeekPosition() resets the peek position to equal the current read + position, so the caller can peek the same data again. Reading and skipping also reset the peek + position.

        +
        +
        Specified by:
        +
        peekFully in interface ExtractorInput
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The number of bytes to peek from the input.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered.
        +
        java.io.IOException - If an error occurs peeking from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        advancePeekPosition

        +
        public boolean advancePeekPosition(int length,
        +                                   boolean allowEndOfInput)
        +                            throws java.io.IOException,
        +                                   java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Advances the peek position by length bytes. +

        + If the end of the input is encountered before advancing the peek position, then behavior is + dependent on allowEndOfInput. If allowEndOfInput == true then false is + returned. Otherwise an EOFException is thrown.

        +
        +
        Specified by:
        +
        advancePeekPosition in interface ExtractorInput
        +
        Parameters:
        +
        length - The number of bytes by which to advance the peek position.
        +
        allowEndOfInput - True if encountering the end of the input before advancing is allowed, + and should result in false being returned. False if it should be considered an + error, causing an EOFException to be thrown.
        +
        Returns:
        +
        True if advancing the peek position was successful. False if the end of the input was + encountered before the peek position could be advanced.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered having partially advanced (i.e. having + advanced by at least one byte, but fewer than length), or if the end of input was + encountered before advancing and allowEndOfInput is false.
        +
        java.io.IOException - If an error occurs advancing the peek position.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        advancePeekPosition

        +
        public void advancePeekPosition(int length)
        +                         throws java.io.IOException,
        +                                java.lang.InterruptedException
        +
        Description copied from interface: ExtractorInput
        +
        Advances the peek position by length bytes.
        +
        +
        Specified by:
        +
        advancePeekPosition in interface ExtractorInput
        +
        Parameters:
        +
        length - The number of bytes to peek from the input.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered.
        +
        java.io.IOException - If an error occurs peeking from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        resetPeekPosition

        +
        public void resetPeekPosition()
        +
        Description copied from interface: ExtractorInput
        +
        Resets the peek position to equal the current read position.
        +
        +
        Specified by:
        +
        resetPeekPosition in interface ExtractorInput
        +
        +
      • +
      + + + +
        +
      • +

        getPeekPosition

        +
        public long getPeekPosition()
        +
        Description copied from interface: ExtractorInput
        +
        Returns the current peek position (byte offset) in the stream.
        +
        +
        Specified by:
        +
        getPeekPosition in interface ExtractorInput
        +
        Returns:
        +
        The peek position (byte offset) in the stream.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public long getPosition()
        +
        Description copied from interface: ExtractorInput
        +
        Returns the current read position (byte offset) in the stream.
        +
        +
        Specified by:
        +
        getPosition in interface ExtractorInput
        +
        Returns:
        +
        The read position (byte offset) in the stream.
        +
        +
      • +
      + + + + + + + + + +
        +
      • +

        setRetryPosition

        +
        public <E extends java.lang.Throwable> void setRetryPosition(long position,
        +                                                             E e)
        +                                                      throws E extends java.lang.Throwable
        +
        Description copied from interface: ExtractorInput
        +
        Called when reading fails and the required retry position is different from the last position. + After setting the retry position it throws the given Throwable.
        +
        +
        Specified by:
        +
        setRetryPosition in interface ExtractorInput
        +
        Type Parameters:
        +
        E - Type of Throwable to be thrown.
        +
        Parameters:
        +
        position - The required retry position.
        +
        e - Throwable to be thrown.
        +
        Throws:
        +
        E - The given Throwable object.
        +
        E extends java.lang.Throwable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.html new file mode 100644 index 00000000..0fe5a047 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.html @@ -0,0 +1,301 @@ + + + + + +DefaultExtractorsFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class DefaultExtractorsFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.DefaultExtractorsFactory
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DefaultExtractorsFactory() +
      Creates a new factory for the default extractors.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultExtractorsFactory

        +
        public DefaultExtractorsFactory()
        +
        Creates a new factory for the default extractors.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultTrackOutput.UpstreamFormatChangedListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultTrackOutput.UpstreamFormatChangedListener.html new file mode 100644 index 00000000..924072a6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultTrackOutput.UpstreamFormatChangedListener.html @@ -0,0 +1,231 @@ + + + + + +DefaultTrackOutput.UpstreamFormatChangedListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Interface DefaultTrackOutput.UpstreamFormatChangedListener

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    DefaultTrackOutput
    +
    +
    +
    +
    public static interface DefaultTrackOutput.UpstreamFormatChangedListener
    +
    A listener for changes to the upstream format.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onUpstreamFormatChanged

        +
        void onUpstreamFormatChanged(Format format)
        +
        Called on the loading thread when an upstream format change occurs.
        +
        +
        Parameters:
        +
        format - The new upstream format.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultTrackOutput.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultTrackOutput.html new file mode 100644 index 00000000..03e2885e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DefaultTrackOutput.html @@ -0,0 +1,726 @@ + + + + + +DefaultTrackOutput (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class DefaultTrackOutput

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.DefaultTrackOutput
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    TrackOutput
    +
    +
    +
    +
    public final class DefaultTrackOutput
    +extends java.lang.Object
    +implements TrackOutput
    +
    A TrackOutput that buffers extracted samples in a queue and allows for consumption from + that queue.
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voiddisable() +
      Disables buffering of sample data and metadata.
      +
      voiddiscardUpstreamSamples(int discardFromIndex) +
      Discards samples from the write side of the buffer.
      +
      voidformat(Format format) +
      Called when the Format of the track has been extracted from the stream.
      +
      voidformatWithOffset(Format format, + long sampleOffsetUs) +
      Like format(Format), but with an offset that will be added to the timestamps of + samples subsequently queued to the buffer.
      +
      longgetLargestQueuedTimestampUs() +
      Returns the largest sample timestamp that has been queued since the last reset(boolean).
      +
      intgetReadIndex() +
      Returns the current absolute read index.
      +
      FormatgetUpstreamFormat() +
      Returns the upstream Format in which samples are being queued.
      +
      intgetWriteIndex() +
      Returns the current absolute write index.
      +
      booleanisEmpty() +
      Returns whether the buffer is empty.
      +
      intpeekSourceId() +
      Peeks the source id of the next sample, or the current upstream source id if the buffer is + empty.
      +
      intreadData(FormatHolder formatHolder, + DecoderInputBuffer buffer, + boolean loadingFinished, + long decodeOnlyUntilUs) +
      Attempts to read from the queue.
      +
      voidreset(boolean enable) +
      Resets the output.
      +
      intsampleData(ExtractorInput input, + int length, + boolean allowEndOfInput) +
      Called to write sample data to the output.
      +
      voidsampleData(ParsableByteArray buffer, + int length) +
      Called to write sample data to the output.
      +
      voidsampleMetadata(long timeUs, + int flags, + int size, + int offset, + byte[] encryptionKey) +
      Called when metadata associated with a sample has been extracted from the stream.
      +
      voidsetUpstreamFormatChangeListener(DefaultTrackOutput.UpstreamFormatChangedListener listener) +
      Sets a listener to be notified of changes to the upstream format.
      +
      booleanskipToKeyframeBefore(long timeUs) +
      Attempts to skip to the keyframe before the specified time, if it's present in the buffer.
      +
      voidsourceId(int sourceId) +
      Sets a source identifier for subsequent samples.
      +
      voidsplice() +
      Indicates that samples subsequently queued to the buffer should be spliced into those already + queued.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultTrackOutput

        +
        public DefaultTrackOutput(Allocator allocator)
        +
        +
        Parameters:
        +
        allocator - An Allocator from which allocations for sample data can be obtained.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        reset

        +
        public void reset(boolean enable)
        +
        Resets the output.
        +
        +
        Parameters:
        +
        enable - Whether the output should be enabled. False if it should be disabled.
        +
        +
      • +
      + + + +
        +
      • +

        sourceId

        +
        public void sourceId(int sourceId)
        +
        Sets a source identifier for subsequent samples.
        +
        +
        Parameters:
        +
        sourceId - The source identifier.
        +
        +
      • +
      + + + +
        +
      • +

        splice

        +
        public void splice()
        +
        Indicates that samples subsequently queued to the buffer should be spliced into those already + queued.
        +
      • +
      + + + +
        +
      • +

        getWriteIndex

        +
        public int getWriteIndex()
        +
        Returns the current absolute write index.
        +
      • +
      + + + +
        +
      • +

        discardUpstreamSamples

        +
        public void discardUpstreamSamples(int discardFromIndex)
        +
        Discards samples from the write side of the buffer.
        +
        +
        Parameters:
        +
        discardFromIndex - The absolute index of the first sample to be discarded.
        +
        +
      • +
      + + + +
        +
      • +

        disable

        +
        public void disable()
        +
        Disables buffering of sample data and metadata.
        +
      • +
      + + + +
        +
      • +

        isEmpty

        +
        public boolean isEmpty()
        +
        Returns whether the buffer is empty.
        +
      • +
      + + + +
        +
      • +

        getReadIndex

        +
        public int getReadIndex()
        +
        Returns the current absolute read index.
        +
      • +
      + + + +
        +
      • +

        peekSourceId

        +
        public int peekSourceId()
        +
        Peeks the source id of the next sample, or the current upstream source id if the buffer is + empty.
        +
        +
        Returns:
        +
        The source id.
        +
        +
      • +
      + + + +
        +
      • +

        getUpstreamFormat

        +
        public Format getUpstreamFormat()
        +
        Returns the upstream Format in which samples are being queued.
        +
      • +
      + + + +
        +
      • +

        getLargestQueuedTimestampUs

        +
        public long getLargestQueuedTimestampUs()
        +
        Returns the largest sample timestamp that has been queued since the last reset(boolean). +

        + Samples that were discarded by calling discardUpstreamSamples(int) are not + considered as having been queued. Samples that were dequeued from the front of the queue are + considered as having been queued.

        +
        +
        Returns:
        +
        The largest sample timestamp that has been queued, or Long.MIN_VALUE if no + samples have been queued.
        +
        +
      • +
      + + + +
        +
      • +

        skipToKeyframeBefore

        +
        public boolean skipToKeyframeBefore(long timeUs)
        +
        Attempts to skip to the keyframe before the specified time, if it's present in the buffer.
        +
        +
        Parameters:
        +
        timeUs - The seek time.
        +
        Returns:
        +
        Whether the skip was successful.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        setUpstreamFormatChangeListener

        +
        public void setUpstreamFormatChangeListener(DefaultTrackOutput.UpstreamFormatChangedListener listener)
        +
        Sets a listener to be notified of changes to the upstream format.
        +
        +
        Parameters:
        +
        listener - The listener.
        +
        +
      • +
      + + + +
        +
      • +

        formatWithOffset

        +
        public void formatWithOffset(Format format,
        +                             long sampleOffsetUs)
        +
        Like format(Format), but with an offset that will be added to the timestamps of + samples subsequently queued to the buffer. The offset is also used to adjust + Format.subsampleOffsetUs for both the Format passed and those subsequently + passed to format(Format).
        +
        +
        Parameters:
        +
        format - The format.
        +
        sampleOffsetUs - The timestamp offset in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        format

        +
        public void format(Format format)
        +
        Description copied from interface: TrackOutput
        +
        Called when the Format of the track has been extracted from the stream.
        +
        +
        Specified by:
        +
        format in interface TrackOutput
        +
        Parameters:
        +
        format - The extracted Format.
        +
        +
      • +
      + + + +
        +
      • +

        sampleData

        +
        public int sampleData(ExtractorInput input,
        +                      int length,
        +                      boolean allowEndOfInput)
        +               throws java.io.IOException,
        +                      java.lang.InterruptedException
        +
        Description copied from interface: TrackOutput
        +
        Called to write sample data to the output.
        +
        +
        Specified by:
        +
        sampleData in interface TrackOutput
        +
        Parameters:
        +
        input - An ExtractorInput from which to read the sample data.
        +
        length - The maximum length to read from the input.
        +
        allowEndOfInput - True if encountering the end of the input having read no data is + allowed, and should result in C.RESULT_END_OF_INPUT being returned. False if it + should be considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        The number of bytes appended.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        sampleData

        +
        public void sampleData(ParsableByteArray buffer,
        +                       int length)
        +
        Description copied from interface: TrackOutput
        +
        Called to write sample data to the output.
        +
        +
        Specified by:
        +
        sampleData in interface TrackOutput
        +
        Parameters:
        +
        buffer - A ParsableByteArray from which to read the sample data.
        +
        length - The number of bytes to read.
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DummyTrackOutput.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DummyTrackOutput.html new file mode 100644 index 00000000..1af07f67 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/DummyTrackOutput.html @@ -0,0 +1,391 @@ + + + + + +DummyTrackOutput (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class DummyTrackOutput

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.DummyTrackOutput
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    TrackOutput
    +
    +
    +
    +
    public final class DummyTrackOutput
    +extends java.lang.Object
    +implements TrackOutput
    +
    A dummy TrackOutput implementation.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DummyTrackOutput() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidformat(Format format) +
      Called when the Format of the track has been extracted from the stream.
      +
      intsampleData(ExtractorInput input, + int length, + boolean allowEndOfInput) +
      Called to write sample data to the output.
      +
      voidsampleData(ParsableByteArray data, + int length) +
      Called to write sample data to the output.
      +
      voidsampleMetadata(long timeUs, + int flags, + int size, + int offset, + byte[] encryptionKey) +
      Called when metadata associated with a sample has been extracted from the stream.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DummyTrackOutput

        +
        public DummyTrackOutput()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        format

        +
        public void format(Format format)
        +
        Description copied from interface: TrackOutput
        +
        Called when the Format of the track has been extracted from the stream.
        +
        +
        Specified by:
        +
        format in interface TrackOutput
        +
        Parameters:
        +
        format - The extracted Format.
        +
        +
      • +
      + + + +
        +
      • +

        sampleData

        +
        public int sampleData(ExtractorInput input,
        +                      int length,
        +                      boolean allowEndOfInput)
        +               throws java.io.IOException,
        +                      java.lang.InterruptedException
        +
        Description copied from interface: TrackOutput
        +
        Called to write sample data to the output.
        +
        +
        Specified by:
        +
        sampleData in interface TrackOutput
        +
        Parameters:
        +
        input - An ExtractorInput from which to read the sample data.
        +
        length - The maximum length to read from the input.
        +
        allowEndOfInput - True if encountering the end of the input having read no data is + allowed, and should result in C.RESULT_END_OF_INPUT being returned. False if it + should be considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        The number of bytes appended.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        sampleData

        +
        public void sampleData(ParsableByteArray data,
        +                       int length)
        +
        Description copied from interface: TrackOutput
        +
        Called to write sample data to the output.
        +
        +
        Specified by:
        +
        sampleData in interface TrackOutput
        +
        Parameters:
        +
        data - A ParsableByteArray from which to read the sample data.
        +
        length - The number of bytes to read.
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/Extractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/Extractor.html new file mode 100644 index 00000000..528c6b38 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/Extractor.html @@ -0,0 +1,437 @@ + + + + + +Extractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Interface Extractor

+
+
+
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        boolean sniff(ExtractorInput input)
        +       throws java.io.IOException,
        +              java.lang.InterruptedException
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        read

        +
        int read(ExtractorInput input,
        +         PositionHolder seekPosition)
        +  throws java.io.IOException,
        +         java.lang.InterruptedException
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then RESULT_END_OF_INPUT is returned.

        +
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        seek

        +
        void seek(long position)
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        void release()
        +
        Releases all kept resources.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ExtractorInput.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ExtractorInput.html new file mode 100644 index 00000000..b367ff90 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ExtractorInput.html @@ -0,0 +1,684 @@ + + + + + +ExtractorInput (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Interface ExtractorInput

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    DefaultExtractorInput
    +
    +
    +
    +
    public interface ExtractorInput
    +
    Provides data to be consumed by an Extractor.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidadvancePeekPosition(int length) +
      Advances the peek position by length bytes.
      +
      booleanadvancePeekPosition(int length, + boolean allowEndOfInput) +
      Advances the peek position by length bytes.
      +
      longgetLength() +
      Returns the length of the source stream, or C.LENGTH_UNSET if it is unknown.
      +
      longgetPeekPosition() +
      Returns the current peek position (byte offset) in the stream.
      +
      longgetPosition() +
      Returns the current read position (byte offset) in the stream.
      +
      voidpeekFully(byte[] target, + int offset, + int length) +
      Peeks length bytes from the peek position, writing them into target at index + offset.
      +
      booleanpeekFully(byte[] target, + int offset, + int length, + boolean allowEndOfInput) +
      Peeks length bytes from the peek position, writing them into target at index + offset.
      +
      intread(byte[] target, + int offset, + int length) +
      Reads up to length bytes from the input and resets the peek position.
      +
      voidreadFully(byte[] target, + int offset, + int length) +
      Equivalent to readFully(target, offset, length, false).
      +
      booleanreadFully(byte[] target, + int offset, + int length, + boolean allowEndOfInput) +
      Like read(byte[], int, int), but reads the requested length in full.
      +
      voidresetPeekPosition() +
      Resets the peek position to equal the current read position.
      +
      <E extends java.lang.Throwable>
      void
      setRetryPosition(long position, + E e) +
      Called when reading fails and the required retry position is different from the last position.
      +
      intskip(int length) +
      Like read(byte[], int, int), except the data is skipped instead of read.
      +
      voidskipFully(int length) +
      Like readFully(byte[], int, int), except the data is skipped instead of read.
      +
      booleanskipFully(int length, + boolean allowEndOfInput) +
      Like readFully(byte[], int, int, boolean), except the data is skipped instead of read.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        read

        +
        int read(byte[] target,
        +         int offset,
        +         int length)
        +  throws java.io.IOException,
        +         java.lang.InterruptedException
        +
        Reads up to length bytes from the input and resets the peek position. +

        + This method blocks until at least one byte of data can be read, the end of the input is + detected, or an exception is thrown.

        +
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The maximum number of bytes to read from the input.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if the input has ended.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread has been interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        readFully

        +
        boolean readFully(byte[] target,
        +                  int offset,
        +                  int length,
        +                  boolean allowEndOfInput)
        +           throws java.io.IOException,
        +                  java.lang.InterruptedException
        +
        Like read(byte[], int, int), but reads the requested length in full. +

        + If the end of the input is found having read no data, then behavior is dependent on + allowEndOfInput. If allowEndOfInput == true then false is returned. + Otherwise an EOFException is thrown. +

        + Encountering the end of input having partially satisfied the read is always considered an + error, and will result in an EOFException being thrown.

        +
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The number of bytes to read from the input.
        +
        allowEndOfInput - True if encountering the end of the input having read no data is + allowed, and should result in false being returned. False if it should be + considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        True if the read was successful. False if the end of the input was encountered having + read no data.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered having partially satisfied the read + (i.e. having read at least one byte, but fewer than length), or if no bytes were + read and allowEndOfInput is false.
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread has been interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        readFully

        +
        void readFully(byte[] target,
        +               int offset,
        +               int length)
        +        throws java.io.IOException,
        +               java.lang.InterruptedException
        +
        Equivalent to readFully(target, offset, length, false).
        +
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The number of bytes to read from the input.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered.
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        skip

        +
        int skip(int length)
        +  throws java.io.IOException,
        +         java.lang.InterruptedException
        +
        Like read(byte[], int, int), except the data is skipped instead of read.
        +
        +
        Parameters:
        +
        length - The maximum number of bytes to skip from the input.
        +
        Returns:
        +
        The number of bytes skipped, or C.RESULT_END_OF_INPUT if the input has ended.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread has been interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        skipFully

        +
        boolean skipFully(int length,
        +                  boolean allowEndOfInput)
        +           throws java.io.IOException,
        +                  java.lang.InterruptedException
        +
        Like readFully(byte[], int, int, boolean), except the data is skipped instead of read.
        +
        +
        Parameters:
        +
        length - The number of bytes to skip from the input.
        +
        allowEndOfInput - True if encountering the end of the input having skipped no data is + allowed, and should result in false being returned. False if it should be + considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        True if the skip was successful. False if the end of the input was encountered having + skipped no data.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered having partially satisfied the skip + (i.e. having skipped at least one byte, but fewer than length), or if no bytes were + skipped and allowEndOfInput is false.
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread has been interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        skipFully

        +
        void skipFully(int length)
        +        throws java.io.IOException,
        +               java.lang.InterruptedException
        +
        Like readFully(byte[], int, int), except the data is skipped instead of read. +

        + Encountering the end of input is always considered an error, and will result in an + EOFException being thrown.

        +
        +
        Parameters:
        +
        length - The number of bytes to skip from the input.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered.
        +
        java.io.IOException - If an error occurs reading from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        peekFully

        +
        boolean peekFully(byte[] target,
        +                  int offset,
        +                  int length,
        +                  boolean allowEndOfInput)
        +           throws java.io.IOException,
        +                  java.lang.InterruptedException
        +
        Peeks length bytes from the peek position, writing them into target at index + offset. The current read position is left unchanged. +

        + If the end of the input is found having peeked no data, then behavior is dependent on + allowEndOfInput. If allowEndOfInput == true then false is returned. + Otherwise an EOFException is thrown. +

        + Calling resetPeekPosition() resets the peek position to equal the current read + position, so the caller can peek the same data again. Reading or skipping also resets the peek + position.

        +
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The number of bytes to peek from the input.
        +
        allowEndOfInput - True if encountering the end of the input having peeked no data is + allowed, and should result in false being returned. False if it should be + considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        True if the peek was successful. False if the end of the input was encountered having + peeked no data.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered having partially satisfied the peek + (i.e. having peeked at least one byte, but fewer than length), or if no bytes were + peeked and allowEndOfInput is false.
        +
        java.io.IOException - If an error occurs peeking from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        peekFully

        +
        void peekFully(byte[] target,
        +               int offset,
        +               int length)
        +        throws java.io.IOException,
        +               java.lang.InterruptedException
        +
        Peeks length bytes from the peek position, writing them into target at index + offset. The current read position is left unchanged. +

        + Calling resetPeekPosition() resets the peek position to equal the current read + position, so the caller can peek the same data again. Reading and skipping also reset the peek + position.

        +
        +
        Parameters:
        +
        target - A target array into which data should be written.
        +
        offset - The offset into the target array at which to write.
        +
        length - The number of bytes to peek from the input.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered.
        +
        java.io.IOException - If an error occurs peeking from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        advancePeekPosition

        +
        boolean advancePeekPosition(int length,
        +                            boolean allowEndOfInput)
        +                     throws java.io.IOException,
        +                            java.lang.InterruptedException
        +
        Advances the peek position by length bytes. +

        + If the end of the input is encountered before advancing the peek position, then behavior is + dependent on allowEndOfInput. If allowEndOfInput == true then false is + returned. Otherwise an EOFException is thrown.

        +
        +
        Parameters:
        +
        length - The number of bytes by which to advance the peek position.
        +
        allowEndOfInput - True if encountering the end of the input before advancing is allowed, + and should result in false being returned. False if it should be considered an + error, causing an EOFException to be thrown.
        +
        Returns:
        +
        True if advancing the peek position was successful. False if the end of the input was + encountered before the peek position could be advanced.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered having partially advanced (i.e. having + advanced by at least one byte, but fewer than length), or if the end of input was + encountered before advancing and allowEndOfInput is false.
        +
        java.io.IOException - If an error occurs advancing the peek position.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        advancePeekPosition

        +
        void advancePeekPosition(int length)
        +                  throws java.io.IOException,
        +                         java.lang.InterruptedException
        +
        Advances the peek position by length bytes.
        +
        +
        Parameters:
        +
        length - The number of bytes to peek from the input.
        +
        Throws:
        +
        java.io.EOFException - If the end of input was encountered.
        +
        java.io.IOException - If an error occurs peeking from the input.
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        resetPeekPosition

        +
        void resetPeekPosition()
        +
        Resets the peek position to equal the current read position.
        +
      • +
      + + + +
        +
      • +

        getPeekPosition

        +
        long getPeekPosition()
        +
        Returns the current peek position (byte offset) in the stream.
        +
        +
        Returns:
        +
        The peek position (byte offset) in the stream.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        long getPosition()
        +
        Returns the current read position (byte offset) in the stream.
        +
        +
        Returns:
        +
        The read position (byte offset) in the stream.
        +
        +
      • +
      + + + +
        +
      • +

        getLength

        +
        long getLength()
        +
        Returns the length of the source stream, or C.LENGTH_UNSET if it is unknown.
        +
        +
        Returns:
        +
        The length of the source stream, or C.LENGTH_UNSET.
        +
        +
      • +
      + + + + + +
        +
      • +

        setRetryPosition

        +
        <E extends java.lang.Throwable> void setRetryPosition(long position,
        +                                                      E e)
        +                                               throws E extends java.lang.Throwable
        +
        Called when reading fails and the required retry position is different from the last position. + After setting the retry position it throws the given Throwable.
        +
        +
        Type Parameters:
        +
        E - Type of Throwable to be thrown.
        +
        Parameters:
        +
        position - The required retry position.
        +
        e - Throwable to be thrown.
        +
        Throws:
        +
        E - The given Throwable object.
        +
        E extends java.lang.Throwable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ExtractorOutput.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ExtractorOutput.html new file mode 100644 index 00000000..31c54f43 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ExtractorOutput.html @@ -0,0 +1,274 @@ + + + + + +ExtractorOutput (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Interface ExtractorOutput

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    ChunkExtractorWrapper
    +
    +
    +
    +
    public interface ExtractorOutput
    +
    Receives stream level data extracted by an Extractor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        track

        +
        TrackOutput track(int trackId)
        +
        Called by the Extractor to get the TrackOutput for a specific track. +

        + The same TrackOutput is returned if multiple calls are made with the same + trackId.

        +
        +
        Parameters:
        +
        trackId - A track identifier.
        +
        Returns:
        +
        The TrackOutput for the given track identifier.
        +
        +
      • +
      + + + +
        +
      • +

        endTracks

        +
        void endTracks()
        +
        Called when all tracks have been identified, meaning no new trackId values will be + passed to track(int).
        +
      • +
      + + + +
        +
      • +

        seekMap

        +
        void seekMap(SeekMap seekMap)
        +
        Called when a SeekMap has been extracted from the stream.
        +
        +
        Parameters:
        +
        seekMap - The extracted SeekMap.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ExtractorsFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ExtractorsFactory.html new file mode 100644 index 00000000..64b4050a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ExtractorsFactory.html @@ -0,0 +1,227 @@ + + + + + +ExtractorsFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Interface ExtractorsFactory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createExtractors

        +
        Extractor[] createExtractors()
        +
        Returns an array of new Extractor instances.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/GaplessInfoHolder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/GaplessInfoHolder.html new file mode 100644 index 00000000..cb5def32 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/GaplessInfoHolder.html @@ -0,0 +1,384 @@ + + + + + +GaplessInfoHolder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class GaplessInfoHolder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.GaplessInfoHolder
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class GaplessInfoHolder
    +extends java.lang.Object
    +
    Holder for gapless playback information.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intencoderDelay +
      The number of samples to trim from the start of the decoded audio stream, or + Format.NO_VALUE if not set.
      +
      intencoderPadding +
      The number of samples to trim from the end of the decoded audio stream, or + Format.NO_VALUE if not set.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GaplessInfoHolder() +
      Creates a new holder for gapless playback information.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanhasGaplessInfo() +
      Returns whether encoderDelay and encoderPadding have been set.
      +
      booleansetFromComment(java.lang.String name, + java.lang.String data) +
      Populates the holder with data parsed from a gapless playback comment (stored in an ID3 header + or MPEG 4 user data), if valid and non-zero.
      +
      booleansetFromXingHeaderValue(int value) +
      Populates the holder with data from an MP3 Xing header, if valid and non-zero.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        encoderDelay

        +
        public int encoderDelay
        +
        The number of samples to trim from the start of the decoded audio stream, or + Format.NO_VALUE if not set.
        +
      • +
      + + + +
        +
      • +

        encoderPadding

        +
        public int encoderPadding
        +
        The number of samples to trim from the end of the decoded audio stream, or + Format.NO_VALUE if not set.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GaplessInfoHolder

        +
        public GaplessInfoHolder()
        +
        Creates a new holder for gapless playback information.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setFromXingHeaderValue

        +
        public boolean setFromXingHeaderValue(int value)
        +
        Populates the holder with data from an MP3 Xing header, if valid and non-zero.
        +
        +
        Parameters:
        +
        value - The 24-bit value to decode.
        +
        Returns:
        +
        Whether the holder was populated.
        +
        +
      • +
      + + + +
        +
      • +

        setFromComment

        +
        public boolean setFromComment(java.lang.String name,
        +                              java.lang.String data)
        +
        Populates the holder with data parsed from a gapless playback comment (stored in an ID3 header + or MPEG 4 user data), if valid and non-zero.
        +
        +
        Parameters:
        +
        name - The comment's identifier.
        +
        data - The comment's payload data.
        +
        Returns:
        +
        Whether the holder was populated.
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/MpegAudioHeader.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/MpegAudioHeader.html new file mode 100644 index 00000000..142c6ba1 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/MpegAudioHeader.html @@ -0,0 +1,460 @@ + + + + + +MpegAudioHeader (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class MpegAudioHeader

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.MpegAudioHeader
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class MpegAudioHeader
    +extends java.lang.Object
    +
    An MPEG audio frame header.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intbitrate +
      Bitrate of the frame in bit/s.
      +
      intchannels +
      Number of audio channels in the frame.
      +
      intframeSize +
      Size of the frame associated with this header, in bytes.
      +
      static intMAX_FRAME_SIZE_BYTES +
      Theoretical maximum frame size for an MPEG audio stream, which occurs when playing a Layer 2 + MPEG 2.5 audio stream at 16 kb/s (with padding).
      +
      java.lang.StringmimeType +
      The mime type.
      +
      intsampleRate +
      Sample rate in samples per second.
      +
      intsamplesPerFrame +
      Number of samples stored in the frame.
      +
      intversion +
      MPEG audio header version.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MpegAudioHeader() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static intgetFrameSize(int header) +
      Returns the size of the frame associated with header, or C.LENGTH_UNSET if it + is invalid.
      +
      static booleanpopulateHeader(int headerData, + MpegAudioHeader header) +
      Parses headerData, populating header with the parsed data.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        MAX_FRAME_SIZE_BYTES

        +
        public static final int MAX_FRAME_SIZE_BYTES
        +
        Theoretical maximum frame size for an MPEG audio stream, which occurs when playing a Layer 2 + MPEG 2.5 audio stream at 16 kb/s (with padding). The size is 1152 sample/frame * + 160000 bit/s / (8000 sample/s * 8 bit/byte) + 1 padding byte/frame = 2881 byte/frame. + The next power of two size is 4 KiB.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        version

        +
        public int version
        +
        MPEG audio header version.
        +
      • +
      + + + +
        +
      • +

        mimeType

        +
        public java.lang.String mimeType
        +
        The mime type.
        +
      • +
      + + + +
        +
      • +

        frameSize

        +
        public int frameSize
        +
        Size of the frame associated with this header, in bytes.
        +
      • +
      + + + +
        +
      • +

        sampleRate

        +
        public int sampleRate
        +
        Sample rate in samples per second.
        +
      • +
      + + + +
        +
      • +

        channels

        +
        public int channels
        +
        Number of audio channels in the frame.
        +
      • +
      + + + +
        +
      • +

        bitrate

        +
        public int bitrate
        +
        Bitrate of the frame in bit/s.
        +
      • +
      + + + +
        +
      • +

        samplesPerFrame

        +
        public int samplesPerFrame
        +
        Number of samples stored in the frame.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MpegAudioHeader

        +
        public MpegAudioHeader()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getFrameSize

        +
        public static int getFrameSize(int header)
        +
        Returns the size of the frame associated with header, or C.LENGTH_UNSET if it + is invalid.
        +
      • +
      + + + +
        +
      • +

        populateHeader

        +
        public static boolean populateHeader(int headerData,
        +                                     MpegAudioHeader header)
        +
        Parses headerData, populating header with the parsed data.
        +
        +
        Parameters:
        +
        headerData - Header data to parse.
        +
        header - Header to populate with data from headerData.
        +
        Returns:
        +
        True if the header was populated. False otherwise, indicating that headerData + is not a valid MPEG audio header.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/PositionHolder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/PositionHolder.html new file mode 100644 index 00000000..648b8a60 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/PositionHolder.html @@ -0,0 +1,275 @@ + + + + + +PositionHolder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class PositionHolder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.PositionHolder
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class PositionHolder
    +extends java.lang.Object
    +
    Holds a position in the stream.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      longposition +
      The held position.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PositionHolder() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        position

        +
        public long position
        +
        The held position.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PositionHolder

        +
        public PositionHolder()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/SeekMap.Unseekable.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/SeekMap.Unseekable.html new file mode 100644 index 00000000..5e134149 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/SeekMap.Unseekable.html @@ -0,0 +1,364 @@ + + + + + +SeekMap.Unseekable (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class SeekMap.Unseekable

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.SeekMap.Unseekable
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    SeekMap
    +
    +
    +
    Enclosing interface:
    +
    SeekMap
    +
    +
    +
    +
    public static final class SeekMap.Unseekable
    +extends java.lang.Object
    +implements SeekMap
    +
    A SeekMap that does not support seeking.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Unseekable(long durationUs) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longgetDurationUs() +
      Returns the duration of the stream in microseconds.
      +
      longgetPosition(long timeUs) +
      Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
      +
      booleanisSeekable() +
      Returns whether seeking is supported.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Unseekable

        +
        public Unseekable(long durationUs)
        +
        +
        Parameters:
        +
        durationUs - The duration of the stream in microseconds, or C.TIME_UNSET if + the duration is unknown.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isSeekable

        +
        public boolean isSeekable()
        +
        Description copied from interface: SeekMap
        +
        Returns whether seeking is supported. +

        + If seeking is not supported then the only valid seek position is the start of the file, and so + SeekMap.getPosition(long) will return 0 for all input values.

        +
        +
        Specified by:
        +
        isSeekable in interface SeekMap
        +
        Returns:
        +
        Whether seeking is supported.
        +
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        public long getDurationUs()
        +
        Description copied from interface: SeekMap
        +
        Returns the duration of the stream in microseconds.
        +
        +
        Specified by:
        +
        getDurationUs in interface SeekMap
        +
        Returns:
        +
        The duration of the stream in microseconds, or C.TIME_UNSET if the + duration is unknown.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public long getPosition(long timeUs)
        +
        Description copied from interface: SeekMap
        +
        Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
        +
        +
        Specified by:
        +
        getPosition in interface SeekMap
        +
        Parameters:
        +
        timeUs - A seek position in microseconds.
        +
        Returns:
        +
        The corresponding position (byte offset) in the stream from which data can be provided + to the extractor, or 0 if #isSeekable() returns false.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/SeekMap.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/SeekMap.html new file mode 100644 index 00000000..33474d61 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/SeekMap.html @@ -0,0 +1,301 @@ + + + + + +SeekMap (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Interface SeekMap

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeInterface and Description
      static class SeekMap.Unseekable +
      A SeekMap that does not support seeking.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      longgetDurationUs() +
      Returns the duration of the stream in microseconds.
      +
      longgetPosition(long timeUs) +
      Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
      +
      booleanisSeekable() +
      Returns whether seeking is supported.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isSeekable

        +
        boolean isSeekable()
        +
        Returns whether seeking is supported. +

        + If seeking is not supported then the only valid seek position is the start of the file, and so + getPosition(long) will return 0 for all input values.

        +
        +
        Returns:
        +
        Whether seeking is supported.
        +
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        long getDurationUs()
        +
        Returns the duration of the stream in microseconds.
        +
        +
        Returns:
        +
        The duration of the stream in microseconds, or C.TIME_UNSET if the + duration is unknown.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        long getPosition(long timeUs)
        +
        Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
        +
        +
        Parameters:
        +
        timeUs - A seek position in microseconds.
        +
        Returns:
        +
        The corresponding position (byte offset) in the stream from which data can be provided + to the extractor, or 0 if #isSeekable() returns false.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/TimestampAdjuster.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/TimestampAdjuster.html new file mode 100644 index 00000000..a54df8e4 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/TimestampAdjuster.html @@ -0,0 +1,434 @@ + + + + + +TimestampAdjuster (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Class TimestampAdjuster

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.TimestampAdjuster
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class TimestampAdjuster
    +extends java.lang.Object
    +
    Offsets timestamps according to an initial sample timestamp offset. MPEG-2 TS timestamps scaling + and adjustment is supported, taking into account timestamp rollover.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static longDO_NOT_OFFSET +
      A special firstSampleTimestampUs value indicating that presentation timestamps should + not be offset.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TimestampAdjuster(long firstSampleTimestampUs) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longadjustSampleTimestamp(long timeUs) +
      Offsets a sample timestamp in microseconds.
      +
      longadjustTsTimestamp(long pts) +
      Scales and offsets an MPEG-2 TS presentation timestamp considering wraparound.
      +
      static longptsToUs(long pts) +
      Converts a value in MPEG-2 timestamp units to the corresponding value in microseconds.
      +
      voidreset() +
      Resets the instance to its initial state.
      +
      static longusToPts(long us) +
      Converts a value in microseconds to the corresponding values in MPEG-2 timestamp units.
      +
      voidwaitUntilInitialized() +
      Blocks the calling thread until this adjuster is initialized.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DO_NOT_OFFSET

        +
        public static final long DO_NOT_OFFSET
        +
        A special firstSampleTimestampUs value indicating that presentation timestamps should + not be offset.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TimestampAdjuster

        +
        public TimestampAdjuster(long firstSampleTimestampUs)
        +
        +
        Parameters:
        +
        firstSampleTimestampUs - The desired result of the first call to + adjustSampleTimestamp(long), or DO_NOT_OFFSET if presentation timestamps + should not be offset.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        reset

        +
        public void reset()
        +
        Resets the instance to its initial state.
        +
      • +
      + + + +
        +
      • +

        adjustTsTimestamp

        +
        public long adjustTsTimestamp(long pts)
        +
        Scales and offsets an MPEG-2 TS presentation timestamp considering wraparound.
        +
        +
        Parameters:
        +
        pts - The MPEG-2 TS presentation timestamp.
        +
        Returns:
        +
        The adjusted timestamp in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        adjustSampleTimestamp

        +
        public long adjustSampleTimestamp(long timeUs)
        +
        Offsets a sample timestamp in microseconds.
        +
        +
        Parameters:
        +
        timeUs - The timestamp of a sample to adjust.
        +
        Returns:
        +
        The adjusted timestamp in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        waitUntilInitialized

        +
        public void waitUntilInitialized()
        +                          throws java.lang.InterruptedException
        +
        Blocks the calling thread until this adjuster is initialized.
        +
        +
        Throws:
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        ptsToUs

        +
        public static long ptsToUs(long pts)
        +
        Converts a value in MPEG-2 timestamp units to the corresponding value in microseconds.
        +
        +
        Parameters:
        +
        pts - A value in MPEG-2 timestamp units.
        +
        Returns:
        +
        The corresponding value in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        usToPts

        +
        public static long usToPts(long us)
        +
        Converts a value in microseconds to the corresponding values in MPEG-2 timestamp units.
        +
        +
        Parameters:
        +
        us - A value in microseconds.
        +
        Returns:
        +
        The corresponding value in MPEG-2 timestamp units.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/TrackOutput.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/TrackOutput.html new file mode 100644 index 00000000..67336503 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/TrackOutput.html @@ -0,0 +1,328 @@ + + + + + +TrackOutput (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor
+

Interface TrackOutput

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidformat(Format format) +
      Called when the Format of the track has been extracted from the stream.
      +
      intsampleData(ExtractorInput input, + int length, + boolean allowEndOfInput) +
      Called to write sample data to the output.
      +
      voidsampleData(ParsableByteArray data, + int length) +
      Called to write sample data to the output.
      +
      voidsampleMetadata(long timeUs, + int flags, + int size, + int offset, + byte[] encryptionKey) +
      Called when metadata associated with a sample has been extracted from the stream.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        format

        +
        void format(Format format)
        +
        Called when the Format of the track has been extracted from the stream.
        +
        +
        Parameters:
        +
        format - The extracted Format.
        +
        +
      • +
      + + + +
        +
      • +

        sampleData

        +
        int sampleData(ExtractorInput input,
        +               int length,
        +               boolean allowEndOfInput)
        +        throws java.io.IOException,
        +               java.lang.InterruptedException
        +
        Called to write sample data to the output.
        +
        +
        Parameters:
        +
        input - An ExtractorInput from which to read the sample data.
        +
        length - The maximum length to read from the input.
        +
        allowEndOfInput - True if encountering the end of the input having read no data is + allowed, and should result in C.RESULT_END_OF_INPUT being returned. False if it + should be considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        The number of bytes appended.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        sampleData

        +
        void sampleData(ParsableByteArray data,
        +                int length)
        +
        Called to write sample data to the output.
        +
        +
        Parameters:
        +
        data - A ParsableByteArray from which to read the sample data.
        +
        length - The number of bytes to read.
        +
        +
      • +
      + + + +
        +
      • +

        sampleMetadata

        +
        void sampleMetadata(long timeUs,
        +                    int flags,
        +                    int size,
        +                    int offset,
        +                    byte[] encryptionKey)
        +
        Called when metadata associated with a sample has been extracted from the stream. +

        + The corresponding sample data will have already been passed to the output via calls to + sampleData(ExtractorInput, int, boolean) or + sampleData(ParsableByteArray, int).

        +
        +
        Parameters:
        +
        timeUs - The media timestamp associated with the sample, in microseconds.
        +
        flags - Flags associated with the sample. See C.BUFFER_FLAG_*.
        +
        size - The size of the sample data, in bytes.
        +
        offset - The number of bytes that have been passed to + sampleData(ExtractorInput, int, boolean) or + sampleData(ParsableByteArray, int) since the last byte belonging to the sample + whose metadata is being passed.
        +
        encryptionKey - The encryption key associated with the sample. May be null.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/FlvExtractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/FlvExtractor.html new file mode 100644 index 00000000..4e2de07e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/FlvExtractor.html @@ -0,0 +1,590 @@ + + + + + +FlvExtractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.flv
+

Class FlvExtractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.flv.FlvExtractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor, SeekMap
    +
    +
    +
    +
    public final class FlvExtractor
    +extends java.lang.Object
    +implements Extractor, SeekMap
    +
    Facilitates the extraction of data from the FLV container format.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        tagType

        +
        public int tagType
        +
      • +
      + + + +
        +
      • +

        tagDataSize

        +
        public int tagDataSize
        +
      • +
      + + + +
        +
      • +

        tagTimestampUs

        +
        public long tagTimestampUs
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FlvExtractor

        +
        public FlvExtractor()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        isSeekable

        +
        public boolean isSeekable()
        +
        Description copied from interface: SeekMap
        +
        Returns whether seeking is supported. +

        + If seeking is not supported then the only valid seek position is the start of the file, and so + SeekMap.getPosition(long) will return 0 for all input values.

        +
        +
        Specified by:
        +
        isSeekable in interface SeekMap
        +
        Returns:
        +
        Whether seeking is supported.
        +
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        public long getDurationUs()
        +
        Description copied from interface: SeekMap
        +
        Returns the duration of the stream in microseconds.
        +
        +
        Specified by:
        +
        getDurationUs in interface SeekMap
        +
        Returns:
        +
        The duration of the stream in microseconds, or C.TIME_UNSET if the + duration is unknown.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public long getPosition(long timeUs)
        +
        Description copied from interface: SeekMap
        +
        Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
        +
        +
        Specified by:
        +
        getPosition in interface SeekMap
        +
        Parameters:
        +
        timeUs - A seek position in microseconds.
        +
        Returns:
        +
        The corresponding position (byte offset) in the stream from which data can be provided + to the extractor, or 0 if #isSeekable() returns false.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/package-frame.html new file mode 100644 index 00000000..123b8a50 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.google.android.exoplayer2.extractor.flv (library API) + + + + + +

com.google.android.exoplayer2.extractor.flv

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/package-summary.html new file mode 100644 index 00000000..d3a220bb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/package-summary.html @@ -0,0 +1,142 @@ + + + + + +com.google.android.exoplayer2.extractor.flv (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.extractor.flv

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    FlvExtractor +
    Facilitates the extraction of data from the FLV container format.
    +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/package-tree.html new file mode 100644 index 00000000..f9188cb2 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/flv/package-tree.html @@ -0,0 +1,135 @@ + + + + + +com.google.android.exoplayer2.extractor.flv Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.extractor.flv

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.android.exoplayer2.extractor.flv.FlvExtractor (implements com.google.android.exoplayer2.extractor.Extractor, com.google.android.exoplayer2.extractor.SeekMap)
    • +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractor.html new file mode 100644 index 00000000..1c7929e7 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractor.html @@ -0,0 +1,458 @@ + + + + + +MatroskaExtractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.mkv
+

Class MatroskaExtractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor
    +
    +
    +
    +
    public final class MatroskaExtractor
    +extends java.lang.Object
    +implements Extractor
    +
    Extracts data from a Matroska or WebM file.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MatroskaExtractor

        +
        public MatroskaExtractor()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/package-frame.html new file mode 100644 index 00000000..e29c859a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.google.android.exoplayer2.extractor.mkv (library API) + + + + + +

com.google.android.exoplayer2.extractor.mkv

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/package-summary.html new file mode 100644 index 00000000..908c657e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/package-summary.html @@ -0,0 +1,142 @@ + + + + + +com.google.android.exoplayer2.extractor.mkv (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.extractor.mkv

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    MatroskaExtractor +
    Extracts data from a Matroska or WebM file.
    +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/package-tree.html new file mode 100644 index 00000000..c6dd4032 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mkv/package-tree.html @@ -0,0 +1,135 @@ + + + + + +com.google.android.exoplayer2.extractor.mkv Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.extractor.mkv

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/Mp3Extractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/Mp3Extractor.html new file mode 100644 index 00000000..b43873c1 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/Mp3Extractor.html @@ -0,0 +1,481 @@ + + + + + +Mp3Extractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.mp3
+

Class Mp3Extractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.mp3.Mp3Extractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor
    +
    +
    +
    +
    public final class Mp3Extractor
    +extends java.lang.Object
    +implements Extractor
    +
    Extracts data from an MP3 file.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Mp3Extractor

        +
        public Mp3Extractor()
        +
        Constructs a new Mp3Extractor.
        +
      • +
      + + + +
        +
      • +

        Mp3Extractor

        +
        public Mp3Extractor(long forcedFirstSampleTimestampUs)
        +
        Constructs a new Mp3Extractor.
        +
        +
        Parameters:
        +
        forcedFirstSampleTimestampUs - A timestamp to force for the first sample, or + C.TIME_UNSET if forcing is not required.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/package-frame.html new file mode 100644 index 00000000..daeb6e0b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.google.android.exoplayer2.extractor.mp3 (library API) + + + + + +

com.google.android.exoplayer2.extractor.mp3

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/package-summary.html new file mode 100644 index 00000000..9ea9ca1b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/package-summary.html @@ -0,0 +1,142 @@ + + + + + +com.google.android.exoplayer2.extractor.mp3 (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.extractor.mp3

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    Mp3Extractor +
    Extracts data from an MP3 file.
    +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/package-tree.html new file mode 100644 index 00000000..ab8be998 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp3/package-tree.html @@ -0,0 +1,135 @@ + + + + + +com.google.android.exoplayer2.extractor.mp3 Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.extractor.mp3

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.android.exoplayer2.extractor.mp3.Mp3Extractor (implements com.google.android.exoplayer2.extractor.Extractor)
    • +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.Flags.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.Flags.html new file mode 100644 index 00000000..e666258d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.Flags.html @@ -0,0 +1,163 @@ + + + + + +FragmentedMp4Extractor.Flags (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.mp4
+

Annotation Type FragmentedMp4Extractor.Flags

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface FragmentedMp4Extractor.Flags
    +
    Flags controlling the behavior of the extractor.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.html new file mode 100644 index 00000000..bc9eedda --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.html @@ -0,0 +1,565 @@ + + + + + +FragmentedMp4Extractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.mp4
+

Class FragmentedMp4Extractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor
    +
    +
    +
    +
    public final class FragmentedMp4Extractor
    +extends java.lang.Object
    +implements Extractor
    +
    Facilitates the extraction of data from the fragmented mp4 container format.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        FLAG_WORKAROUND_EVERY_VIDEO_FRAME_IS_SYNC_FRAME

        +
        public static final int FLAG_WORKAROUND_EVERY_VIDEO_FRAME_IS_SYNC_FRAME
        +
        Flag to work around an issue in some video streams where every frame is marked as a sync frame. + The workaround overrides the sync frame flags in the stream, forcing them to false except for + the first sample in each segment. +

        + This flag does nothing if the stream is not a video stream.

        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        FLAG_WORKAROUND_IGNORE_TFDT_BOX

        +
        public static final int FLAG_WORKAROUND_IGNORE_TFDT_BOX
        +
        Flag to ignore any tfdt boxes in the stream.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FragmentedMp4Extractor

        +
        public FragmentedMp4Extractor()
        +
      • +
      + + + +
        +
      • +

        FragmentedMp4Extractor

        +
        public FragmentedMp4Extractor(int flags,
        +                              TimestampAdjuster timestampAdjuster)
        +
        +
        Parameters:
        +
        flags - Flags that control the extractor's behavior.
        +
        timestampAdjuster - Adjusts sample timestamps. May be null if no adjustment is needed.
        +
        +
      • +
      + + + +
        +
      • +

        FragmentedMp4Extractor

        +
        public FragmentedMp4Extractor(int flags,
        +                              Track sideloadedTrack,
        +                              TimestampAdjuster timestampAdjuster)
        +
        +
        Parameters:
        +
        flags - Flags that control the extractor's behavior.
        +
        sideloadedTrack - Sideloaded track information, in the case that the extractor + will not receive a moov box in the input data.
        +
        timestampAdjuster - Adjusts sample timestamps. May be null if no adjustment is needed.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/Mp4Extractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/Mp4Extractor.html new file mode 100644 index 00000000..2b080707 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/Mp4Extractor.html @@ -0,0 +1,551 @@ + + + + + +Mp4Extractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.mp4
+

Class Mp4Extractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor, SeekMap
    +
    +
    +
    +
    public final class Mp4Extractor
    +extends java.lang.Object
    +implements Extractor, SeekMap
    +
    Extracts data from an unfragmented MP4 file.
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Mp4Extractor() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longgetDurationUs() +
      Returns the duration of the stream in microseconds.
      +
      longgetPosition(long timeUs) +
      Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
      +
      voidinit(ExtractorOutput output) +
      Initializes the extractor with an ExtractorOutput.
      +
      booleanisSeekable() +
      Returns whether seeking is supported.
      +
      intread(ExtractorInput input, + PositionHolder seekPosition) +
      Extracts data read from a provided ExtractorInput.
      +
      voidrelease() +
      Releases all kept resources.
      +
      voidseek(long position) +
      Notifies the extractor that a seek has occurred.
      +
      booleansniff(ExtractorInput input) +
      Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Mp4Extractor

        +
        public Mp4Extractor()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        isSeekable

        +
        public boolean isSeekable()
        +
        Description copied from interface: SeekMap
        +
        Returns whether seeking is supported. +

        + If seeking is not supported then the only valid seek position is the start of the file, and so + SeekMap.getPosition(long) will return 0 for all input values.

        +
        +
        Specified by:
        +
        isSeekable in interface SeekMap
        +
        Returns:
        +
        Whether seeking is supported.
        +
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        public long getDurationUs()
        +
        Description copied from interface: SeekMap
        +
        Returns the duration of the stream in microseconds.
        +
        +
        Specified by:
        +
        getDurationUs in interface SeekMap
        +
        Returns:
        +
        The duration of the stream in microseconds, or C.TIME_UNSET if the + duration is unknown.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public long getPosition(long timeUs)
        +
        Description copied from interface: SeekMap
        +
        Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
        +
        +
        Specified by:
        +
        getPosition in interface SeekMap
        +
        Parameters:
        +
        timeUs - A seek position in microseconds.
        +
        Returns:
        +
        The corresponding position (byte offset) in the stream from which data can be provided + to the extractor, or 0 if #isSeekable() returns false.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtil.html new file mode 100644 index 00000000..c2e4b3f9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtil.html @@ -0,0 +1,302 @@ + + + + + +PsshAtomUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.mp4
+

Class PsshAtomUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.mp4.PsshAtomUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class PsshAtomUtil
    +extends java.lang.Object
    +
    Utility methods for handling PSSH atoms.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static byte[]buildPsshAtom(java.util.UUID uuid, + byte[] data) +
      Builds a PSSH atom for a given UUID containing the given scheme specific data.
      +
      static byte[]parseSchemeSpecificData(byte[] atom, + java.util.UUID uuid) +
      Parses the scheme specific data from a PSSH atom.
      +
      static java.util.UUIDparseUuid(byte[] atom) +
      Parses the UUID from a PSSH atom.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        buildPsshAtom

        +
        public static byte[] buildPsshAtom(java.util.UUID uuid,
        +                                   byte[] data)
        +
        Builds a PSSH atom for a given UUID containing the given scheme specific data.
        +
        +
        Parameters:
        +
        uuid - The UUID of the scheme.
        +
        data - The scheme specific data.
        +
        Returns:
        +
        The PSSH atom.
        +
        +
      • +
      + + + +
        +
      • +

        parseUuid

        +
        public static java.util.UUID parseUuid(byte[] atom)
        +
        Parses the UUID from a PSSH atom. Version 0 and 1 PSSH atoms are supported. +

        + The UUID is only parsed if the data is a valid PSSH atom.

        +
        +
        Parameters:
        +
        atom - The atom to parse.
        +
        Returns:
        +
        The parsed UUID. Null if the input is not a valid PSSH atom, or if the PSSH atom has + an unsupported version.
        +
        +
      • +
      + + + +
        +
      • +

        parseSchemeSpecificData

        +
        public static byte[] parseSchemeSpecificData(byte[] atom,
        +                                             java.util.UUID uuid)
        +
        Parses the scheme specific data from a PSSH atom. Version 0 and 1 PSSH atoms are supported. +

        + The scheme specific data is only parsed if the data is a valid PSSH atom matching the given + UUID, or if the data is a valid PSSH atom of any type in the case that the passed UUID is null.

        +
        +
        Parameters:
        +
        atom - The atom to parse.
        +
        uuid - The required UUID of the PSSH atom, or null to accept any UUID.
        +
        Returns:
        +
        The parsed scheme specific data. Null if the input is not a valid PSSH atom, or if the + PSSH atom has an unsupported version, or if the PSSH atom does not match the passed UUID.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/Track.Transformation.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/Track.Transformation.html new file mode 100644 index 00000000..a1073296 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/Track.Transformation.html @@ -0,0 +1,163 @@ + + + + + +Track.Transformation (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.mp4
+

Annotation Type Track.Transformation

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface Track.Transformation
    +
    The transformation to apply to samples in the track, if any.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/Track.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/Track.html new file mode 100644 index 00000000..2c2cedef --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/Track.html @@ -0,0 +1,518 @@ + + + + + +Track (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.mp4
+

Class Track

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.mp4.Track
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class Track
    +extends java.lang.Object
    +
    Encapsulates information describing an MP4 track.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface Track.Transformation +
      The transformation to apply to samples in the track, if any.
      +
      +
    • +
    + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Track(int id, + int type, + long timescale, + long movieTimescale, + long durationUs, + Format format, + int sampleTransformation, + TrackEncryptionBox[] sampleDescriptionEncryptionBoxes, + int nalUnitLengthFieldLength, + long[] editListDurations, + long[] editListMediaTimes) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        TRANSFORMATION_NONE

        +
        public static final int TRANSFORMATION_NONE
        +
        A no-op sample transformation.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TRANSFORMATION_CEA608_CDAT

        +
        public static final int TRANSFORMATION_CEA608_CDAT
        +
        A transformation for caption samples in cdat atoms.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        id

        +
        public final int id
        +
        The track identifier.
        +
      • +
      + + + + + + + +
        +
      • +

        timescale

        +
        public final long timescale
        +
        The track timescale, defined as the number of time units that pass in one second.
        +
      • +
      + + + +
        +
      • +

        movieTimescale

        +
        public final long movieTimescale
        +
        The movie timescale.
        +
      • +
      + + + +
        +
      • +

        durationUs

        +
        public final long durationUs
        +
        The duration of the track in microseconds, or C.TIME_UNSET if unknown.
        +
      • +
      + + + +
        +
      • +

        format

        +
        public final Format format
        +
        The format.
        +
      • +
      + + + +
        +
      • +

        sampleTransformation

        +
        public final int sampleTransformation
        +
        One of TRANSFORMATION_*. Defines the transformation to apply before outputting each + sample.
        +
      • +
      + + + +
        +
      • +

        sampleDescriptionEncryptionBoxes

        +
        public final TrackEncryptionBox[] sampleDescriptionEncryptionBoxes
        +
        Track encryption boxes for the different track sample descriptions. Entries may be null.
        +
      • +
      + + + +
        +
      • +

        editListDurations

        +
        public final long[] editListDurations
        +
        Durations of edit list segments in the movie timescale. Null if there is no edit list.
        +
      • +
      + + + +
        +
      • +

        editListMediaTimes

        +
        public final long[] editListMediaTimes
        +
        Media times for edit list segments in the track timescale. Null if there is no edit list.
        +
      • +
      + + + +
        +
      • +

        nalUnitLengthFieldLength

        +
        public final int nalUnitLengthFieldLength
        +
        For H264 video tracks, the length in bytes of the NALUnitLength field in each sample. -1 for + other track types.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Track

        +
        public Track(int id,
        +             int type,
        +             long timescale,
        +             long movieTimescale,
        +             long durationUs,
        +             Format format,
        +             int sampleTransformation,
        +             TrackEncryptionBox[] sampleDescriptionEncryptionBoxes,
        +             int nalUnitLengthFieldLength,
        +             long[] editListDurations,
        +             long[] editListMediaTimes)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/TrackEncryptionBox.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/TrackEncryptionBox.html new file mode 100644 index 00000000..60107641 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/TrackEncryptionBox.html @@ -0,0 +1,319 @@ + + + + + +TrackEncryptionBox (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.mp4
+

Class TrackEncryptionBox

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.mp4.TrackEncryptionBox
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class TrackEncryptionBox
    +extends java.lang.Object
    +
    Encapsulates information parsed from a track encryption (tenc) box or sample group description + (sgpd) box in an MP4 stream.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intinitializationVectorSize +
      The initialization vector size in bytes for the samples in the corresponding sample group.
      +
      booleanisEncrypted +
      Indicates the encryption state of the samples in the sample group.
      +
      byte[]keyId +
      The key identifier for the samples in the corresponding sample group.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TrackEncryptionBox(boolean isEncrypted, + int initializationVectorSize, + byte[] keyId) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        isEncrypted

        +
        public final boolean isEncrypted
        +
        Indicates the encryption state of the samples in the sample group.
        +
      • +
      + + + +
        +
      • +

        initializationVectorSize

        +
        public final int initializationVectorSize
        +
        The initialization vector size in bytes for the samples in the corresponding sample group.
        +
      • +
      + + + +
        +
      • +

        keyId

        +
        public final byte[] keyId
        +
        The key identifier for the samples in the corresponding sample group.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TrackEncryptionBox

        +
        public TrackEncryptionBox(boolean isEncrypted,
        +                          int initializationVectorSize,
        +                          byte[] keyId)
        +
        +
        Parameters:
        +
        isEncrypted - Indicates the encryption state of the samples in the sample group.
        +
        initializationVectorSize - The initialization vector size in bytes for the samples in the + corresponding sample group.
        +
        keyId - The key identifier for the samples in the corresponding sample group.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/package-frame.html new file mode 100644 index 00000000..a5de23af --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/package-frame.html @@ -0,0 +1,29 @@ + + + + + +com.google.android.exoplayer2.extractor.mp4 (library API) + + + + + +

com.google.android.exoplayer2.extractor.mp4

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/package-summary.html new file mode 100644 index 00000000..f72fe75e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/package-summary.html @@ -0,0 +1,190 @@ + + + + + +com.google.android.exoplayer2.extractor.mp4 (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.extractor.mp4

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    FragmentedMp4Extractor +
    Facilitates the extraction of data from the fragmented mp4 container format.
    +
    Mp4Extractor +
    Extracts data from an unfragmented MP4 file.
    +
    PsshAtomUtil +
    Utility methods for handling PSSH atoms.
    +
    Track +
    Encapsulates information describing an MP4 track.
    +
    TrackEncryptionBox +
    Encapsulates information parsed from a track encryption (tenc) box or sample group description + (sgpd) box in an MP4 stream.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + +
    Annotation Types Summary 
    Annotation TypeDescription
    FragmentedMp4Extractor.Flags +
    Flags controlling the behavior of the extractor.
    +
    Track.Transformation +
    The transformation to apply to samples in the track, if any.
    +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/package-tree.html new file mode 100644 index 00000000..1bc4c724 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/mp4/package-tree.html @@ -0,0 +1,144 @@ + + + + + +com.google.android.exoplayer2.extractor.mp4 Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.extractor.mp4

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor (implements com.google.android.exoplayer2.extractor.Extractor)
    • +
    • com.google.android.exoplayer2.extractor.mp4.Mp4Extractor (implements com.google.android.exoplayer2.extractor.Extractor, com.google.android.exoplayer2.extractor.SeekMap)
    • +
    • com.google.android.exoplayer2.extractor.mp4.PsshAtomUtil
    • +
    • com.google.android.exoplayer2.extractor.mp4.Track
    • +
    • com.google.android.exoplayer2.extractor.mp4.TrackEncryptionBox
    • +
    +
  • +
+

Annotation Type Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/OggExtractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/OggExtractor.html new file mode 100644 index 00000000..2de7d2ce --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/OggExtractor.html @@ -0,0 +1,458 @@ + + + + + +OggExtractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ogg
+

Class OggExtractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ogg.OggExtractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor
    +
    +
    +
    +
    public class OggExtractor
    +extends java.lang.Object
    +implements Extractor
    + +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OggExtractor

        +
        public OggExtractor()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/package-frame.html new file mode 100644 index 00000000..1f976e94 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.google.android.exoplayer2.extractor.ogg (library API) + + + + + +

com.google.android.exoplayer2.extractor.ogg

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/package-summary.html new file mode 100644 index 00000000..da0ff68e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/package-summary.html @@ -0,0 +1,142 @@ + + + + + +com.google.android.exoplayer2.extractor.ogg (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.extractor.ogg

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/package-tree.html new file mode 100644 index 00000000..7280e0f8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ogg/package-tree.html @@ -0,0 +1,135 @@ + + + + + +com.google.android.exoplayer2.extractor.ogg Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.extractor.ogg

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.android.exoplayer2.extractor.ogg.OggExtractor (implements com.google.android.exoplayer2.extractor.Extractor)
    • +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/package-frame.html new file mode 100644 index 00000000..fb0ee3ff --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/package-frame.html @@ -0,0 +1,39 @@ + + + + + +com.google.android.exoplayer2.extractor (library API) + + + + + +

com.google.android.exoplayer2.extractor

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/package-summary.html new file mode 100644 index 00000000..03c0c943 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/package-summary.html @@ -0,0 +1,265 @@ + + + + + +com.google.android.exoplayer2.extractor (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.extractor

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/package-tree.html new file mode 100644 index 00000000..cfee1a05 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/package-tree.html @@ -0,0 +1,154 @@ + + + + + +com.google.android.exoplayer2.extractor Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.extractor

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/RawCcExtractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/RawCcExtractor.html new file mode 100644 index 00000000..37579166 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/RawCcExtractor.html @@ -0,0 +1,427 @@ + + + + + +RawCcExtractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.rawcc
+

Class RawCcExtractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.rawcc.RawCcExtractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor
    +
    +
    +
    +
    public final class RawCcExtractor
    +extends java.lang.Object
    +implements Extractor
    +
    Extracts CEA data from a RawCC file.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RawCcExtractor

        +
        public RawCcExtractor()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/package-frame.html new file mode 100644 index 00000000..a638af58 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.google.android.exoplayer2.extractor.rawcc (library API) + + + + + +

com.google.android.exoplayer2.extractor.rawcc

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/package-summary.html new file mode 100644 index 00000000..1779c4fc --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/package-summary.html @@ -0,0 +1,142 @@ + + + + + +com.google.android.exoplayer2.extractor.rawcc (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.extractor.rawcc

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    RawCcExtractor +
    Extracts CEA data from a RawCC file.
    +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/package-tree.html new file mode 100644 index 00000000..4ece70f0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/rawcc/package-tree.html @@ -0,0 +1,135 @@ + + + + + +com.google.android.exoplayer2.extractor.rawcc Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.extractor.rawcc

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.android.exoplayer2.extractor.rawcc.RawCcExtractor (implements com.google.android.exoplayer2.extractor.Extractor)
    • +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/Ac3Extractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/Ac3Extractor.html new file mode 100644 index 00000000..7403b0a7 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/Ac3Extractor.html @@ -0,0 +1,471 @@ + + + + + +Ac3Extractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Class Ac3Extractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ts.Ac3Extractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor
    +
    +
    +
    +
    public final class Ac3Extractor
    +extends java.lang.Object
    +implements Extractor
    +
    Facilitates the extraction of AC-3 samples from elementary audio files formatted as AC-3 + bitstreams.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Ac3Extractor

        +
        public Ac3Extractor()
        +
      • +
      + + + +
        +
      • +

        Ac3Extractor

        +
        public Ac3Extractor(long firstSampleTimestampUs)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/AdtsExtractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/AdtsExtractor.html new file mode 100644 index 00000000..0a4d6163 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/AdtsExtractor.html @@ -0,0 +1,471 @@ + + + + + +AdtsExtractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Class AdtsExtractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ts.AdtsExtractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor
    +
    +
    +
    +
    public final class AdtsExtractor
    +extends java.lang.Object
    +implements Extractor
    +
    Facilitates the extraction of AAC samples from elementary audio files formatted as AAC with ADTS + headers.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AdtsExtractor

        +
        public AdtsExtractor()
        +
      • +
      + + + +
        +
      • +

        AdtsExtractor

        +
        public AdtsExtractor(long firstSampleTimestampUs)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/DefaultStreamReaderFactory.Flags.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/DefaultStreamReaderFactory.Flags.html new file mode 100644 index 00000000..9e7badbf --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/DefaultStreamReaderFactory.Flags.html @@ -0,0 +1,163 @@ + + + + + +DefaultStreamReaderFactory.Flags (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Annotation Type DefaultStreamReaderFactory.Flags

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface DefaultStreamReaderFactory.Flags
    +
    Flags controlling elementary stream readers behaviour.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/DefaultStreamReaderFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/DefaultStreamReaderFactory.html new file mode 100644 index 00000000..06f34901 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/DefaultStreamReaderFactory.html @@ -0,0 +1,416 @@ + + + + + +DefaultStreamReaderFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Class DefaultStreamReaderFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ts.DefaultStreamReaderFactory
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        FLAG_ALLOW_NON_IDR_KEYFRAMES

        +
        public static final int FLAG_ALLOW_NON_IDR_KEYFRAMES
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        FLAG_IGNORE_AAC_STREAM

        +
        public static final int FLAG_IGNORE_AAC_STREAM
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        FLAG_IGNORE_H264_STREAM

        +
        public static final int FLAG_IGNORE_H264_STREAM
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        FLAG_DETECT_ACCESS_UNITS

        +
        public static final int FLAG_DETECT_ACCESS_UNITS
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultStreamReaderFactory

        +
        public DefaultStreamReaderFactory()
        +
      • +
      + + + +
        +
      • +

        DefaultStreamReaderFactory

        +
        public DefaultStreamReaderFactory(int flags)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.EsInfo.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.EsInfo.html new file mode 100644 index 00000000..8486ed41 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.EsInfo.html @@ -0,0 +1,313 @@ + + + + + +ElementaryStreamReader.EsInfo (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Class ElementaryStreamReader.EsInfo

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.EsInfo
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    ElementaryStreamReader
    +
    +
    +
    +
    public static final class ElementaryStreamReader.EsInfo
    +extends java.lang.Object
    +
    Holds descriptor information associated with an elementary stream.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      EsInfo(int streamType, + java.lang.String language, + byte[] descriptorBytes) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        streamType

        +
        public final int streamType
        +
      • +
      + + + +
        +
      • +

        language

        +
        public java.lang.String language
        +
      • +
      + + + +
        +
      • +

        descriptorBytes

        +
        public byte[] descriptorBytes
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EsInfo

        +
        public EsInfo(int streamType,
        +              java.lang.String language,
        +              byte[] descriptorBytes)
        +
        +
        Parameters:
        +
        streamType - The type of the stream as defined by the + TsExtractor.TS_STREAM_TYPE_*.
        +
        language - The language of the stream, as defined by ISO/IEC 13818-1, section 2.6.18.
        +
        descriptorBytes - The descriptor bytes associated to the stream.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.Factory.html new file mode 100644 index 00000000..d874975f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.Factory.html @@ -0,0 +1,242 @@ + + + + + +ElementaryStreamReader.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Interface ElementaryStreamReader.Factory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createStreamReader

        +
        ElementaryStreamReader createStreamReader(int streamType,
        +                                          ElementaryStreamReader.EsInfo esInfo)
        +
        Returns an ElementaryStreamReader for a given PMT entry. May return null if the + stream type is not supported or if the stream already has a reader assigned to it.
        +
        +
        Parameters:
        +
        streamType - Stream type value as defined in the PMT entry or associated descriptors.
        +
        esInfo - Information associated to the elementary stream provided in the PMT.
        +
        Returns:
        +
        An ElementaryStreamReader for the elementary streams carried by the provided + pid. null if the stream is not supported or if it should be ignored.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.TrackIdGenerator.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.TrackIdGenerator.html new file mode 100644 index 00000000..0a8e9de2 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.TrackIdGenerator.html @@ -0,0 +1,276 @@ + + + + + +ElementaryStreamReader.TrackIdGenerator (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Class ElementaryStreamReader.TrackIdGenerator

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.TrackIdGenerator
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TrackIdGenerator(int firstId, + int idIncrement) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetNextId() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TrackIdGenerator

        +
        public TrackIdGenerator(int firstId,
        +                        int idIncrement)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getNextId

        +
        public int getNextId()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.html new file mode 100644 index 00000000..bf9d164b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.html @@ -0,0 +1,389 @@ + + + + + +ElementaryStreamReader (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Class ElementaryStreamReader

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public abstract class ElementaryStreamReader
    +extends java.lang.Object
    +
    Extracts individual samples from an elementary media stream, preserving original order.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ElementaryStreamReader

        +
        public ElementaryStreamReader()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        seek

        +
        public abstract void seek()
        +
        Notifies the reader that a seek has occurred.
        +
      • +
      + + + + + + + +
        +
      • +

        packetStarted

        +
        public abstract void packetStarted(long pesTimeUs,
        +                                   boolean dataAlignmentIndicator)
        +
        Called when a packet starts.
        +
        +
        Parameters:
        +
        pesTimeUs - The timestamp associated with the packet.
        +
        dataAlignmentIndicator - The data alignment indicator associated with the packet.
        +
        +
      • +
      + + + +
        +
      • +

        consume

        +
        public abstract void consume(ParsableByteArray data)
        +
        Consumes (possibly partial) data from the current packet.
        +
        +
        Parameters:
        +
        data - The data to consume.
        +
        +
      • +
      + + + +
        +
      • +

        packetFinished

        +
        public abstract void packetFinished()
        +
        Called when a packet ends.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/PsExtractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/PsExtractor.html new file mode 100644 index 00000000..25a8d015 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/PsExtractor.html @@ -0,0 +1,555 @@ + + + + + +PsExtractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Class PsExtractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ts.PsExtractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor
    +
    +
    +
    +
    public final class PsExtractor
    +extends java.lang.Object
    +implements Extractor
    +
    Facilitates the extraction of data from the MPEG-2 TS container format.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PsExtractor

        +
        public PsExtractor()
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/TsExtractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/TsExtractor.html new file mode 100644 index 00000000..a62c9904 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/TsExtractor.html @@ -0,0 +1,684 @@ + + + + + +TsExtractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.ts
+

Class TsExtractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.ts.TsExtractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor
    +
    +
    +
    +
    public final class TsExtractor
    +extends java.lang.Object
    +implements Extractor
    +
    Facilitates the extraction of data from the MPEG-2 TS container format.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TsExtractor

        +
        public TsExtractor()
        +
      • +
      + + + +
        +
      • +

        TsExtractor

        +
        public TsExtractor(TimestampAdjuster timestampAdjuster)
        +
        +
        Parameters:
        +
        timestampAdjuster - A timestamp adjuster for offsetting and scaling sample timestamps.
        +
        +
      • +
      + + + +
        +
      • +

        TsExtractor

        +
        public TsExtractor(TimestampAdjuster timestampAdjuster,
        +                   ElementaryStreamReader.Factory customReaderFactory,
        +                   boolean mapByType)
        +
        +
        Parameters:
        +
        timestampAdjuster - A timestamp adjuster for offsetting and scaling sample timestamps.
        +
        customReaderFactory - Factory for injecting a custom set of elementary stream readers.
        +
        mapByType - True if TrackOutputs should be mapped by their type, false to map them + by their PID.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/package-frame.html new file mode 100644 index 00000000..1acf4e4f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/package-frame.html @@ -0,0 +1,35 @@ + + + + + +com.google.android.exoplayer2.extractor.ts (library API) + + + + + +

com.google.android.exoplayer2.extractor.ts

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/package-summary.html new file mode 100644 index 00000000..f0548805 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/package-summary.html @@ -0,0 +1,220 @@ + + + + + +com.google.android.exoplayer2.extractor.ts (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.extractor.ts

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/package-tree.html new file mode 100644 index 00000000..ec005e4e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/ts/package-tree.html @@ -0,0 +1,150 @@ + + + + + +com.google.android.exoplayer2.extractor.ts Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.extractor.ts

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/WavExtractor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/WavExtractor.html new file mode 100644 index 00000000..38cccbed --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/WavExtractor.html @@ -0,0 +1,551 @@ + + + + + +WavExtractor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.extractor.wav
+

Class WavExtractor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.extractor.wav.WavExtractor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Extractor, SeekMap
    +
    +
    +
    +
    public final class WavExtractor
    +extends java.lang.Object
    +implements Extractor, SeekMap
    +
    Extractor to extract samples from a WAV byte stream.
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      WavExtractor() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longgetDurationUs() +
      Returns the duration of the stream in microseconds.
      +
      longgetPosition(long timeUs) +
      Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
      +
      voidinit(ExtractorOutput output) +
      Initializes the extractor with an ExtractorOutput.
      +
      booleanisSeekable() +
      Returns whether seeking is supported.
      +
      intread(ExtractorInput input, + PositionHolder seekPosition) +
      Extracts data read from a provided ExtractorInput.
      +
      voidrelease() +
      Releases all kept resources.
      +
      voidseek(long position) +
      Notifies the extractor that a seek has occurred.
      +
      booleansniff(ExtractorInput input) +
      Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WavExtractor

        +
        public WavExtractor()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sniff

        +
        public boolean sniff(ExtractorInput input)
        +              throws java.io.IOException,
        +                     java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. +

        + If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

        +
        +
        Specified by:
        +
        sniff in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be peeked/read.
        +
        Returns:
        +
        Whether this extractor can read the provided input.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        seek

        +
        public void seek(long position)
        +
        Description copied from interface: Extractor
        +
        Notifies the extractor that a seek has occurred. +

        + Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

        +
        +
        Specified by:
        +
        seek in interface Extractor
        +
        Parameters:
        +
        position - The seek position.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Description copied from interface: Extractor
        +
        Releases all kept resources.
        +
        +
        Specified by:
        +
        release in interface Extractor
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(ExtractorInput input,
        +                PositionHolder seekPosition)
        +         throws java.io.IOException,
        +                java.lang.InterruptedException
        +
        Description copied from interface: Extractor
        +
        Extracts data read from a provided ExtractorInput. +

        + A single call to this method will block until some progress has been made, but will not block + for longer than this. Hence each call will consume only a small amount of input data. +

        + In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the + ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned.

        +
        +
        Specified by:
        +
        read in interface Extractor
        +
        Parameters:
        +
        input - The ExtractorInput from which data should be read.
        +
        seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
        +
        Returns:
        +
        One of the RESULT_ values defined in this interface.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        public long getDurationUs()
        +
        Description copied from interface: SeekMap
        +
        Returns the duration of the stream in microseconds.
        +
        +
        Specified by:
        +
        getDurationUs in interface SeekMap
        +
        Returns:
        +
        The duration of the stream in microseconds, or C.TIME_UNSET if the + duration is unknown.
        +
        +
      • +
      + + + +
        +
      • +

        isSeekable

        +
        public boolean isSeekable()
        +
        Description copied from interface: SeekMap
        +
        Returns whether seeking is supported. +

        + If seeking is not supported then the only valid seek position is the start of the file, and so + SeekMap.getPosition(long) will return 0 for all input values.

        +
        +
        Specified by:
        +
        isSeekable in interface SeekMap
        +
        Returns:
        +
        Whether seeking is supported.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public long getPosition(long timeUs)
        +
        Description copied from interface: SeekMap
        +
        Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
        +
        +
        Specified by:
        +
        getPosition in interface SeekMap
        +
        Parameters:
        +
        timeUs - A seek position in microseconds.
        +
        Returns:
        +
        The corresponding position (byte offset) in the stream from which data can be provided + to the extractor, or 0 if #isSeekable() returns false.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/package-frame.html new file mode 100644 index 00000000..7f5aa4e8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.google.android.exoplayer2.extractor.wav (library API) + + + + + +

com.google.android.exoplayer2.extractor.wav

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/package-summary.html new file mode 100644 index 00000000..69a4634d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/package-summary.html @@ -0,0 +1,142 @@ + + + + + +com.google.android.exoplayer2.extractor.wav (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.extractor.wav

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    WavExtractor +
    Extractor to extract samples from a WAV byte stream.
    +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/package-tree.html new file mode 100644 index 00000000..536123e7 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/extractor/wav/package-tree.html @@ -0,0 +1,135 @@ + + + + + +com.google.android.exoplayer2.extractor.wav Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.extractor.wav

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.android.exoplayer2.extractor.wav.WavExtractor (implements com.google.android.exoplayer2.extractor.Extractor, com.google.android.exoplayer2.extractor.SeekMap)
    • +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.html new file mode 100644 index 00000000..d4bcbde8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.html @@ -0,0 +1,484 @@ + + + + + +MediaCodecInfo (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.mediacodec
+

Class MediaCodecInfo

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.mediacodec.MediaCodecInfo
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class MediaCodecInfo
    +extends java.lang.Object
    +
    Information about a MediaCodec for a given mime type.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      booleanadaptive +
      Whether the decoder supports seamless resolution switches.
      +
      java.lang.Stringname +
      The name of the decoder.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      android.media.MediaCodecInfo.CodecProfileLevel[]getProfileLevels() +
      The profile levels supported by the decoder.
      +
      booleanisAudioChannelCountSupportedV21(int channelCount) +
      Whether the decoder supports audio with a given channel count.
      +
      booleanisAudioSampleRateSupportedV21(int sampleRate) +
      Whether the decoder supports audio with a given sample rate.
      +
      booleanisCodecSupported(java.lang.String codec) +
      Whether the decoder supports the given codec.
      +
      booleanisVideoSizeAndRateSupportedV21(int width, + int height, + double frameRate) +
      Whether the decoder supports video with a given width, height and frame rate.
      +
      booleanisVideoSizeSupportedV21(int width, + int height) +
      Whether the decoder supports video with a specified width and height.
      +
      static MediaCodecInfonewInstance(java.lang.String name, + java.lang.String mimeType, + android.media.MediaCodecInfo.CodecCapabilities capabilities) +
      Creates an instance.
      +
      static MediaCodecInfonewPassthroughInstance(java.lang.String name) +
      Creates an instance representing an audio passthrough decoder.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        name

        +
        public final java.lang.String name
        +
        The name of the decoder. +

        + May be passed to MediaCodec.createByCodecName(String) to create an instance of the + decoder.

        +
      • +
      + + + +
        +
      • +

        adaptive

        +
        public final boolean adaptive
        +
        Whether the decoder supports seamless resolution switches.
        +
        +
        See Also:
        +
        MediaCodecInfo.CodecCapabilities.isFeatureSupported(String), +MediaCodecInfo.CodecCapabilities.FEATURE_AdaptivePlayback
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newPassthroughInstance

        +
        public static MediaCodecInfo newPassthroughInstance(java.lang.String name)
        +
        Creates an instance representing an audio passthrough decoder.
        +
        +
        Parameters:
        +
        name - The name of the MediaCodec.
        +
        Returns:
        +
        The created instance.
        +
        +
      • +
      + + + +
        +
      • +

        newInstance

        +
        public static MediaCodecInfo newInstance(java.lang.String name,
        +                                         java.lang.String mimeType,
        +                                         android.media.MediaCodecInfo.CodecCapabilities capabilities)
        +
        Creates an instance.
        +
        +
        Parameters:
        +
        name - The name of the MediaCodec.
        +
        mimeType - A mime type supported by the MediaCodec.
        +
        capabilities - The capabilities of the MediaCodec for the specified mime type.
        +
        Returns:
        +
        The created instance.
        +
        +
      • +
      + + + +
        +
      • +

        getProfileLevels

        +
        public android.media.MediaCodecInfo.CodecProfileLevel[] getProfileLevels()
        +
        The profile levels supported by the decoder.
        +
        +
        Returns:
        +
        The profile levels supported by the decoder.
        +
        +
      • +
      + + + +
        +
      • +

        isCodecSupported

        +
        public boolean isCodecSupported(java.lang.String codec)
        +
        Whether the decoder supports the given codec. If there is insufficient information to + decide, returns true.
        +
        +
        Parameters:
        +
        codec - Codec string as defined in RFC 6381.
        +
        Returns:
        +
        True if the given codec is supported by the decoder.
        +
        +
      • +
      + + + +
        +
      • +

        isVideoSizeSupportedV21

        +
        public boolean isVideoSizeSupportedV21(int width,
        +                                       int height)
        +
        Whether the decoder supports video with a specified width and height. +

        + Must not be called if the device SDK version is less than 21.

        +
        +
        Parameters:
        +
        width - Width in pixels.
        +
        height - Height in pixels.
        +
        Returns:
        +
        Whether the decoder supports video with the given width and height.
        +
        +
      • +
      + + + +
        +
      • +

        isVideoSizeAndRateSupportedV21

        +
        public boolean isVideoSizeAndRateSupportedV21(int width,
        +                                              int height,
        +                                              double frameRate)
        +
        Whether the decoder supports video with a given width, height and frame rate. +

        + Must not be called if the device SDK version is less than 21.

        +
        +
        Parameters:
        +
        width - Width in pixels.
        +
        height - Height in pixels.
        +
        frameRate - Frame rate in frames per second.
        +
        Returns:
        +
        Whether the decoder supports video with the given width, height and frame rate.
        +
        +
      • +
      + + + +
        +
      • +

        isAudioSampleRateSupportedV21

        +
        public boolean isAudioSampleRateSupportedV21(int sampleRate)
        +
        Whether the decoder supports audio with a given sample rate. +

        + Must not be called if the device SDK version is less than 21.

        +
        +
        Parameters:
        +
        sampleRate - The sample rate in Hz.
        +
        Returns:
        +
        Whether the decoder supports audio with the given sample rate.
        +
        +
      • +
      + + + +
        +
      • +

        isAudioChannelCountSupportedV21

        +
        public boolean isAudioChannelCountSupportedV21(int channelCount)
        +
        Whether the decoder supports audio with a given channel count. +

        + Must not be called if the device SDK version is less than 21.

        +
        +
        Parameters:
        +
        channelCount - The channel count.
        +
        Returns:
        +
        Whether the decoder supports audio with the given channel count.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.DecoderInitializationException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.DecoderInitializationException.html new file mode 100644 index 00000000..f18a0152 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.DecoderInitializationException.html @@ -0,0 +1,376 @@ + + + + + +MediaCodecRenderer.DecoderInitializationException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.mediacodec
+

Class MediaCodecRenderer.DecoderInitializationException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    MediaCodecRenderer
    +
    +
    +
    +
    public static class MediaCodecRenderer.DecoderInitializationException
    +extends java.lang.Exception
    +
    Thrown when a failure occurs instantiating a decoder.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.StringdecoderName +
      The name of the decoder that failed to initialize.
      +
      java.lang.StringdiagnosticInfo +
      An optional developer-readable diagnostic information string.
      +
      java.lang.StringmimeType +
      The mime type for which a decoder was being initialized.
      +
      booleansecureDecoderRequired +
      Whether it was required that the decoder support a secure output path.
      +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        mimeType

        +
        public final java.lang.String mimeType
        +
        The mime type for which a decoder was being initialized.
        +
      • +
      + + + +
        +
      • +

        secureDecoderRequired

        +
        public final boolean secureDecoderRequired
        +
        Whether it was required that the decoder support a secure output path.
        +
      • +
      + + + +
        +
      • +

        decoderName

        +
        public final java.lang.String decoderName
        +
        The name of the decoder that failed to initialize. Null if no suitable decoder was found.
        +
      • +
      + + + +
        +
      • +

        diagnosticInfo

        +
        public final java.lang.String diagnosticInfo
        +
        An optional developer-readable diagnostic information string. May be null.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DecoderInitializationException

        +
        public DecoderInitializationException(Format format,
        +                                      java.lang.Throwable cause,
        +                                      boolean secureDecoderRequired,
        +                                      int errorCode)
        +
      • +
      + + + +
        +
      • +

        DecoderInitializationException

        +
        public DecoderInitializationException(Format format,
        +                                      java.lang.Throwable cause,
        +                                      boolean secureDecoderRequired,
        +                                      java.lang.String decoderName)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.html new file mode 100644 index 00000000..73d7665f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.html @@ -0,0 +1,1076 @@ + + + + + +MediaCodecRenderer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.mediacodec
+

Class MediaCodecRenderer

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MediaCodecRenderer

        +
        public MediaCodecRenderer(int trackType,
        +                          MediaCodecSelector mediaCodecSelector,
        +                          DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
        +                          boolean playClearSamplesWithoutKeys)
        +
        +
        Parameters:
        +
        trackType - The track type that the renderer handles. One of the C.TRACK_TYPE_* + constants defined in C.
        +
        mediaCodecSelector - A decoder selector.
        +
        drmSessionManager - For use with encrypted media. May be null if support for encrypted + media is not required.
        +
        playClearSamplesWithoutKeys - Encrypted media may contain clear (un-encrypted) regions. + For example a media file may start with a short clear region so as to allow playback to + begin in parallel with key acquisition. This parameter specifies whether the renderer is + permitted to play clear regions of encrypted media files before drmSessionManager + has obtained the keys necessary to decrypt encrypted regions of the media.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        configureCodec

        +
        protected abstract void configureCodec(android.media.MediaCodec codec,
        +                                       Format format,
        +                                       android.media.MediaCrypto crypto)
        +
        Configures a newly created MediaCodec.
        +
        +
        Parameters:
        +
        codec - The MediaCodec to configure.
        +
        format - The format for which the codec is being configured.
        +
        crypto - For drm protected playbacks, a MediaCrypto to use for decryption.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        shouldInitCodec

        +
        protected boolean shouldInitCodec()
        +
      • +
      + + + +
        +
      • +

        onEnabled

        +
        protected void onEnabled(boolean joining)
        +                  throws ExoPlaybackException
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is enabled. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onEnabled in class BaseRenderer
        +
        Parameters:
        +
        joining - Whether this renderer is being enabled to join an ongoing playback.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        onPositionReset

        +
        protected void onPositionReset(long positionUs,
        +                               boolean joining)
        +                        throws ExoPlaybackException
        +
        Description copied from class: BaseRenderer
        +
        Called when the position is reset. This occurs when the renderer is enabled after + BaseRenderer.onStreamChanged(Format[]) has been called, and also when a position discontinuity + is encountered. +

        + After a position reset, the renderer's SampleStream is guaranteed to provide samples + starting from a key frame. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onPositionReset in class BaseRenderer
        +
        Parameters:
        +
        positionUs - The new playback position in microseconds.
        +
        joining - Whether this renderer is being enabled to join an ongoing playback.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        onDisabled

        +
        protected void onDisabled()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is disabled. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onDisabled in class BaseRenderer
        +
        +
      • +
      + + + +
        +
      • +

        releaseCodec

        +
        protected void releaseCodec()
        +
      • +
      + + + +
        +
      • +

        onStarted

        +
        protected void onStarted()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is started. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onStarted in class BaseRenderer
        +
        +
      • +
      + + + +
        +
      • +

        onStopped

        +
        protected void onStopped()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is stopped. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onStopped in class BaseRenderer
        +
        +
      • +
      + + + +
        +
      • +

        render

        +
        public void render(long positionUs,
        +                   long elapsedRealtimeUs)
        +            throws ExoPlaybackException
        +
        Description copied from interface: Renderer
        +
        Incrementally renders the SampleStream. +

        + If the renderer is in the Renderer.STATE_ENABLED state then each call to this method will do + work toward being ready to render the SampleStream when the renderer is started. It may + also render the very start of the media, for example the first frame of a video stream. If the + renderer is in the Renderer.STATE_STARTED state then calls to this method will render the + SampleStream in sync with the specified media positions. +

        + This method should return quickly, and should not block if the renderer is unable to make + useful progress. +

        + This method may be called when the renderer is in the following states: + Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        +
        +
        Parameters:
        +
        positionUs - The current media time in microseconds, measured at the start of the + current iteration of the rendering loop.
        +
        elapsedRealtimeUs - SystemClock.elapsedRealtime() in microseconds, + measured at the start of the current iteration of the rendering loop.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        onCodecInitialized

        +
        protected void onCodecInitialized(java.lang.String name,
        +                                  long initializedTimestampMs,
        +                                  long initializationDurationMs)
        +
        Called when a MediaCodec has been created and configured. +

        + The default implementation is a no-op.

        +
        +
        Parameters:
        +
        name - The name of the codec that was initialized.
        +
        initializedTimestampMs - SystemClock.elapsedRealtime() when initialization + finished.
        +
        initializationDurationMs - The time taken to initialize the codec in milliseconds.
        +
        +
      • +
      + + + +
        +
      • +

        onInputFormatChanged

        +
        protected void onInputFormatChanged(Format newFormat)
        +                             throws ExoPlaybackException
        +
        Called when a new format is read from the upstream MediaPeriod.
        +
        +
        Parameters:
        +
        newFormat - The new format.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs reinitializing the MediaCodec.
        +
        +
      • +
      + + + +
        +
      • +

        onOutputFormatChanged

        +
        protected void onOutputFormatChanged(android.media.MediaCodec codec,
        +                                     android.media.MediaFormat outputFormat)
        +
        Called when the output format of the MediaCodec changes. +

        + The default implementation is a no-op.

        +
        +
        Parameters:
        +
        codec - The MediaCodec instance.
        +
        outputFormat - The new output format.
        +
        +
      • +
      + + + +
        +
      • +

        onOutputStreamEnded

        +
        protected void onOutputStreamEnded()
        +
        Called when the output stream ends, meaning that the last output buffer has been processed and + the MediaCodec.BUFFER_FLAG_END_OF_STREAM flag has been propagated through the decoder. +

        + The default implementation is a no-op.

        +
      • +
      + + + +
        +
      • +

        onQueueInputBuffer

        +
        protected void onQueueInputBuffer(DecoderInputBuffer buffer)
        +
        Called immediately before an input buffer is queued into the codec. +

        + The default implementation is a no-op.

        +
        +
        Parameters:
        +
        buffer - The buffer to be queued.
        +
        +
      • +
      + + + +
        +
      • +

        onProcessedOutputBuffer

        +
        protected void onProcessedOutputBuffer(long presentationTimeUs)
        +
        Called when an output buffer is successfully processed. +

        + The default implementation is a no-op.

        +
        +
        Parameters:
        +
        presentationTimeUs - The timestamp associated with the output buffer.
        +
        +
      • +
      + + + +
        +
      • +

        canReconfigureCodec

        +
        protected boolean canReconfigureCodec(android.media.MediaCodec codec,
        +                                      boolean codecIsAdaptive,
        +                                      Format oldFormat,
        +                                      Format newFormat)
        +
        Determines whether the existing MediaCodec should be reconfigured for a new format by + sending codec specific initialization data at the start of the next input buffer. If true is + returned then the MediaCodec instance will be reconfigured in this way. If false is + returned then the instance will be released, and a new instance will be created for the new + format. +

        + The default implementation returns false.

        +
        +
        Parameters:
        +
        codec - The existing MediaCodec instance.
        +
        codecIsAdaptive - Whether the codec is adaptive.
        +
        oldFormat - The format for which the existing instance is configured.
        +
        newFormat - The new format.
        +
        Returns:
        +
        Whether the existing instance can be reconfigured.
        +
        +
      • +
      + + + +
        +
      • +

        isEnded

        +
        public boolean isEnded()
        +
        Description copied from interface: Renderer
        +
        Whether the renderer is ready for the ExoPlayer instance to transition to + ExoPlayer.STATE_ENDED. The player will make this transition as soon as true is + returned by all of its Renderers. +

        + This method may be called when the renderer is in the following states: + Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        +
        +
        Returns:
        +
        Whether the renderer is ready for the player to transition to the ended state.
        +
        +
      • +
      + + + +
        +
      • +

        isReady

        +
        public boolean isReady()
        +
        Description copied from interface: Renderer
        +
        Whether the renderer is able to immediately render media from the current position. +

        + If the renderer is in the Renderer.STATE_STARTED state then returning true indicates that the + renderer has everything that it needs to continue playback. Returning false indicates that + the player should pause until the renderer is ready. +

        + If the renderer is in the Renderer.STATE_ENABLED state then returning true indicates that the + renderer is ready for playback to be started. Returning false indicates that it is not. +

        + This method may be called when the renderer is in the following states: + Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        +
        +
        Returns:
        +
        Whether the renderer is ready to render media.
        +
        +
      • +
      + + + +
        +
      • +

        getDequeueOutputBufferTimeoutUs

        +
        protected long getDequeueOutputBufferTimeoutUs()
        +
        Returns the maximum time to block whilst waiting for a decoded output buffer.
        +
        +
        Returns:
        +
        The maximum time to block, in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        processOutputBuffer

        +
        protected abstract boolean processOutputBuffer(long positionUs,
        +                                               long elapsedRealtimeUs,
        +                                               android.media.MediaCodec codec,
        +                                               java.nio.ByteBuffer buffer,
        +                                               int bufferIndex,
        +                                               int bufferFlags,
        +                                               long bufferPresentationTimeUs,
        +                                               boolean shouldSkip)
        +                                        throws ExoPlaybackException
        +
        Processes an output media buffer. +

        + When a new ByteBuffer is passed to this method its position and limit delineate the + data to be processed. The return value indicates whether the buffer was processed in full. If + true is returned then the next call to this method will receive a new buffer to be processed. + If false is returned then the same buffer will be passed to the next call. An implementation of + this method is free to modify the buffer and can assume that the buffer will not be externally + modified between successive calls. Hence an implementation can, for example, modify the + buffer's position to keep track of how much of the data it has processed. +

        + Note that the first call to this method following a call to + onPositionReset(long, boolean) will always receive a new ByteBuffer to be + processed.

        +
        +
        Parameters:
        +
        positionUs - The current media time in microseconds, measured at the start of the + current iteration of the rendering loop.
        +
        elapsedRealtimeUs - SystemClock.elapsedRealtime() in microseconds, + measured at the start of the current iteration of the rendering loop.
        +
        codec - The MediaCodec instance.
        +
        buffer - The output buffer to process.
        +
        bufferIndex - The index of the output buffer.
        +
        bufferFlags - The flags attached to the output buffer.
        +
        bufferPresentationTimeUs - The presentation time of the output buffer in microseconds.
        +
        shouldSkip - Whether the buffer should be skipped (i.e. not rendered).
        +
        Returns:
        +
        Whether the output buffer was fully processed (e.g. rendered or skipped).
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs processing the output buffer.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecSelector.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecSelector.html new file mode 100644 index 00000000..de40db65 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecSelector.html @@ -0,0 +1,299 @@ + + + + + +MediaCodecSelector (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.mediacodec
+

Interface MediaCodecSelector

+
+
+
+
    +
  • +
    +
    +
    public interface MediaCodecSelector
    +
    Selector of MediaCodec instances.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.DecoderQueryException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.DecoderQueryException.html new file mode 100644 index 00000000..7730e4d7 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.DecoderQueryException.html @@ -0,0 +1,228 @@ + + + + + +MediaCodecUtil.DecoderQueryException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.mediacodec
+

Class MediaCodecUtil.DecoderQueryException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.mediacodec.MediaCodecUtil.DecoderQueryException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    MediaCodecUtil
    +
    +
    +
    +
    public static class MediaCodecUtil.DecoderQueryException
    +extends java.lang.Exception
    +
    Thrown when an error occurs querying the device for its underlying media capabilities. +

    + Such failures are not expected in normal operation and are normally temporary (e.g. if the + mediaserver process has crashed and is yet to restart).

    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.html new file mode 100644 index 00000000..d6e614bd --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.html @@ -0,0 +1,401 @@ + + + + + +MediaCodecUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.mediacodec
+

Class MediaCodecUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.mediacodec.MediaCodecUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class MediaCodecUtil
    +extends java.lang.Object
    +
    A utility class for querying the available codecs.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class MediaCodecUtil.DecoderQueryException +
      Thrown when an error occurs querying the device for its underlying media capabilities.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static android.util.Pair<java.lang.Integer,java.lang.Integer>getCodecProfileAndLevel(java.lang.String codec) +
      Returns profile and level (as defined by MediaCodecInfo.CodecProfileLevel) corresponding to the given + codec description string (as defined by RFC 6381).
      +
      static MediaCodecInfogetDecoderInfo(java.lang.String mimeType, + boolean secure) +
      Returns information about the preferred decoder for a given mime type.
      +
      static java.util.List<MediaCodecInfo>getDecoderInfos(java.lang.String mimeType, + boolean secure) +
      Returns all MediaCodecInfos for the given mime type, in the order given by + MediaCodecList.
      +
      static MediaCodecInfogetPassthroughDecoderInfo() +
      Returns information about a decoder suitable for audio passthrough.
      +
      static intmaxH264DecodableFrameSize() +
      Returns the maximum frame size supported by the default H264 decoder.
      +
      static voidwarmDecoderInfoCache(java.lang.String mimeType, + boolean secure) +
      Optional call to warm the codec cache for a given mime type.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        warmDecoderInfoCache

        +
        public static void warmDecoderInfoCache(java.lang.String mimeType,
        +                                        boolean secure)
        +
        Optional call to warm the codec cache for a given mime type. +

        + Calling this method may speed up subsequent calls to getDecoderInfo(String, boolean).

        +
        +
        Parameters:
        +
        mimeType - The mime type.
        +
        secure - Whether the decoder is required to support secure decryption. Always pass false + unless secure decryption really is required.
        +
        +
      • +
      + + + +
        +
      • +

        getPassthroughDecoderInfo

        +
        public static MediaCodecInfo getPassthroughDecoderInfo()
        +
        Returns information about a decoder suitable for audio passthrough.
        +
        +
        Returns:
        +
        A MediaCodecInfo describing the decoder, or null if no suitable decoder + exists.
        +
        +
      • +
      + + + +
        +
      • +

        getDecoderInfo

        +
        public static MediaCodecInfo getDecoderInfo(java.lang.String mimeType,
        +                                            boolean secure)
        +                                     throws MediaCodecUtil.DecoderQueryException
        +
        Returns information about the preferred decoder for a given mime type.
        +
        +
        Parameters:
        +
        mimeType - The mime type.
        +
        secure - Whether the decoder is required to support secure decryption. Always pass false + unless secure decryption really is required.
        +
        Returns:
        +
        A MediaCodecInfo describing the decoder, or null if no suitable decoder + exists.
        +
        Throws:
        +
        MediaCodecUtil.DecoderQueryException - If there was an error querying the available decoders.
        +
        +
      • +
      + + + +
        +
      • +

        getDecoderInfos

        +
        public static java.util.List<MediaCodecInfo> getDecoderInfos(java.lang.String mimeType,
        +                                                             boolean secure)
        +                                                      throws MediaCodecUtil.DecoderQueryException
        +
        Returns all MediaCodecInfos for the given mime type, in the order given by + MediaCodecList.
        +
        +
        Parameters:
        +
        mimeType - The mime type.
        +
        secure - Whether the decoder is required to support secure decryption. Always pass false + unless secure decryption really is required.
        +
        Returns:
        +
        A list of all @{link MediaCodecInfo}s for the given mime type, in the order + given by MediaCodecList.
        +
        Throws:
        +
        MediaCodecUtil.DecoderQueryException - If there was an error querying the available decoders.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getCodecProfileAndLevel

        +
        public static android.util.Pair<java.lang.Integer,java.lang.Integer> getCodecProfileAndLevel(java.lang.String codec)
        +
        Returns profile and level (as defined by MediaCodecInfo.CodecProfileLevel) corresponding to the given + codec description string (as defined by RFC 6381).
        +
        +
        Parameters:
        +
        codec - A codec description string, as defined by RFC 6381.
        +
        Returns:
        +
        A pair (profile constant, level constant) if codec is well-formed and + recognized, or null otherwise
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/package-frame.html new file mode 100644 index 00000000..aedf01e6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/package-frame.html @@ -0,0 +1,31 @@ + + + + + +com.google.android.exoplayer2.mediacodec (library API) + + + + + +

com.google.android.exoplayer2.mediacodec

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/package-summary.html new file mode 100644 index 00000000..9f970d58 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/package-summary.html @@ -0,0 +1,194 @@ + + + + + +com.google.android.exoplayer2.mediacodec (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.mediacodec

+
+
+
    +
  • + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    MediaCodecSelector +
    Selector of MediaCodec instances.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    MediaCodecInfo +
    Information about a MediaCodec for a given mime type.
    +
    MediaCodecRenderer +
    An abstract renderer that uses MediaCodec to decode samples for rendering.
    +
    MediaCodecUtil +
    A utility class for querying the available codecs.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + +
    Exception Summary 
    ExceptionDescription
    MediaCodecRenderer.DecoderInitializationException +
    Thrown when a failure occurs instantiating a decoder.
    +
    MediaCodecUtil.DecoderQueryException +
    Thrown when an error occurs querying the device for its underlying media capabilities.
    +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/package-tree.html new file mode 100644 index 00000000..ac5e7fb8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/mediacodec/package-tree.html @@ -0,0 +1,155 @@ + + + + + +com.google.android.exoplayer2.mediacodec Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.mediacodec

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataDecoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataDecoder.html new file mode 100644 index 00000000..589df374 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataDecoder.html @@ -0,0 +1,265 @@ + + + + + +MetadataDecoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata
+

Interface MetadataDecoder<T>

+
+
+
+
    +
  • +
    +
    Type Parameters:
    +
    T - The type of the metadata.
    +
    +
    +
    All Known Implementing Classes:
    +
    Id3Decoder
    +
    +
    +
    +
    public interface MetadataDecoder<T>
    +
    Decodes metadata from binary data.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      booleancanDecode(java.lang.String mimeType) +
      Checks whether the decoder supports a given mime type.
      +
      Tdecode(byte[] data, + int size) +
      Decodes a metadata object from the provided binary data.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        canDecode

        +
        boolean canDecode(java.lang.String mimeType)
        +
        Checks whether the decoder supports a given mime type.
        +
        +
        Parameters:
        +
        mimeType - A metadata mime type.
        +
        Returns:
        +
        Whether the mime type is supported.
        +
        +
      • +
      + + + +
        +
      • +

        decode

        +
        T decode(byte[] data,
        +         int size)
        +  throws MetadataDecoderException
        +
        Decodes a metadata object from the provided binary data.
        +
        +
        Parameters:
        +
        data - The raw binary data from which to decode the metadata.
        +
        size - The size of the input data.
        +
        Returns:
        +
        The decoded metadata object.
        +
        Throws:
        +
        MetadataDecoderException - If a problem occurred decoding the data.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataDecoderException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataDecoderException.html new file mode 100644 index 00000000..436b21ae --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataDecoderException.html @@ -0,0 +1,284 @@ + + + + + +MetadataDecoderException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata
+

Class MetadataDecoderException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.metadata.MetadataDecoderException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class MetadataDecoderException
    +extends java.lang.Exception
    +
    Thrown when an error occurs decoding metadata.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MetadataDecoderException

        +
        public MetadataDecoderException(java.lang.String message)
        +
        +
        Parameters:
        +
        message - The detail message for this exception.
        +
        +
      • +
      + + + +
        +
      • +

        MetadataDecoderException

        +
        public MetadataDecoderException(java.lang.String message,
        +                                java.lang.Throwable cause)
        +
        +
        Parameters:
        +
        message - The detail message for this exception.
        +
        cause - The cause of this exception.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataRenderer.Output.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataRenderer.Output.html new file mode 100644 index 00000000..4f0c1fd9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataRenderer.Output.html @@ -0,0 +1,237 @@ + + + + + +MetadataRenderer.Output (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata
+

Interface MetadataRenderer.Output<T>

+
+
+
+
    +
  • +
    +
    Type Parameters:
    +
    T - The type of the metadata.
    +
    +
    +
    Enclosing class:
    +
    MetadataRenderer<T>
    +
    +
    +
    +
    public static interface MetadataRenderer.Output<T>
    +
    Receives output from a MetadataRenderer.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidonMetadata(T metadata) +
      Called each time there is a metadata associated with current playback time.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        onMetadata

        +
        void onMetadata(T metadata)
        +
        Called each time there is a metadata associated with current playback time.
        +
        +
        Parameters:
        +
        metadata - The metadata.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataRenderer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataRenderer.html new file mode 100644 index 00000000..902a8dd2 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/MetadataRenderer.html @@ -0,0 +1,549 @@ + + + + + +MetadataRenderer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata
+

Class MetadataRenderer<T>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MetadataRenderer

        +
        public MetadataRenderer(MetadataRenderer.Output<T> output,
        +                        android.os.Looper outputLooper,
        +                        MetadataDecoder<T> metadataDecoder)
        +
        +
        Parameters:
        +
        output - The output.
        +
        outputLooper - The looper associated with the thread on which the output should be called. + If the output makes use of standard Android UI components, then this should normally be the + looper associated with the application's main thread, which can be obtained using + ContextWrapper.getMainLooper(). Null may be passed if the output should be + called directly on the player's internal rendering thread.
        +
        metadataDecoder - A decoder for the metadata.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/ApicFrame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/ApicFrame.html new file mode 100644 index 00000000..7fd2dca8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/ApicFrame.html @@ -0,0 +1,346 @@ + + + + + +ApicFrame (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata.id3
+

Class ApicFrame

+
+
+ +
+
    +
  • +
    +
    +
    public final class ApicFrame
    +extends Id3Frame
    +
    APIC (Attached Picture) ID3 frame.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.Stringdescription 
      static java.lang.StringID 
      java.lang.StringmimeType 
      byte[]pictureData 
      intpictureType 
      +
        +
      • + + +

        Fields inherited from class com.google.android.exoplayer2.metadata.id3.Id3Frame

        +id
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ApicFrame(java.lang.String mimeType, + java.lang.String description, + int pictureType, + byte[] pictureData) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        mimeType

        +
        public final java.lang.String mimeType
        +
      • +
      + + + +
        +
      • +

        description

        +
        public final java.lang.String description
        +
      • +
      + + + +
        +
      • +

        pictureType

        +
        public final int pictureType
        +
      • +
      + + + +
        +
      • +

        pictureData

        +
        public final byte[] pictureData
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ApicFrame

        +
        public ApicFrame(java.lang.String mimeType,
        +                 java.lang.String description,
        +                 int pictureType,
        +                 byte[] pictureData)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/BinaryFrame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/BinaryFrame.html new file mode 100644 index 00000000..a109b3f7 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/BinaryFrame.html @@ -0,0 +1,286 @@ + + + + + +BinaryFrame (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata.id3
+

Class BinaryFrame

+
+
+ +
+
    +
  • +
    +
    +
    public final class BinaryFrame
    +extends Id3Frame
    +
    Binary ID3 frame.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      byte[]data 
      +
        +
      • + + +

        Fields inherited from class com.google.android.exoplayer2.metadata.id3.Id3Frame

        +id
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      BinaryFrame(java.lang.String type, + byte[] data) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        data

        +
        public final byte[] data
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BinaryFrame

        +
        public BinaryFrame(java.lang.String type,
        +                   byte[] data)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/GeobFrame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/GeobFrame.html new file mode 100644 index 00000000..e3d24349 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/GeobFrame.html @@ -0,0 +1,346 @@ + + + + + +GeobFrame (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata.id3
+

Class GeobFrame

+
+
+ +
+
    +
  • +
    +
    +
    public final class GeobFrame
    +extends Id3Frame
    +
    GEOB (General Encapsulated Object) ID3 frame.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      byte[]data 
      java.lang.Stringdescription 
      java.lang.Stringfilename 
      static java.lang.StringID 
      java.lang.StringmimeType 
      +
        +
      • + + +

        Fields inherited from class com.google.android.exoplayer2.metadata.id3.Id3Frame

        +id
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GeobFrame(java.lang.String mimeType, + java.lang.String filename, + java.lang.String description, + byte[] data) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        mimeType

        +
        public final java.lang.String mimeType
        +
      • +
      + + + +
        +
      • +

        filename

        +
        public final java.lang.String filename
        +
      • +
      + + + +
        +
      • +

        description

        +
        public final java.lang.String description
        +
      • +
      + + + +
        +
      • +

        data

        +
        public final byte[] data
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GeobFrame

        +
        public GeobFrame(java.lang.String mimeType,
        +                 java.lang.String filename,
        +                 java.lang.String description,
        +                 byte[] data)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/Id3Decoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/Id3Decoder.html new file mode 100644 index 00000000..77684aa5 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/Id3Decoder.html @@ -0,0 +1,318 @@ + + + + + +Id3Decoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata.id3
+

Class Id3Decoder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.metadata.id3.Id3Decoder
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MetadataDecoder<java.util.List<Id3Frame>>
    +
    +
    +
    +
    public final class Id3Decoder
    +extends java.lang.Object
    +implements MetadataDecoder<java.util.List<Id3Frame>>
    +
    Decodes individual TXXX text frames from raw ID3 data.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Id3Decoder() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleancanDecode(java.lang.String mimeType) +
      Checks whether the decoder supports a given mime type.
      +
      java.util.List<Id3Frame>decode(byte[] data, + int size) +
      Decodes a metadata object from the provided binary data.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Id3Decoder

        +
        public Id3Decoder()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        canDecode

        +
        public boolean canDecode(java.lang.String mimeType)
        +
        Description copied from interface: MetadataDecoder
        +
        Checks whether the decoder supports a given mime type.
        +
        +
        Specified by:
        +
        canDecode in interface MetadataDecoder<java.util.List<Id3Frame>>
        +
        Parameters:
        +
        mimeType - A metadata mime type.
        +
        Returns:
        +
        Whether the mime type is supported.
        +
        +
      • +
      + + + +
        +
      • +

        decode

        +
        public java.util.List<Id3Frame> decode(byte[] data,
        +                                       int size)
        +                                throws MetadataDecoderException
        +
        Description copied from interface: MetadataDecoder
        +
        Decodes a metadata object from the provided binary data.
        +
        +
        Specified by:
        +
        decode in interface MetadataDecoder<java.util.List<Id3Frame>>
        +
        Parameters:
        +
        data - The raw binary data from which to decode the metadata.
        +
        size - The size of the input data.
        +
        Returns:
        +
        The decoded metadata object.
        +
        Throws:
        +
        MetadataDecoderException - If a problem occurred decoding the data.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/Id3Frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/Id3Frame.html new file mode 100644 index 00000000..a27666cb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/Id3Frame.html @@ -0,0 +1,279 @@ + + + + + +Id3Frame (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata.id3
+

Class Id3Frame

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.metadata.id3.Id3Frame
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.Stringid +
      The frame ID.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Id3Frame(java.lang.String id) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        id

        +
        public final java.lang.String id
        +
        The frame ID.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Id3Frame

        +
        public Id3Frame(java.lang.String id)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/PrivFrame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/PrivFrame.html new file mode 100644 index 00000000..9a9d5b7d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/PrivFrame.html @@ -0,0 +1,316 @@ + + + + + +PrivFrame (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata.id3
+

Class PrivFrame

+
+
+ +
+
    +
  • +
    +
    +
    public final class PrivFrame
    +extends Id3Frame
    +
    PRIV (Private) ID3 frame.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.StringID 
      java.lang.Stringowner 
      byte[]privateData 
      +
        +
      • + + +

        Fields inherited from class com.google.android.exoplayer2.metadata.id3.Id3Frame

        +id
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PrivFrame(java.lang.String owner, + byte[] privateData) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        owner

        +
        public final java.lang.String owner
        +
      • +
      + + + +
        +
      • +

        privateData

        +
        public final byte[] privateData
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PrivFrame

        +
        public PrivFrame(java.lang.String owner,
        +                 byte[] privateData)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/TextInformationFrame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/TextInformationFrame.html new file mode 100644 index 00000000..9420dc57 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/TextInformationFrame.html @@ -0,0 +1,286 @@ + + + + + +TextInformationFrame (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata.id3
+

Class TextInformationFrame

+
+
+ +
+
    +
  • +
    +
    +
    public final class TextInformationFrame
    +extends Id3Frame
    +
    Text information ("T000" - "TZZZ", excluding "TXXX") ID3 frame.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.Stringdescription 
      +
        +
      • + + +

        Fields inherited from class com.google.android.exoplayer2.metadata.id3.Id3Frame

        +id
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TextInformationFrame(java.lang.String id, + java.lang.String description) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        description

        +
        public final java.lang.String description
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TextInformationFrame

        +
        public TextInformationFrame(java.lang.String id,
        +                            java.lang.String description)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/TxxxFrame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/TxxxFrame.html new file mode 100644 index 00000000..172b10df --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/TxxxFrame.html @@ -0,0 +1,316 @@ + + + + + +TxxxFrame (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.metadata.id3
+

Class TxxxFrame

+
+
+ +
+
    +
  • +
    +
    +
    public final class TxxxFrame
    +extends Id3Frame
    +
    TXXX (User defined text information) ID3 frame.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.Stringdescription 
      static java.lang.StringID 
      java.lang.Stringvalue 
      +
        +
      • + + +

        Fields inherited from class com.google.android.exoplayer2.metadata.id3.Id3Frame

        +id
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TxxxFrame(java.lang.String description, + java.lang.String value) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        description

        +
        public final java.lang.String description
        +
      • +
      + + + +
        +
      • +

        value

        +
        public final java.lang.String value
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TxxxFrame

        +
        public TxxxFrame(java.lang.String description,
        +                 java.lang.String value)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/package-frame.html new file mode 100644 index 00000000..dc15465b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/package-frame.html @@ -0,0 +1,27 @@ + + + + + +com.google.android.exoplayer2.metadata.id3 (library API) + + + + + +

com.google.android.exoplayer2.metadata.id3

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/package-summary.html new file mode 100644 index 00000000..28ae3ae9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/package-summary.html @@ -0,0 +1,184 @@ + + + + + +com.google.android.exoplayer2.metadata.id3 (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.metadata.id3

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    ApicFrame +
    APIC (Attached Picture) ID3 frame.
    +
    BinaryFrame +
    Binary ID3 frame.
    +
    GeobFrame +
    GEOB (General Encapsulated Object) ID3 frame.
    +
    Id3Decoder +
    Decodes individual TXXX text frames from raw ID3 data.
    +
    Id3Frame +
    Base class for ID3 frames.
    +
    PrivFrame +
    PRIV (Private) ID3 frame.
    +
    TextInformationFrame +
    Text information ("T000" - "TZZZ", excluding "TXXX") ID3 frame.
    +
    TxxxFrame +
    TXXX (User defined text information) ID3 frame.
    +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/package-tree.html new file mode 100644 index 00000000..79eb5519 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/id3/package-tree.html @@ -0,0 +1,145 @@ + + + + + +com.google.android.exoplayer2.metadata.id3 Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.metadata.id3

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.android.exoplayer2.metadata.id3.Id3Decoder (implements com.google.android.exoplayer2.metadata.MetadataDecoder<T>)
    • +
    • com.google.android.exoplayer2.metadata.id3.Id3Frame +
        +
      • com.google.android.exoplayer2.metadata.id3.ApicFrame
      • +
      • com.google.android.exoplayer2.metadata.id3.BinaryFrame
      • +
      • com.google.android.exoplayer2.metadata.id3.GeobFrame
      • +
      • com.google.android.exoplayer2.metadata.id3.PrivFrame
      • +
      • com.google.android.exoplayer2.metadata.id3.TextInformationFrame
      • +
      • com.google.android.exoplayer2.metadata.id3.TxxxFrame
      • +
      +
    • +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/package-frame.html new file mode 100644 index 00000000..07a71058 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/package-frame.html @@ -0,0 +1,29 @@ + + + + + +com.google.android.exoplayer2.metadata (library API) + + + + + +

com.google.android.exoplayer2.metadata

+
+

Interfaces

+ +

Classes

+ +

Exceptions

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/package-summary.html new file mode 100644 index 00000000..c5e09bce --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/package-summary.html @@ -0,0 +1,182 @@ + + + + + +com.google.android.exoplayer2.metadata (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.metadata

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/package-tree.html new file mode 100644 index 00000000..b598ad8f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/metadata/package-tree.html @@ -0,0 +1,153 @@ + + + + + +com.google.android.exoplayer2.metadata Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.metadata

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.android.exoplayer2.BaseRenderer (implements com.google.android.exoplayer2.Renderer, com.google.android.exoplayer2.RendererCapabilities) +
        +
      • com.google.android.exoplayer2.metadata.MetadataRenderer<T> (implements android.os.Handler.Callback)
      • +
      +
    • +
    • java.lang.Throwable (implements java.io.Serializable) + +
    • +
    +
  • +
+

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/package-frame.html new file mode 100644 index 00000000..4ca9670e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/package-frame.html @@ -0,0 +1,57 @@ + + + + + +com.google.android.exoplayer2 (library API) + + + + + +

com.google.android.exoplayer2

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/package-summary.html new file mode 100644 index 00000000..9a95a372 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/package-summary.html @@ -0,0 +1,344 @@ + + + + + +com.google.android.exoplayer2 (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/package-tree.html new file mode 100644 index 00000000..97aa0305 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/package-tree.html @@ -0,0 +1,184 @@ + + + + + +com.google.android.exoplayer2 Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+
    +
  • com.google.android.exoplayer2.C.SelectionFlags (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.ContentType (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.ExoPlaybackException.Type (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.StereoMode (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.CryptoMode (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.BufferFlags (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.PcmEncoding (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.Encoding (implements java.lang.annotation.Annotation)
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/AdaptiveMediaSourceEventListener.EventDispatcher.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/AdaptiveMediaSourceEventListener.EventDispatcher.html new file mode 100644 index 00000000..1ff9c096 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/AdaptiveMediaSourceEventListener.EventDispatcher.html @@ -0,0 +1,517 @@ + + + + + +AdaptiveMediaSourceEventListener.EventDispatcher (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class AdaptiveMediaSourceEventListener.EventDispatcher

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voiddownstreamFormatChanged(int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaTimeUs) 
      voidloadCanceled(DataSpec dataSpec, + int dataType, + int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaStartTimeUs, + long mediaEndTimeUs, + long elapsedRealtimeMs, + long loadDurationMs, + long bytesLoaded) 
      voidloadCanceled(DataSpec dataSpec, + int dataType, + long elapsedRealtimeMs, + long loadDurationMs, + long bytesLoaded) 
      voidloadCompleted(DataSpec dataSpec, + int dataType, + int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaStartTimeUs, + long mediaEndTimeUs, + long elapsedRealtimeMs, + long loadDurationMs, + long bytesLoaded) 
      voidloadCompleted(DataSpec dataSpec, + int dataType, + long elapsedRealtimeMs, + long loadDurationMs, + long bytesLoaded) 
      voidloadError(DataSpec dataSpec, + int dataType, + int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaStartTimeUs, + long mediaEndTimeUs, + long elapsedRealtimeMs, + long loadDurationMs, + long bytesLoaded, + java.io.IOException error, + boolean wasCanceled) 
      voidloadError(DataSpec dataSpec, + int dataType, + long elapsedRealtimeMs, + long loadDurationMs, + long bytesLoaded, + java.io.IOException error, + boolean wasCanceled) 
      voidloadStarted(DataSpec dataSpec, + int dataType, + int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaStartTimeUs, + long mediaEndTimeUs, + long elapsedRealtimeMs) 
      voidloadStarted(DataSpec dataSpec, + int dataType, + long elapsedRealtimeMs) 
      voidupstreamDiscarded(int trackType, + long mediaStartTimeUs, + long mediaEndTimeUs) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        loadStarted

        +
        public void loadStarted(DataSpec dataSpec,
        +                        int dataType,
        +                        long elapsedRealtimeMs)
        +
      • +
      + + + +
        +
      • +

        loadStarted

        +
        public void loadStarted(DataSpec dataSpec,
        +                        int dataType,
        +                        int trackType,
        +                        Format trackFormat,
        +                        int trackSelectionReason,
        +                        java.lang.Object trackSelectionData,
        +                        long mediaStartTimeUs,
        +                        long mediaEndTimeUs,
        +                        long elapsedRealtimeMs)
        +
      • +
      + + + +
        +
      • +

        loadCompleted

        +
        public void loadCompleted(DataSpec dataSpec,
        +                          int dataType,
        +                          long elapsedRealtimeMs,
        +                          long loadDurationMs,
        +                          long bytesLoaded)
        +
      • +
      + + + +
        +
      • +

        loadCompleted

        +
        public void loadCompleted(DataSpec dataSpec,
        +                          int dataType,
        +                          int trackType,
        +                          Format trackFormat,
        +                          int trackSelectionReason,
        +                          java.lang.Object trackSelectionData,
        +                          long mediaStartTimeUs,
        +                          long mediaEndTimeUs,
        +                          long elapsedRealtimeMs,
        +                          long loadDurationMs,
        +                          long bytesLoaded)
        +
      • +
      + + + +
        +
      • +

        loadCanceled

        +
        public void loadCanceled(DataSpec dataSpec,
        +                         int dataType,
        +                         long elapsedRealtimeMs,
        +                         long loadDurationMs,
        +                         long bytesLoaded)
        +
      • +
      + + + +
        +
      • +

        loadCanceled

        +
        public void loadCanceled(DataSpec dataSpec,
        +                         int dataType,
        +                         int trackType,
        +                         Format trackFormat,
        +                         int trackSelectionReason,
        +                         java.lang.Object trackSelectionData,
        +                         long mediaStartTimeUs,
        +                         long mediaEndTimeUs,
        +                         long elapsedRealtimeMs,
        +                         long loadDurationMs,
        +                         long bytesLoaded)
        +
      • +
      + + + +
        +
      • +

        loadError

        +
        public void loadError(DataSpec dataSpec,
        +                      int dataType,
        +                      long elapsedRealtimeMs,
        +                      long loadDurationMs,
        +                      long bytesLoaded,
        +                      java.io.IOException error,
        +                      boolean wasCanceled)
        +
      • +
      + + + +
        +
      • +

        loadError

        +
        public void loadError(DataSpec dataSpec,
        +                      int dataType,
        +                      int trackType,
        +                      Format trackFormat,
        +                      int trackSelectionReason,
        +                      java.lang.Object trackSelectionData,
        +                      long mediaStartTimeUs,
        +                      long mediaEndTimeUs,
        +                      long elapsedRealtimeMs,
        +                      long loadDurationMs,
        +                      long bytesLoaded,
        +                      java.io.IOException error,
        +                      boolean wasCanceled)
        +
      • +
      + + + +
        +
      • +

        upstreamDiscarded

        +
        public void upstreamDiscarded(int trackType,
        +                              long mediaStartTimeUs,
        +                              long mediaEndTimeUs)
        +
      • +
      + + + +
        +
      • +

        downstreamFormatChanged

        +
        public void downstreamFormatChanged(int trackType,
        +                                    Format trackFormat,
        +                                    int trackSelectionReason,
        +                                    java.lang.Object trackSelectionData,
        +                                    long mediaTimeUs)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/AdaptiveMediaSourceEventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/AdaptiveMediaSourceEventListener.html new file mode 100644 index 00000000..1ad4654c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/AdaptiveMediaSourceEventListener.html @@ -0,0 +1,526 @@ + + + + + +AdaptiveMediaSourceEventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface AdaptiveMediaSourceEventListener

+
+
+
+
    +
  • +
    +
    +
    public interface AdaptiveMediaSourceEventListener
    +
    Interface for callbacks to be notified of adaptive MediaSource events.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidonDownstreamFormatChanged(int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaTimeMs) +
      Called when a downstream format change occurs (i.e.
      +
      voidonLoadCanceled(DataSpec dataSpec, + int dataType, + int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaStartTimeMs, + long mediaEndTimeMs, + long elapsedRealtimeMs, + long loadDurationMs, + long bytesLoaded) +
      Called when a load is canceled.
      +
      voidonLoadCompleted(DataSpec dataSpec, + int dataType, + int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaStartTimeMs, + long mediaEndTimeMs, + long elapsedRealtimeMs, + long loadDurationMs, + long bytesLoaded) +
      Called when a load ends.
      +
      voidonLoadError(DataSpec dataSpec, + int dataType, + int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaStartTimeMs, + long mediaEndTimeMs, + long elapsedRealtimeMs, + long loadDurationMs, + long bytesLoaded, + java.io.IOException error, + boolean wasCanceled) +
      Called when a load error occurs.
      +
      voidonLoadStarted(DataSpec dataSpec, + int dataType, + int trackType, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long mediaStartTimeMs, + long mediaEndTimeMs, + long elapsedRealtimeMs) +
      Called when a load begins.
      +
      voidonUpstreamDiscarded(int trackType, + long mediaStartTimeMs, + long mediaEndTimeMs) +
      Called when data is removed from the back of a media buffer, typically so that it can be + re-buffered in a different format.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onLoadStarted

        +
        void onLoadStarted(DataSpec dataSpec,
        +                   int dataType,
        +                   int trackType,
        +                   Format trackFormat,
        +                   int trackSelectionReason,
        +                   java.lang.Object trackSelectionData,
        +                   long mediaStartTimeMs,
        +                   long mediaEndTimeMs,
        +                   long elapsedRealtimeMs)
        +
        Called when a load begins.
        +
        +
        Parameters:
        +
        dataSpec - Defines the data being loaded.
        +
        dataType - One of the C DATA_TYPE_* constants defining the type of data + being loaded.
        +
        trackType - One of the C TRACK_TYPE_* constants if the data corresponds + to media of a specific type. C.TRACK_TYPE_UNKNOWN otherwise.
        +
        trackFormat - The format of the track to which the data belongs. Null if the data does + not belong to a track.
        +
        trackSelectionReason - One of the C SELECTION_REASON_* constants if the + data belongs to a track. C.SELECTION_REASON_UNKNOWN otherwise.
        +
        trackSelectionData - Optional data associated with the selection of the track to which the + data belongs. Null if the data does not belong to a track.
        +
        mediaStartTimeMs - The start time of the media being loaded, or C.TIME_UNSET if + the load is not for media data.
        +
        mediaEndTimeMs - The end time of the media being loaded, or C.TIME_UNSET if the + load is not for media data.
        +
        elapsedRealtimeMs - The value of SystemClock.elapsedRealtime() when the load began.
        +
        +
      • +
      + + + +
        +
      • +

        onLoadCompleted

        +
        void onLoadCompleted(DataSpec dataSpec,
        +                     int dataType,
        +                     int trackType,
        +                     Format trackFormat,
        +                     int trackSelectionReason,
        +                     java.lang.Object trackSelectionData,
        +                     long mediaStartTimeMs,
        +                     long mediaEndTimeMs,
        +                     long elapsedRealtimeMs,
        +                     long loadDurationMs,
        +                     long bytesLoaded)
        +
        Called when a load ends.
        +
        +
        Parameters:
        +
        dataSpec - Defines the data being loaded.
        +
        dataType - One of the C DATA_TYPE_* constants defining the type of data + being loaded.
        +
        trackType - One of the C TRACK_TYPE_* constants if the data corresponds + to media of a specific type. C.TRACK_TYPE_UNKNOWN otherwise.
        +
        trackFormat - The format of the track to which the data belongs. Null if the data does + not belong to a track.
        +
        trackSelectionReason - One of the C SELECTION_REASON_* constants if the + data belongs to a track. C.SELECTION_REASON_UNKNOWN otherwise.
        +
        trackSelectionData - Optional data associated with the selection of the track to which the + data belongs. Null if the data does not belong to a track.
        +
        mediaStartTimeMs - The start time of the media being loaded, or C.TIME_UNSET if + the load is not for media data.
        +
        mediaEndTimeMs - The end time of the media being loaded, or C.TIME_UNSET if the + load is not for media data.
        +
        elapsedRealtimeMs - The value of SystemClock.elapsedRealtime() when the load ended.
        +
        loadDurationMs - The duration of the load.
        +
        bytesLoaded - The number of bytes that were loaded.
        +
        +
      • +
      + + + +
        +
      • +

        onLoadCanceled

        +
        void onLoadCanceled(DataSpec dataSpec,
        +                    int dataType,
        +                    int trackType,
        +                    Format trackFormat,
        +                    int trackSelectionReason,
        +                    java.lang.Object trackSelectionData,
        +                    long mediaStartTimeMs,
        +                    long mediaEndTimeMs,
        +                    long elapsedRealtimeMs,
        +                    long loadDurationMs,
        +                    long bytesLoaded)
        +
        Called when a load is canceled.
        +
        +
        Parameters:
        +
        dataSpec - Defines the data being loaded.
        +
        dataType - One of the C DATA_TYPE_* constants defining the type of data + being loaded.
        +
        trackType - One of the C TRACK_TYPE_* constants if the data corresponds + to media of a specific type. C.TRACK_TYPE_UNKNOWN otherwise.
        +
        trackFormat - The format of the track to which the data belongs. Null if the data does + not belong to a track.
        +
        trackSelectionReason - One of the C SELECTION_REASON_* constants if the + data belongs to a track. C.SELECTION_REASON_UNKNOWN otherwise.
        +
        trackSelectionData - Optional data associated with the selection of the track to which the + data belongs. Null if the data does not belong to a track.
        +
        mediaStartTimeMs - The start time of the media being loaded, or C.TIME_UNSET if + the load is not for media data.
        +
        mediaEndTimeMs - The end time of the media being loaded, or C.TIME_UNSET if the + load is not for media data.
        +
        elapsedRealtimeMs - The value of SystemClock.elapsedRealtime() when the load was + canceled.
        +
        loadDurationMs - The duration of the load up to the point at which it was canceled.
        +
        bytesLoaded - The number of bytes that were loaded prior to cancelation.
        +
        +
      • +
      + + + +
        +
      • +

        onLoadError

        +
        void onLoadError(DataSpec dataSpec,
        +                 int dataType,
        +                 int trackType,
        +                 Format trackFormat,
        +                 int trackSelectionReason,
        +                 java.lang.Object trackSelectionData,
        +                 long mediaStartTimeMs,
        +                 long mediaEndTimeMs,
        +                 long elapsedRealtimeMs,
        +                 long loadDurationMs,
        +                 long bytesLoaded,
        +                 java.io.IOException error,
        +                 boolean wasCanceled)
        +
        Called when a load error occurs. +

        + The error may or may not have resulted in the load being canceled, as indicated by the + wasCanceled parameter. If the load was canceled, onLoadCanceled(com.google.android.exoplayer2.upstream.DataSpec, int, int, com.google.android.exoplayer2.Format, int, java.lang.Object, long, long, long, long, long) will + not be called in addition to this method.

        +
        +
        Parameters:
        +
        dataSpec - Defines the data being loaded.
        +
        dataType - One of the C DATA_TYPE_* constants defining the type of data + being loaded.
        +
        trackType - One of the C TRACK_TYPE_* constants if the data corresponds + to media of a specific type. C.TRACK_TYPE_UNKNOWN otherwise.
        +
        trackFormat - The format of the track to which the data belongs. Null if the data does + not belong to a track.
        +
        trackSelectionReason - One of the C SELECTION_REASON_* constants if the + data belongs to a track. C.SELECTION_REASON_UNKNOWN otherwise.
        +
        trackSelectionData - Optional data associated with the selection of the track to which the + data belongs. Null if the data does not belong to a track.
        +
        mediaStartTimeMs - The start time of the media being loaded, or C.TIME_UNSET if + the load is not for media data.
        +
        mediaEndTimeMs - The end time of the media being loaded, or C.TIME_UNSET if the + load is not for media data.
        +
        elapsedRealtimeMs - The value of SystemClock.elapsedRealtime() when the error + occurred.
        +
        loadDurationMs - The duration of the load up to the point at which the error occurred.
        +
        bytesLoaded - The number of bytes that were loaded prior to the error.
        +
        error - The load error.
        +
        wasCanceled - Whether the load was canceled as a result of the error.
        +
        +
      • +
      + + + +
        +
      • +

        onUpstreamDiscarded

        +
        void onUpstreamDiscarded(int trackType,
        +                         long mediaStartTimeMs,
        +                         long mediaEndTimeMs)
        +
        Called when data is removed from the back of a media buffer, typically so that it can be + re-buffered in a different format.
        +
        +
        Parameters:
        +
        trackType - The type of the media. One of the C TRACK_TYPE_* constants.
        +
        mediaStartTimeMs - The start time of the media being discarded.
        +
        mediaEndTimeMs - The end time of the media being discarded.
        +
        +
      • +
      + + + +
        +
      • +

        onDownstreamFormatChanged

        +
        void onDownstreamFormatChanged(int trackType,
        +                               Format trackFormat,
        +                               int trackSelectionReason,
        +                               java.lang.Object trackSelectionData,
        +                               long mediaTimeMs)
        +
        Called when a downstream format change occurs (i.e. when the format of the media being read + from one or more SampleStreams provided by the source changes).
        +
        +
        Parameters:
        +
        trackType - The type of the media. One of the C TRACK_TYPE_* constants.
        +
        trackFormat - The format of the track to which the data belongs. Null if the data does + not belong to a track.
        +
        trackSelectionReason - One of the C SELECTION_REASON_* constants if the + data belongs to a track. C.SELECTION_REASON_UNKNOWN otherwise.
        +
        trackSelectionData - Optional data associated with the selection of the track to which the + data belongs. Null if the data does not belong to a track.
        +
        mediaTimeMs - The media time at which the change occurred.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/BehindLiveWindowException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/BehindLiveWindowException.html new file mode 100644 index 00000000..261132fa --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/BehindLiveWindowException.html @@ -0,0 +1,266 @@ + + + + + +BehindLiveWindowException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class BehindLiveWindowException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.source.BehindLiveWindowException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public final class BehindLiveWindowException
    +extends java.io.IOException
    +
    Thrown when a live playback falls behind the available media window.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BehindLiveWindowException

        +
        public BehindLiveWindowException()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/CompositeSequenceableLoader.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/CompositeSequenceableLoader.html new file mode 100644 index 00000000..16ef2461 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/CompositeSequenceableLoader.html @@ -0,0 +1,324 @@ + + + + + +CompositeSequenceableLoader (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class CompositeSequenceableLoader

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.CompositeSequenceableLoader
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ConcatenatingMediaSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ConcatenatingMediaSource.html new file mode 100644 index 00000000..336e4647 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ConcatenatingMediaSource.html @@ -0,0 +1,408 @@ + + + + + +ConcatenatingMediaSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class ConcatenatingMediaSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.ConcatenatingMediaSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MediaSource
    +
    +
    +
    +
    public final class ConcatenatingMediaSource
    +extends java.lang.Object
    +implements MediaSource
    +
    Concatenates multiple MediaSources. It is valid for the same MediaSource instance + to be present more than once in the concatenation.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConcatenatingMediaSource

        +
        public ConcatenatingMediaSource(MediaSource... mediaSources)
        +
        +
        Parameters:
        +
        mediaSources - The MediaSources to concatenate. It is valid for the same + MediaSource instance to be present more than once in the array.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        prepareSource

        +
        public void prepareSource(MediaSource.Listener listener)
        +
        Description copied from interface: MediaSource
        +
        Starts preparation of the source.
        +
        +
        Specified by:
        +
        prepareSource in interface MediaSource
        +
        Parameters:
        +
        listener - The listener for source events.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowSourceInfoRefreshError

        +
        public void maybeThrowSourceInfoRefreshError()
        +                                      throws java.io.IOException
        +
        Description copied from interface: MediaSource
        +
        Throws any pending error encountered while loading or refreshing source information.
        +
        +
        Specified by:
        +
        maybeThrowSourceInfoRefreshError in interface MediaSource
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        createPeriod

        +
        public MediaPeriod createPeriod(int index,
        +                                Allocator allocator,
        +                                long positionUs)
        +
        Description copied from interface: MediaSource
        +
        Returns a MediaPeriod corresponding to the period at the specified index.
        +
        +
        Specified by:
        +
        createPeriod in interface MediaSource
        +
        Parameters:
        +
        index - The index of the period.
        +
        allocator - An Allocator from which to obtain media buffer allocations.
        +
        positionUs - The player's current playback position.
        +
        Returns:
        +
        A new MediaPeriod.
        +
        +
      • +
      + + + +
        +
      • +

        releasePeriod

        +
        public void releasePeriod(MediaPeriod mediaPeriod)
        +
        Description copied from interface: MediaSource
        +
        Releases the period.
        +
        +
        Specified by:
        +
        releasePeriod in interface MediaSource
        +
        Parameters:
        +
        mediaPeriod - The period to release.
        +
        +
      • +
      + + + +
        +
      • +

        releaseSource

        +
        public void releaseSource()
        +
        Description copied from interface: MediaSource
        +
        Releases the source. +

        + This method should be called when the source is no longer required. It may be called in any + state.

        +
        +
        Specified by:
        +
        releaseSource in interface MediaSource
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ExtractorMediaSource.EventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ExtractorMediaSource.EventListener.html new file mode 100644 index 00000000..1ac76439 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ExtractorMediaSource.EventListener.html @@ -0,0 +1,231 @@ + + + + + +ExtractorMediaSource.EventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface ExtractorMediaSource.EventListener

+
+
+
+ +
+
+
    +
  • + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onLoadError

        +
        void onLoadError(java.io.IOException error)
        +
        Called when an error occurs loading media data.
        +
        +
        Parameters:
        +
        error - The load error.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ExtractorMediaSource.UnrecognizedInputFormatException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ExtractorMediaSource.UnrecognizedInputFormatException.html new file mode 100644 index 00000000..02b40160 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ExtractorMediaSource.UnrecognizedInputFormatException.html @@ -0,0 +1,275 @@ + + + + + +ExtractorMediaSource.UnrecognizedInputFormatException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class ExtractorMediaSource.UnrecognizedInputFormatException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • + +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    ExtractorMediaSource
    +
    +
    +
    +
    public static final class ExtractorMediaSource.UnrecognizedInputFormatException
    +extends ParserException
    +
    Thrown if the input format could not recognized.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UnrecognizedInputFormatException

        +
        public UnrecognizedInputFormatException(Extractor[] extractors)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ExtractorMediaSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ExtractorMediaSource.html new file mode 100644 index 00000000..d7ac873d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/ExtractorMediaSource.html @@ -0,0 +1,593 @@ + + + + + +ExtractorMediaSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class ExtractorMediaSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.ExtractorMediaSource
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MIN_LOADABLE_RETRY_COUNT_ON_DEMAND

        +
        public static final int DEFAULT_MIN_LOADABLE_RETRY_COUNT_ON_DEMAND
        +
        The default minimum number of times to retry loading prior to failing for on-demand streams.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_MIN_LOADABLE_RETRY_COUNT_LIVE

        +
        public static final int DEFAULT_MIN_LOADABLE_RETRY_COUNT_LIVE
        +
        The default minimum number of times to retry loading prior to failing for live streams.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ExtractorMediaSource

        +
        public ExtractorMediaSource(android.net.Uri uri,
        +                            DataSource.Factory dataSourceFactory,
        +                            ExtractorsFactory extractorsFactory,
        +                            android.os.Handler eventHandler,
        +                            ExtractorMediaSource.EventListener eventListener)
        +
        +
        Parameters:
        +
        uri - The Uri of the media stream.
        +
        dataSourceFactory - A factory for DataSources to read the media.
        +
        extractorsFactory - A factory for Extractors to process the media stream. If the + possible formats are known, pass a factory that instantiates extractors for those formats. + Otherwise, pass a DefaultExtractorsFactory to use default extractors.
        +
        eventHandler - A handler for events. May be null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        +
      • +
      + + + +
        +
      • +

        ExtractorMediaSource

        +
        public ExtractorMediaSource(android.net.Uri uri,
        +                            DataSource.Factory dataSourceFactory,
        +                            ExtractorsFactory extractorsFactory,
        +                            int minLoadableRetryCount,
        +                            android.os.Handler eventHandler,
        +                            ExtractorMediaSource.EventListener eventListener)
        +
        +
        Parameters:
        +
        uri - The Uri of the media stream.
        +
        dataSourceFactory - A factory for DataSources to read the media.
        +
        extractorsFactory - A factory for Extractors to process the media stream. If the + possible formats are known, pass a factory that instantiates extractors for those formats. + Otherwise, pass a DefaultExtractorsFactory to use default extractors.
        +
        minLoadableRetryCount - The minimum number of times to retry if a loading error occurs.
        +
        eventHandler - A handler for events. May be null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        prepareSource

        +
        public void prepareSource(MediaSource.Listener listener)
        +
        Description copied from interface: MediaSource
        +
        Starts preparation of the source.
        +
        +
        Specified by:
        +
        prepareSource in interface MediaSource
        +
        Parameters:
        +
        listener - The listener for source events.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowSourceInfoRefreshError

        +
        public void maybeThrowSourceInfoRefreshError()
        +                                      throws java.io.IOException
        +
        Description copied from interface: MediaSource
        +
        Throws any pending error encountered while loading or refreshing source information.
        +
        +
        Specified by:
        +
        maybeThrowSourceInfoRefreshError in interface MediaSource
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        createPeriod

        +
        public MediaPeriod createPeriod(int index,
        +                                Allocator allocator,
        +                                long positionUs)
        +
        Description copied from interface: MediaSource
        +
        Returns a MediaPeriod corresponding to the period at the specified index.
        +
        +
        Specified by:
        +
        createPeriod in interface MediaSource
        +
        Parameters:
        +
        index - The index of the period.
        +
        allocator - An Allocator from which to obtain media buffer allocations.
        +
        positionUs - The player's current playback position.
        +
        Returns:
        +
        A new MediaPeriod.
        +
        +
      • +
      + + + +
        +
      • +

        releasePeriod

        +
        public void releasePeriod(MediaPeriod mediaPeriod)
        +
        Description copied from interface: MediaSource
        +
        Releases the period.
        +
        +
        Specified by:
        +
        releasePeriod in interface MediaSource
        +
        Parameters:
        +
        mediaPeriod - The period to release.
        +
        +
      • +
      + + + +
        +
      • +

        releaseSource

        +
        public void releaseSource()
        +
        Description copied from interface: MediaSource
        +
        Releases the source. +

        + This method should be called when the source is no longer required. It may be called in any + state.

        +
        +
        Specified by:
        +
        releaseSource in interface MediaSource
        +
        +
      • +
      + + + +
        +
      • +

        onSourceInfoRefreshed

        +
        public void onSourceInfoRefreshed(Timeline newTimeline,
        +                                  java.lang.Object manifest)
        +
        Description copied from interface: MediaSource.Listener
        +
        Called when manifest and/or timeline has been refreshed.
        +
        +
        Specified by:
        +
        onSourceInfoRefreshed in interface MediaSource.Listener
        +
        Parameters:
        +
        newTimeline - The source's timeline.
        +
        manifest - The loaded manifest.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/LoopingMediaSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/LoopingMediaSource.html new file mode 100644 index 00000000..4256f316 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/LoopingMediaSource.html @@ -0,0 +1,433 @@ + + + + + +LoopingMediaSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class LoopingMediaSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.LoopingMediaSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MediaSource
    +
    +
    +
    +
    public final class LoopingMediaSource
    +extends java.lang.Object
    +implements MediaSource
    +
    Loops a MediaSource.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LoopingMediaSource

        +
        public LoopingMediaSource(MediaSource childSource)
        +
        Loops the provided source indefinitely.
        +
        +
        Parameters:
        +
        childSource - The MediaSource to loop.
        +
        +
      • +
      + + + +
        +
      • +

        LoopingMediaSource

        +
        public LoopingMediaSource(MediaSource childSource,
        +                          int loopCount)
        +
        Loops the provided source a specified number of times.
        +
        +
        Parameters:
        +
        childSource - The MediaSource to loop.
        +
        loopCount - The desired number of loops. Must be strictly positive. The actual number of + loops will be capped at the maximum value that can achieved without causing the number of + periods exposed by the source to exceed Integer.MAX_VALUE.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        prepareSource

        +
        public void prepareSource(MediaSource.Listener listener)
        +
        Description copied from interface: MediaSource
        +
        Starts preparation of the source.
        +
        +
        Specified by:
        +
        prepareSource in interface MediaSource
        +
        Parameters:
        +
        listener - The listener for source events.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowSourceInfoRefreshError

        +
        public void maybeThrowSourceInfoRefreshError()
        +                                      throws java.io.IOException
        +
        Description copied from interface: MediaSource
        +
        Throws any pending error encountered while loading or refreshing source information.
        +
        +
        Specified by:
        +
        maybeThrowSourceInfoRefreshError in interface MediaSource
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        createPeriod

        +
        public MediaPeriod createPeriod(int index,
        +                                Allocator allocator,
        +                                long positionUs)
        +
        Description copied from interface: MediaSource
        +
        Returns a MediaPeriod corresponding to the period at the specified index.
        +
        +
        Specified by:
        +
        createPeriod in interface MediaSource
        +
        Parameters:
        +
        index - The index of the period.
        +
        allocator - An Allocator from which to obtain media buffer allocations.
        +
        positionUs - The player's current playback position.
        +
        Returns:
        +
        A new MediaPeriod.
        +
        +
      • +
      + + + +
        +
      • +

        releasePeriod

        +
        public void releasePeriod(MediaPeriod mediaPeriod)
        +
        Description copied from interface: MediaSource
        +
        Releases the period.
        +
        +
        Specified by:
        +
        releasePeriod in interface MediaSource
        +
        Parameters:
        +
        mediaPeriod - The period to release.
        +
        +
      • +
      + + + +
        +
      • +

        releaseSource

        +
        public void releaseSource()
        +
        Description copied from interface: MediaSource
        +
        Releases the source. +

        + This method should be called when the source is no longer required. It may be called in any + state.

        +
        +
        Specified by:
        +
        releaseSource in interface MediaSource
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaPeriod.Callback.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaPeriod.Callback.html new file mode 100644 index 00000000..1c4ac84f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaPeriod.Callback.html @@ -0,0 +1,247 @@ + + + + + +MediaPeriod.Callback (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface MediaPeriod.Callback

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaPeriod.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaPeriod.html new file mode 100644 index 00000000..6f965ba8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaPeriod.html @@ -0,0 +1,432 @@ + + + + + +MediaPeriod (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface MediaPeriod

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        prepare

        +
        void prepare(MediaPeriod.Callback callback)
        +
        Prepares this media period asynchronously. +

        + callback.onPrepared is called when preparation completes. If preparation fails, + maybeThrowPrepareError() will throw an IOException.

        +
        +
        Parameters:
        +
        callback - Callback to receive updates from this period, including being notified when + preparation completes.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowPrepareError

        +
        void maybeThrowPrepareError()
        +                     throws java.io.IOException
        +
        Throws an error that's preventing the period from becoming prepared. Does nothing if no such + error exists. +

        + This method should only be called before the period has completed preparation.

        +
        +
        Throws:
        +
        java.io.IOException - The underlying error.
        +
        +
      • +
      + + + +
        +
      • +

        getTrackGroups

        +
        TrackGroupArray getTrackGroups()
        +
        Returns the TrackGroups exposed by the period. +

        + This method should only be called after the period has been prepared.

        +
        +
        Returns:
        +
        The TrackGroups.
        +
        +
      • +
      + + + +
        +
      • +

        selectTracks

        +
        long selectTracks(TrackSelection[] selections,
        +                  boolean[] mayRetainStreamFlags,
        +                  SampleStream[] streams,
        +                  boolean[] streamResetFlags,
        +                  long positionUs)
        +
        Performs a track selection. +

        + The call receives track selections for each renderer, mayRetainStreamFlags + indicating whether the existing SampleStream can be retained for each selection, and + the existing streams themselves. The call will update streams to reflect the + provided selections, clearing, setting and replacing entries as required. If an existing sample + stream is retained but with the requirement that the consuming renderer be reset, then the + corresponding flag in streamResetFlags will be set to true. This flag will also be set + if a new sample stream is created. +

        + This method should only be called after the period has been prepared.

        +
        +
        Parameters:
        +
        selections - The renderer track selections.
        +
        mayRetainStreamFlags - Flags indicating whether the existing sample stream can be retained + for each selection. A true value indicates that the selection is unchanged, and + that the caller does not require that the sample stream be recreated.
        +
        streams - The existing sample streams, which will be updated to reflect the provided + selections.
        +
        streamResetFlags - Will be updated to indicate new sample streams, and sample streams that + have been retained but with the requirement that the consuming renderer be reset.
        +
        positionUs - The current playback position in microseconds.
        +
        Returns:
        +
        The actual position at which the tracks were enabled, in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        readDiscontinuity

        +
        long readDiscontinuity()
        +
        Attempts to read a discontinuity. +

        + After this method has returned a value other than C.TIME_UNSET, all + SampleStreams provided by the period are guaranteed to start from a key frame.

        +
        +
        Returns:
        +
        If a discontinuity was read then the playback position in microseconds after the + discontinuity. Else C.TIME_UNSET.
        +
        +
      • +
      + + + +
        +
      • +

        getBufferedPositionUs

        +
        long getBufferedPositionUs()
        +
        Returns an estimate of the position up to which data is buffered for the enabled tracks. +

        + This method should only be called when at least one track is selected.

        +
        +
        Returns:
        +
        An estimate of the absolute position in microseconds up to which data is buffered, or + C.TIME_END_OF_SOURCE if the track is fully buffered.
        +
        +
      • +
      + + + +
        +
      • +

        seekToUs

        +
        long seekToUs(long positionUs)
        +
        Attempts to seek to the specified position in microseconds. +

        + After this method has been called, all SampleStreams provided by the period are + guaranteed to start from a key frame. +

        + This method should only be called when at least one track is selected.

        +
        +
        Parameters:
        +
        positionUs - The seek position in microseconds.
        +
        Returns:
        +
        The actual position to which the period was seeked, in microseconds.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaSource.Listener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaSource.Listener.html new file mode 100644 index 00000000..f6efb5b4 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaSource.Listener.html @@ -0,0 +1,238 @@ + + + + + +MediaSource.Listener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface MediaSource.Listener

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    ExtractorMediaSource
    +
    +
    +
    Enclosing interface:
    +
    MediaSource
    +
    +
    +
    +
    public static interface MediaSource.Listener
    +
    Listener for source events.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onSourceInfoRefreshed

        +
        void onSourceInfoRefreshed(Timeline timeline,
        +                           java.lang.Object manifest)
        +
        Called when manifest and/or timeline has been refreshed.
        +
        +
        Parameters:
        +
        timeline - The source's timeline.
        +
        manifest - The loaded manifest.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaSource.html new file mode 100644 index 00000000..7a4f2fb9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MediaSource.html @@ -0,0 +1,340 @@ + + + + + +MediaSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface MediaSource

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        prepareSource

        +
        void prepareSource(MediaSource.Listener listener)
        +
        Starts preparation of the source.
        +
        +
        Parameters:
        +
        listener - The listener for source events.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowSourceInfoRefreshError

        +
        void maybeThrowSourceInfoRefreshError()
        +                               throws java.io.IOException
        +
        Throws any pending error encountered while loading or refreshing source information.
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        createPeriod

        +
        MediaPeriod createPeriod(int index,
        +                         Allocator allocator,
        +                         long positionUs)
        +
        Returns a MediaPeriod corresponding to the period at the specified index.
        +
        +
        Parameters:
        +
        index - The index of the period.
        +
        allocator - An Allocator from which to obtain media buffer allocations.
        +
        positionUs - The player's current playback position.
        +
        Returns:
        +
        A new MediaPeriod.
        +
        +
      • +
      + + + +
        +
      • +

        releasePeriod

        +
        void releasePeriod(MediaPeriod mediaPeriod)
        +
        Releases the period.
        +
        +
        Parameters:
        +
        mediaPeriod - The period to release.
        +
        +
      • +
      + + + +
        +
      • +

        releaseSource

        +
        void releaseSource()
        +
        Releases the source. +

        + This method should be called when the source is no longer required. It may be called in any + state.

        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MergingMediaSource.IllegalMergeException.Reason.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MergingMediaSource.IllegalMergeException.Reason.html new file mode 100644 index 00000000..56f13d72 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MergingMediaSource.IllegalMergeException.Reason.html @@ -0,0 +1,163 @@ + + + + + +MergingMediaSource.IllegalMergeException.Reason (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Annotation Type MergingMediaSource.IllegalMergeException.Reason

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface MergingMediaSource.IllegalMergeException.Reason
    +
    The reason the merge failed.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MergingMediaSource.IllegalMergeException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MergingMediaSource.IllegalMergeException.html new file mode 100644 index 00000000..8491029c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MergingMediaSource.IllegalMergeException.html @@ -0,0 +1,376 @@ + + + + + +MergingMediaSource.IllegalMergeException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class MergingMediaSource.IllegalMergeException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.source.MergingMediaSource.IllegalMergeException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    MergingMediaSource
    +
    +
    +
    +
    public static final class MergingMediaSource.IllegalMergeException
    +extends java.io.IOException
    +
    Thrown when a MergingMediaSource cannot merge its sources.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intreason +
      The reason the merge failed.
      +
      static intREASON_PERIOD_COUNT_MISMATCH +
      The merge failed because the sources have different period counts.
      +
      static intREASON_WINDOWS_ARE_DYNAMIC +
      The merge failed because one of the sources being merged has a dynamic window.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      IllegalMergeException(int reason) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MergingMediaSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MergingMediaSource.html new file mode 100644 index 00000000..78f9aea8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/MergingMediaSource.html @@ -0,0 +1,422 @@ + + + + + +MergingMediaSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class MergingMediaSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.MergingMediaSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MediaSource
    +
    +
    +
    +
    public final class MergingMediaSource
    +extends java.lang.Object
    +implements MediaSource
    +
    Merges multiple MediaSources. +

    + The Timelines of the sources being merged must have the same number of periods, and must + not have any dynamic windows.

    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MergingMediaSource

        +
        public MergingMediaSource(MediaSource... mediaSources)
        +
        +
        Parameters:
        +
        mediaSources - The MediaSources to merge.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        prepareSource

        +
        public void prepareSource(MediaSource.Listener listener)
        +
        Description copied from interface: MediaSource
        +
        Starts preparation of the source.
        +
        +
        Specified by:
        +
        prepareSource in interface MediaSource
        +
        Parameters:
        +
        listener - The listener for source events.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowSourceInfoRefreshError

        +
        public void maybeThrowSourceInfoRefreshError()
        +                                      throws java.io.IOException
        +
        Description copied from interface: MediaSource
        +
        Throws any pending error encountered while loading or refreshing source information.
        +
        +
        Specified by:
        +
        maybeThrowSourceInfoRefreshError in interface MediaSource
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        createPeriod

        +
        public MediaPeriod createPeriod(int index,
        +                                Allocator allocator,
        +                                long positionUs)
        +
        Description copied from interface: MediaSource
        +
        Returns a MediaPeriod corresponding to the period at the specified index.
        +
        +
        Specified by:
        +
        createPeriod in interface MediaSource
        +
        Parameters:
        +
        index - The index of the period.
        +
        allocator - An Allocator from which to obtain media buffer allocations.
        +
        positionUs - The player's current playback position.
        +
        Returns:
        +
        A new MediaPeriod.
        +
        +
      • +
      + + + +
        +
      • +

        releasePeriod

        +
        public void releasePeriod(MediaPeriod mediaPeriod)
        +
        Description copied from interface: MediaSource
        +
        Releases the period.
        +
        +
        Specified by:
        +
        releasePeriod in interface MediaSource
        +
        Parameters:
        +
        mediaPeriod - The period to release.
        +
        +
      • +
      + + + +
        +
      • +

        releaseSource

        +
        public void releaseSource()
        +
        Description copied from interface: MediaSource
        +
        Releases the source. +

        + This method should be called when the source is no longer required. It may be called in any + state.

        +
        +
        Specified by:
        +
        releaseSource in interface MediaSource
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SampleStream.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SampleStream.html new file mode 100644 index 00000000..e7641f8a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SampleStream.html @@ -0,0 +1,303 @@ + + + + + +SampleStream (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface SampleStream

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    ChunkSampleStream
    +
    +
    +
    +
    public interface SampleStream
    +
    A stream of media samples (and associated format information).
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isReady

        +
        boolean isReady()
        +
        Returns whether data is available to be read. +

        + Note: If the stream has ended then a buffer with the end of stream flag can always be read from + readData(FormatHolder, DecoderInputBuffer). Hence an ended stream is always ready.

        +
        +
        Returns:
        +
        Whether data is available to be read.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowError

        +
        void maybeThrowError()
        +              throws java.io.IOException
        +
        Throws an error that's preventing data from being read. Does nothing if no such error exists.
        +
        +
        Throws:
        +
        java.io.IOException - The underlying error.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        skipToKeyframeBefore

        +
        void skipToKeyframeBefore(long timeUs)
        +
        Attempts to skip to the keyframe before the specified time.
        +
        +
        Parameters:
        +
        timeUs - The specified time.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SequenceableLoader.Callback.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SequenceableLoader.Callback.html new file mode 100644 index 00000000..9996776e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SequenceableLoader.Callback.html @@ -0,0 +1,235 @@ + + + + + +SequenceableLoader.Callback (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface SequenceableLoader.Callback<T extends SequenceableLoader>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        onContinueLoadingRequested

        +
        void onContinueLoadingRequested(T source)
        +
        Called by the loader to indicate that it wishes for its SequenceableLoader.continueLoading(long) method + to be called when it can continue to load data. Called on the playback thread.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SequenceableLoader.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SequenceableLoader.html new file mode 100644 index 00000000..930d6d0c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SequenceableLoader.html @@ -0,0 +1,275 @@ + + + + + +SequenceableLoader (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface SequenceableLoader

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getNextLoadPositionUs

        +
        long getNextLoadPositionUs()
        +
        Returns the next load time, or C.TIME_END_OF_SOURCE if loading has finished.
        +
      • +
      + + + +
        +
      • +

        continueLoading

        +
        boolean continueLoading(long positionUs)
        +
        Attempts to continue loading.
        +
        +
        Parameters:
        +
        positionUs - The current playback position.
        +
        Returns:
        +
        True if progress was made, meaning that getNextLoadPositionUs() will return + a different value than prior to the call. False otherwise.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SinglePeriodTimeline.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SinglePeriodTimeline.html new file mode 100644 index 00000000..059902ff --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SinglePeriodTimeline.html @@ -0,0 +1,468 @@ + + + + + +SinglePeriodTimeline (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class SinglePeriodTimeline

+
+
+ +
+
    +
  • +
    +
    +
    public final class SinglePeriodTimeline
    +extends Timeline
    +
    A Timeline consisting of a single period and static window.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      SinglePeriodTimeline(long durationUs, + boolean isSeekable) +
      Creates a timeline of one period of known duration, and a static window starting at zero and + extending to that duration.
      +
      SinglePeriodTimeline(long periodDurationUs, + long windowDurationUs, + long windowPositionInPeriodUs, + long windowDefaultStartPositionUs, + boolean isSeekable, + boolean isDynamic) +
      Creates a timeline with one period of known duration, and a window of known duration starting + at a specified position in the period.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SinglePeriodTimeline

        +
        public SinglePeriodTimeline(long durationUs,
        +                            boolean isSeekable)
        +
        Creates a timeline of one period of known duration, and a static window starting at zero and + extending to that duration.
        +
        +
        Parameters:
        +
        durationUs - The duration of the period, in microseconds.
        +
        isSeekable - Whether seeking is supported within the period.
        +
        +
      • +
      + + + +
        +
      • +

        SinglePeriodTimeline

        +
        public SinglePeriodTimeline(long periodDurationUs,
        +                            long windowDurationUs,
        +                            long windowPositionInPeriodUs,
        +                            long windowDefaultStartPositionUs,
        +                            boolean isSeekable,
        +                            boolean isDynamic)
        +
        Creates a timeline with one period of known duration, and a window of known duration starting + at a specified position in the period.
        +
        +
        Parameters:
        +
        periodDurationUs - The duration of the period in microseconds.
        +
        windowDurationUs - The duration of the window in microseconds.
        +
        windowPositionInPeriodUs - The position of the start of the window in the period, in + microseconds.
        +
        windowDefaultStartPositionUs - The default position relative to the start of the window at + which to begin playback, in microseconds.
        +
        isSeekable - Whether seeking is supported within the window.
        +
        isDynamic - Whether the window may change when the timeline is updated.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getWindowCount

        +
        public int getWindowCount()
        +
        Description copied from class: Timeline
        +
        Returns the number of windows in the timeline.
        +
        +
        Specified by:
        +
        getWindowCount in class Timeline
        +
        +
      • +
      + + + +
        +
      • +

        getWindow

        +
        public Timeline.Window getWindow(int windowIndex,
        +                                 Timeline.Window window,
        +                                 boolean setIds)
        +
        Description copied from class: Timeline
        +
        Populates a Timeline.Window with data for the window at the specified index.
        +
        +
        Specified by:
        +
        getWindow in class Timeline
        +
        Parameters:
        +
        windowIndex - The index of the window.
        +
        window - The Timeline.Window to populate. Must not be null.
        +
        setIds - Whether Timeline.Window.id should be populated. If false, the field will be set to + null. The caller should pass false for efficiency reasons unless the field is required.
        +
        Returns:
        +
        The populated Timeline.Window, for convenience.
        +
        +
      • +
      + + + +
        +
      • +

        getPeriodCount

        +
        public int getPeriodCount()
        +
        Description copied from class: Timeline
        +
        Returns the number of periods in the timeline.
        +
        +
        Specified by:
        +
        getPeriodCount in class Timeline
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getIndexOfPeriod

        +
        public int getIndexOfPeriod(java.lang.Object uid)
        +
        Description copied from class: Timeline
        +
        Returns the index of the period identified by its unique id, or C.INDEX_UNSET + if the period is not in the timeline.
        +
        +
        Specified by:
        +
        getIndexOfPeriod in class Timeline
        +
        Parameters:
        +
        uid - A unique identifier for a period.
        +
        Returns:
        +
        The index of the period, or C.INDEX_UNSET if the period was not found.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SingleSampleMediaSource.EventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SingleSampleMediaSource.EventListener.html new file mode 100644 index 00000000..d693fd8e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SingleSampleMediaSource.EventListener.html @@ -0,0 +1,234 @@ + + + + + +SingleSampleMediaSource.EventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Interface SingleSampleMediaSource.EventListener

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidonLoadError(int sourceId, + java.io.IOException e) +
      Called when an error occurs loading media data.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onLoadError

        +
        void onLoadError(int sourceId,
        +                 java.io.IOException e)
        +
        Called when an error occurs loading media data.
        +
        +
        Parameters:
        +
        sourceId - The id of the reporting SingleSampleMediaSource.
        +
        e - The cause of the failure.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SingleSampleMediaSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SingleSampleMediaSource.html new file mode 100644 index 00000000..92c6f1bd --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/SingleSampleMediaSource.html @@ -0,0 +1,510 @@ + + + + + +SingleSampleMediaSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class SingleSampleMediaSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.SingleSampleMediaSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MediaSource
    +
    +
    +
    +
    public final class SingleSampleMediaSource
    +extends java.lang.Object
    +implements MediaSource
    +
    Loads data at a given Uri as a single sample belonging to a single MediaPeriod.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MIN_LOADABLE_RETRY_COUNT

        +
        public static final int DEFAULT_MIN_LOADABLE_RETRY_COUNT
        +
        The default minimum number of times to retry loading data prior to failing.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SingleSampleMediaSource

        +
        public SingleSampleMediaSource(android.net.Uri uri,
        +                               DataSource.Factory dataSourceFactory,
        +                               Format format,
        +                               long durationUs)
        +
      • +
      + + + +
        +
      • +

        SingleSampleMediaSource

        +
        public SingleSampleMediaSource(android.net.Uri uri,
        +                               DataSource.Factory dataSourceFactory,
        +                               Format format,
        +                               long durationUs,
        +                               int minLoadableRetryCount)
        +
      • +
      + + + +
        +
      • +

        SingleSampleMediaSource

        +
        public SingleSampleMediaSource(android.net.Uri uri,
        +                               DataSource.Factory dataSourceFactory,
        +                               Format format,
        +                               long durationUs,
        +                               int minLoadableRetryCount,
        +                               android.os.Handler eventHandler,
        +                               SingleSampleMediaSource.EventListener eventListener,
        +                               int eventSourceId)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        prepareSource

        +
        public void prepareSource(MediaSource.Listener listener)
        +
        Description copied from interface: MediaSource
        +
        Starts preparation of the source.
        +
        +
        Specified by:
        +
        prepareSource in interface MediaSource
        +
        Parameters:
        +
        listener - The listener for source events.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowSourceInfoRefreshError

        +
        public void maybeThrowSourceInfoRefreshError()
        +                                      throws java.io.IOException
        +
        Description copied from interface: MediaSource
        +
        Throws any pending error encountered while loading or refreshing source information.
        +
        +
        Specified by:
        +
        maybeThrowSourceInfoRefreshError in interface MediaSource
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        createPeriod

        +
        public MediaPeriod createPeriod(int index,
        +                                Allocator allocator,
        +                                long positionUs)
        +
        Description copied from interface: MediaSource
        +
        Returns a MediaPeriod corresponding to the period at the specified index.
        +
        +
        Specified by:
        +
        createPeriod in interface MediaSource
        +
        Parameters:
        +
        index - The index of the period.
        +
        allocator - An Allocator from which to obtain media buffer allocations.
        +
        positionUs - The player's current playback position.
        +
        Returns:
        +
        A new MediaPeriod.
        +
        +
      • +
      + + + +
        +
      • +

        releasePeriod

        +
        public void releasePeriod(MediaPeriod mediaPeriod)
        +
        Description copied from interface: MediaSource
        +
        Releases the period.
        +
        +
        Specified by:
        +
        releasePeriod in interface MediaSource
        +
        Parameters:
        +
        mediaPeriod - The period to release.
        +
        +
      • +
      + + + +
        +
      • +

        releaseSource

        +
        public void releaseSource()
        +
        Description copied from interface: MediaSource
        +
        Releases the source. +

        + This method should be called when the source is no longer required. It may be called in any + state.

        +
        +
        Specified by:
        +
        releaseSource in interface MediaSource
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/TrackGroup.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/TrackGroup.html new file mode 100644 index 00000000..8a5df3c6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/TrackGroup.html @@ -0,0 +1,382 @@ + + + + + +TrackGroup (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class TrackGroup

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.TrackGroup
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class TrackGroup
    +extends java.lang.Object
    +
    Defines a group of tracks exposed by a MediaPeriod. +

    + A MediaPeriod is only able to provide one SampleStream corresponding to a group + at any given time, however this SampleStream may adapt between multiple tracks within the + group.

    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intlength +
      The number of tracks in the group.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TrackGroup(Format... formats) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object obj) 
      FormatgetFormat(int index) +
      Returns the format of the track at a given index.
      +
      inthashCode() 
      intindexOf(Format format) +
      Returns the index of the track with the given format in the group.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        length

        +
        public final int length
        +
        The number of tracks in the group.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TrackGroup

        +
        public TrackGroup(Format... formats)
        +
        +
        Parameters:
        +
        formats - The track formats. Must not be null or contain null elements.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getFormat

        +
        public Format getFormat(int index)
        +
        Returns the format of the track at a given index.
        +
        +
        Parameters:
        +
        index - The index of the track.
        +
        Returns:
        +
        The track's format.
        +
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        public int indexOf(Format format)
        +
        Returns the index of the track with the given format in the group.
        +
        +
        Parameters:
        +
        format - The format.
        +
        Returns:
        +
        The index of the track, or C.INDEX_UNSET if no such track exists.
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/TrackGroupArray.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/TrackGroupArray.html new file mode 100644 index 00000000..851e4c5c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/TrackGroupArray.html @@ -0,0 +1,378 @@ + + + + + +TrackGroupArray (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source
+

Class TrackGroupArray

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.TrackGroupArray
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class TrackGroupArray
    +extends java.lang.Object
    +
    An array of TrackGroups exposed by a MediaPeriod.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intlength +
      The number of groups in the array.
      +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object obj) 
      TrackGroupget(int index) +
      Returns the group at a given index.
      +
      inthashCode() 
      intindexOf(TrackGroup group) +
      Returns the index of a group within the array.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        length

        +
        public final int length
        +
        The number of groups in the array. Greater than or equal to zero.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TrackGroupArray

        +
        public TrackGroupArray(TrackGroup... trackGroups)
        +
        +
        Parameters:
        +
        trackGroups - The groups. Must not be null or contain null elements, but may be empty.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public TrackGroup get(int index)
        +
        Returns the group at a given index.
        +
        +
        Parameters:
        +
        index - The index of the group.
        +
        Returns:
        +
        The group.
        +
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        public int indexOf(TrackGroup group)
        +
        Returns the index of a group within the array.
        +
        +
        Parameters:
        +
        group - The group.
        +
        Returns:
        +
        The index of the group, or C.INDEX_UNSET if no such group exists.
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/BaseMediaChunk.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/BaseMediaChunk.html new file mode 100644 index 00000000..63501f80 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/BaseMediaChunk.html @@ -0,0 +1,401 @@ + + + + + +BaseMediaChunk (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class BaseMediaChunk

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BaseMediaChunk

        +
        public BaseMediaChunk(DataSource dataSource,
        +                      DataSpec dataSpec,
        +                      Format trackFormat,
        +                      int trackSelectionReason,
        +                      java.lang.Object trackSelectionData,
        +                      long startTimeUs,
        +                      long endTimeUs,
        +                      int chunkIndex)
        +
        +
        Parameters:
        +
        dataSource - The source from which the data should be loaded.
        +
        dataSpec - Defines the data to be loaded.
        +
        trackFormat - See Chunk.trackFormat.
        +
        trackSelectionReason - See Chunk.trackSelectionReason.
        +
        trackSelectionData - See Chunk.trackSelectionData.
        +
        startTimeUs - The start time of the media contained by the chunk, in microseconds.
        +
        endTimeUs - The end time of the media contained by the chunk, in microseconds.
        +
        chunkIndex - The index of the chunk.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        init

        +
        public void init(DefaultTrackOutput trackOutput)
        +
        Initializes the chunk for loading, setting the DefaultTrackOutput that will receive + samples as they are loaded.
        +
        +
        Parameters:
        +
        trackOutput - The output that will receive the loaded samples.
        +
        +
      • +
      + + + +
        +
      • +

        getFirstSampleIndex

        +
        public final int getFirstSampleIndex()
        +
        Returns the index of the first sample in the output that was passed to + init(DefaultTrackOutput) that will originate from this chunk.
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/Chunk.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/Chunk.html new file mode 100644 index 00000000..032f397f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/Chunk.html @@ -0,0 +1,488 @@ + + + + + +Chunk (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class Chunk

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.chunk.Chunk
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected DataSourcedataSource 
      DataSpecdataSpec +
      The DataSpec that defines the data to be loaded.
      +
      longendTimeUs +
      The end time of the media contained by the chunk, or C.TIME_UNSET if the data being + loaded does not contain media samples.
      +
      longstartTimeUs +
      The start time of the media contained by the chunk, or C.TIME_UNSET if the data + being loaded does not contain media samples.
      +
      FormattrackFormat +
      The format of the track to which this chunk belongs, or null if the chunk does not belong to + a track.
      +
      java.lang.ObjecttrackSelectionData +
      Optional data associated with the selection of the track to which this chunk belongs.
      +
      inttrackSelectionReason +
      One of the C SELECTION_REASON_* constants if the chunk belongs to a track.
      +
      inttype +
      The type of the chunk.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Chunk(DataSource dataSource, + DataSpec dataSpec, + int type, + Format trackFormat, + int trackSelectionReason, + java.lang.Object trackSelectionData, + long startTimeUs, + long endTimeUs) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        dataSpec

        +
        public final DataSpec dataSpec
        +
        The DataSpec that defines the data to be loaded.
        +
      • +
      + + + +
        +
      • +

        type

        +
        public final int type
        +
        The type of the chunk. One of the DATA_TYPE_* constants defined in C. For + reporting only.
        +
      • +
      + + + +
        +
      • +

        trackFormat

        +
        public final Format trackFormat
        +
        The format of the track to which this chunk belongs, or null if the chunk does not belong to + a track.
        +
      • +
      + + + +
        +
      • +

        trackSelectionReason

        +
        public final int trackSelectionReason
        +
        One of the C SELECTION_REASON_* constants if the chunk belongs to a track. + C.SELECTION_REASON_UNKNOWN if the chunk does not belong to a track.
        +
      • +
      + + + +
        +
      • +

        trackSelectionData

        +
        public final java.lang.Object trackSelectionData
        +
        Optional data associated with the selection of the track to which this chunk belongs. Null if + the chunk does not belong to a track.
        +
      • +
      + + + +
        +
      • +

        startTimeUs

        +
        public final long startTimeUs
        +
        The start time of the media contained by the chunk, or C.TIME_UNSET if the data + being loaded does not contain media samples.
        +
      • +
      + + + +
        +
      • +

        endTimeUs

        +
        public final long endTimeUs
        +
        The end time of the media contained by the chunk, or C.TIME_UNSET if the data being + loaded does not contain media samples.
        +
      • +
      + + + +
        +
      • +

        dataSource

        +
        protected final DataSource dataSource
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Chunk

        +
        public Chunk(DataSource dataSource,
        +             DataSpec dataSpec,
        +             int type,
        +             Format trackFormat,
        +             int trackSelectionReason,
        +             java.lang.Object trackSelectionData,
        +             long startTimeUs,
        +             long endTimeUs)
        +
        +
        Parameters:
        +
        dataSource - The source from which the data should be loaded.
        +
        dataSpec - Defines the data to be loaded.
        +
        type - See type.
        +
        trackFormat - See trackFormat.
        +
        trackSelectionReason - See trackSelectionReason.
        +
        trackSelectionData - See trackSelectionData.
        +
        startTimeUs - See startTimeUs.
        +
        endTimeUs - See endTimeUs.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getDurationUs

        +
        public final long getDurationUs()
        +
        Returns the duration of the chunk in microseconds.
        +
      • +
      + + + +
        +
      • +

        bytesLoaded

        +
        public abstract long bytesLoaded()
        +
        Returns the number of bytes that have been loaded.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkExtractorWrapper.SingleTrackMetadataOutput.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkExtractorWrapper.SingleTrackMetadataOutput.html new file mode 100644 index 00000000..5a5d67df --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkExtractorWrapper.SingleTrackMetadataOutput.html @@ -0,0 +1,232 @@ + + + + + +ChunkExtractorWrapper.SingleTrackMetadataOutput (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Interface ChunkExtractorWrapper.SingleTrackMetadataOutput

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkExtractorWrapper.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkExtractorWrapper.html new file mode 100644 index 00000000..41dc5159 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkExtractorWrapper.html @@ -0,0 +1,557 @@ + + + + + +ChunkExtractorWrapper (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class ChunkExtractorWrapper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkHolder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkHolder.html new file mode 100644 index 00000000..1cf7671a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkHolder.html @@ -0,0 +1,328 @@ + + + + + +ChunkHolder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class ChunkHolder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.chunk.ChunkHolder
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class ChunkHolder
    +extends java.lang.Object
    +
    Holds a chunk or an indication that the end of the stream has been reached.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      Chunkchunk +
      The chunk.
      +
      booleanendOfStream +
      Indicates that the end of the stream has been reached.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ChunkHolder() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclear() +
      Clears the holder.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        chunk

        +
        public Chunk chunk
        +
        The chunk.
        +
      • +
      + + + +
        +
      • +

        endOfStream

        +
        public boolean endOfStream
        +
        Indicates that the end of the stream has been reached.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChunkHolder

        +
        public ChunkHolder()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        Clears the holder.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.html new file mode 100644 index 00000000..8ef4a1e3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.html @@ -0,0 +1,641 @@ + + + + + +ChunkSampleStream (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class ChunkSampleStream<T extends ChunkSource>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.chunk.ChunkSampleStream<T>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        ChunkSampleStream

        +
        public ChunkSampleStream(int trackType,
        +                         T chunkSource,
        +                         SequenceableLoader.Callback<ChunkSampleStream<T>> callback,
        +                         Allocator allocator,
        +                         long positionUs,
        +                         int minLoadableRetryCount,
        +                         AdaptiveMediaSourceEventListener.EventDispatcher eventDispatcher)
        +
        +
        Parameters:
        +
        trackType - The type of the track. One of the C TRACK_TYPE_* constants.
        +
        chunkSource - A ChunkSource from which chunks to load are obtained.
        +
        callback - An Callback for the stream.
        +
        allocator - An Allocator from which allocations can be obtained.
        +
        positionUs - The position from which to start loading media.
        +
        minLoadableRetryCount - The minimum number of times that the source should retry a load + before propagating an error.
        +
        eventDispatcher - A dispatcher to notify of events.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getChunkSource

        +
        public T getChunkSource()
        +
        Returns the ChunkSource used by this stream.
        +
        +
        Returns:
        +
        The ChunkSource.
        +
        +
      • +
      + + + +
        +
      • +

        getBufferedPositionUs

        +
        public long getBufferedPositionUs()
        +
        Returns an estimate of the position up to which data is buffered.
        +
        +
        Returns:
        +
        An estimate of the absolute position in microseconds up to which data is buffered, or + C.TIME_END_OF_SOURCE if the track is fully buffered.
        +
        +
      • +
      + + + +
        +
      • +

        seekToUs

        +
        public void seekToUs(long positionUs)
        +
        Seeks to the specified position in microseconds.
        +
        +
        Parameters:
        +
        positionUs - The seek position in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Releases the stream. +

        + This method should be called when the stream is no longer required.

        +
      • +
      + + + +
        +
      • +

        isReady

        +
        public boolean isReady()
        +
        Description copied from interface: SampleStream
        +
        Returns whether data is available to be read. +

        + Note: If the stream has ended then a buffer with the end of stream flag can always be read from + SampleStream.readData(FormatHolder, DecoderInputBuffer). Hence an ended stream is always ready.

        +
        +
        Specified by:
        +
        isReady in interface SampleStream
        +
        Returns:
        +
        Whether data is available to be read.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowError

        +
        public void maybeThrowError()
        +                     throws java.io.IOException
        +
        Description copied from interface: SampleStream
        +
        Throws an error that's preventing data from being read. Does nothing if no such error exists.
        +
        +
        Specified by:
        +
        maybeThrowError in interface SampleStream
        +
        Throws:
        +
        java.io.IOException - The underlying error.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        skipToKeyframeBefore

        +
        public void skipToKeyframeBefore(long timeUs)
        +
        Description copied from interface: SampleStream
        +
        Attempts to skip to the keyframe before the specified time.
        +
        +
        Specified by:
        +
        skipToKeyframeBefore in interface SampleStream
        +
        Parameters:
        +
        timeUs - The specified time.
        +
        +
      • +
      + + + +
        +
      • +

        onLoadCompleted

        +
        public void onLoadCompleted(Chunk loadable,
        +                            long elapsedRealtimeMs,
        +                            long loadDurationMs)
        +
        Description copied from interface: Loader.Callback
        +
        Called when a load has completed. +

        + Note: There is guaranteed to be a memory barrier between Loader.Loadable.load() exiting and + this callback being called.

        +
        +
        Specified by:
        +
        onLoadCompleted in interface Loader.Callback<Chunk>
        +
        Parameters:
        +
        loadable - The loadable whose load has completed.
        +
        elapsedRealtimeMs - SystemClock.elapsedRealtime() when the load ended.
        +
        loadDurationMs - The duration of the load.
        +
        +
      • +
      + + + +
        +
      • +

        onLoadCanceled

        +
        public void onLoadCanceled(Chunk loadable,
        +                           long elapsedRealtimeMs,
        +                           long loadDurationMs,
        +                           boolean released)
        +
        Description copied from interface: Loader.Callback
        +
        Called when a load has been canceled. +

        + Note: If the Loader has not been released then there is guaranteed to be a memory + barrier between Loader.Loadable.load() exiting and this callback being called. If the + Loader has been released then this callback may be called before + Loader.Loadable.load() exits.

        +
        +
        Specified by:
        +
        onLoadCanceled in interface Loader.Callback<Chunk>
        +
        Parameters:
        +
        loadable - The loadable whose load has been canceled.
        +
        elapsedRealtimeMs - SystemClock.elapsedRealtime() when the load was canceled.
        +
        loadDurationMs - The duration of the load up to the point at which it was canceled.
        +
        released - True if the load was canceled because the Loader was released. False + otherwise.
        +
        +
      • +
      + + + +
        +
      • +

        onLoadError

        +
        public int onLoadError(Chunk loadable,
        +                       long elapsedRealtimeMs,
        +                       long loadDurationMs,
        +                       java.io.IOException error)
        +
        Description copied from interface: Loader.Callback
        +
        Called when a load encounters an error. +

        + Note: There is guaranteed to be a memory barrier between Loader.Loadable.load() exiting and + this callback being called.

        +
        +
        Specified by:
        +
        onLoadError in interface Loader.Callback<Chunk>
        +
        Parameters:
        +
        loadable - The loadable whose load has encountered an error.
        +
        elapsedRealtimeMs - SystemClock.elapsedRealtime() when the error occurred.
        +
        loadDurationMs - The duration of the load up to the point at which the error occurred.
        +
        error - The load error.
        +
        Returns:
        +
        The desired retry action. One of Loader.RETRY, + Loader.RETRY_RESET_ERROR_COUNT, Loader.DONT_RETRY and + Loader.DONT_RETRY_FATAL.
        +
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkSource.html new file mode 100644 index 00000000..76f40fa9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkSource.html @@ -0,0 +1,357 @@ + + + + + +ChunkSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Interface ChunkSource

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        maybeThrowError

        +
        void maybeThrowError()
        +              throws java.io.IOException
        +
        If the source is currently having difficulty providing chunks, then this method throws the + underlying error. Otherwise does nothing. +

        + This method should only be called after the source has been prepared.

        +
        +
        Throws:
        +
        java.io.IOException - The underlying error.
        +
        +
      • +
      + + + +
        +
      • +

        getPreferredQueueSize

        +
        int getPreferredQueueSize(long playbackPositionUs,
        +                          java.util.List<? extends MediaChunk> queue)
        +
        Evaluates whether MediaChunks should be removed from the back of the queue. +

        + Removing MediaChunks from the back of the queue can be useful if they could be replaced + with chunks of a significantly higher quality (e.g. because the available bandwidth has + substantially increased).

        +
        +
        Parameters:
        +
        playbackPositionUs - The current playback position.
        +
        queue - The queue of buffered MediaChunks.
        +
        Returns:
        +
        The preferred queue size.
        +
        +
      • +
      + + + +
        +
      • +

        getNextChunk

        +
        void getNextChunk(MediaChunk previous,
        +                  long playbackPositionUs,
        +                  ChunkHolder out)
        +
        Returns the next chunk to load. +

        + If a chunk is available then ChunkHolder.chunk is set. If the end of the stream has + been reached then ChunkHolder.endOfStream is set. If a chunk is not available but the + end of the stream has not been reached, the ChunkHolder is not modified.

        +
        +
        Parameters:
        +
        previous - The most recently loaded media chunk.
        +
        playbackPositionUs - The current playback position. If previous is null then this + parameter is the position from which playback is expected to start (or restart) and hence + should be interpreted as a seek position.
        +
        out - A holder to populate.
        +
        +
      • +
      + + + +
        +
      • +

        onChunkLoadCompleted

        +
        void onChunkLoadCompleted(Chunk chunk)
        +
        Called when the ChunkSampleStream has finished loading a chunk obtained from this + source. +

        + This method should only be called when the source is enabled.

        +
        +
        Parameters:
        +
        chunk - The chunk whose load has been completed.
        +
        +
      • +
      + + + +
        +
      • +

        onChunkLoadError

        +
        boolean onChunkLoadError(Chunk chunk,
        +                         boolean cancelable,
        +                         java.lang.Exception e)
        +
        Called when the ChunkSampleStream encounters an error loading a chunk obtained from + this source. +

        + This method should only be called when the source is enabled.

        +
        +
        Parameters:
        +
        chunk - The chunk whose load encountered the error.
        +
        cancelable - Whether the load can be canceled.
        +
        e - The error.
        +
        Returns:
        +
        Whether the load should be canceled.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkedTrackBlacklistUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkedTrackBlacklistUtil.html new file mode 100644 index 00000000..9c7253ee --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ChunkedTrackBlacklistUtil.html @@ -0,0 +1,337 @@ + + + + + +ChunkedTrackBlacklistUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class ChunkedTrackBlacklistUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.chunk.ChunkedTrackBlacklistUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class ChunkedTrackBlacklistUtil
    +extends java.lang.Object
    +
    Helper class for blacklisting tracks in a TrackSelection when 404 (Not Found) and 410 + (Gone) HTTP response codes are encountered.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_TRACK_BLACKLIST_MS

        +
        public static final long DEFAULT_TRACK_BLACKLIST_MS
        +
        The default duration for which a track is blacklisted in milliseconds.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        maybeBlacklistTrack

        +
        public static boolean maybeBlacklistTrack(TrackSelection trackSelection,
        +                                          int trackSelectionIndex,
        +                                          java.lang.Exception e)
        +
        Blacklists trackSelectionIndex in trackSelection for + DEFAULT_TRACK_BLACKLIST_MS if e is an HttpDataSource.InvalidResponseCodeException + with HttpDataSource.InvalidResponseCodeException.responseCode equal to 404 or 410. Else does nothing. + Note that blacklisting will fail if the track is the only non-blacklisted track in the + selection.
        +
        +
        Parameters:
        +
        trackSelection - The track selection.
        +
        trackSelectionIndex - The index in the selection to consider blacklisting.
        +
        e - The error to inspect.
        +
        Returns:
        +
        Whether the track was blacklisted in the selection.
        +
        +
      • +
      + + + +
        +
      • +

        maybeBlacklistTrack

        +
        public static boolean maybeBlacklistTrack(TrackSelection trackSelection,
        +                                          int trackSelectionIndex,
        +                                          java.lang.Exception e,
        +                                          long blacklistDurationMs)
        +
        Blacklists trackSelectionIndex in trackSelection for + blacklistDurationMs if e is an HttpDataSource.InvalidResponseCodeException with + HttpDataSource.InvalidResponseCodeException.responseCode equal to 404 or 410. Else does nothing. Note + that blacklisting will fail if the track is the only non-blacklisted track in the selection.
        +
        +
        Parameters:
        +
        trackSelection - The track selection.
        +
        trackSelectionIndex - The index in the selection to consider blacklisting.
        +
        e - The error to inspect.
        +
        blacklistDurationMs - The duration to blacklist the track for, if it is blacklisted.
        +
        Returns:
        +
        Whether the track was blacklisted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ContainerMediaChunk.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ContainerMediaChunk.html new file mode 100644 index 00000000..f794951a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/ContainerMediaChunk.html @@ -0,0 +1,484 @@ + + + + + +ContainerMediaChunk (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class ContainerMediaChunk

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ContainerMediaChunk

        +
        public ContainerMediaChunk(DataSource dataSource,
        +                           DataSpec dataSpec,
        +                           Format trackFormat,
        +                           int trackSelectionReason,
        +                           java.lang.Object trackSelectionData,
        +                           long startTimeUs,
        +                           long endTimeUs,
        +                           int chunkIndex,
        +                           long sampleOffsetUs,
        +                           ChunkExtractorWrapper extractorWrapper,
        +                           Format sampleFormat)
        +
        +
        Parameters:
        +
        dataSource - The source from which the data should be loaded.
        +
        dataSpec - Defines the data to be loaded.
        +
        trackFormat - See Chunk.trackFormat.
        +
        trackSelectionReason - See Chunk.trackSelectionReason.
        +
        trackSelectionData - See Chunk.trackSelectionData.
        +
        startTimeUs - The start time of the media contained by the chunk, in microseconds.
        +
        endTimeUs - The end time of the media contained by the chunk, in microseconds.
        +
        chunkIndex - The index of the chunk.
        +
        sampleOffsetUs - An offset to add to the sample timestamps parsed by the extractor.
        +
        extractorWrapper - A wrapped extractor to use for parsing the data.
        +
        sampleFormat - The Format of the samples in the chunk, if known. May be null if + the data is known to define its own sample format.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/DataChunk.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/DataChunk.html new file mode 100644 index 00000000..8565d523 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/DataChunk.html @@ -0,0 +1,439 @@ + + + + + +DataChunk (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class DataChunk

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Loader.Loadable
    +
    +
    +
    +
    public abstract class DataChunk
    +extends Chunk
    +
    A base class for Chunk implementations where the data should be loaded into a + byte[] before being consumed.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DataChunk

        +
        public DataChunk(DataSource dataSource,
        +                 DataSpec dataSpec,
        +                 int type,
        +                 Format trackFormat,
        +                 int trackSelectionReason,
        +                 java.lang.Object trackSelectionData,
        +                 byte[] data)
        +
        +
        Parameters:
        +
        dataSource - The source from which the data should be loaded.
        +
        dataSpec - Defines the data to be loaded.
        +
        type - See Chunk.type.
        +
        trackFormat - See Chunk.trackFormat.
        +
        trackSelectionReason - See Chunk.trackSelectionReason.
        +
        trackSelectionData - See Chunk.trackSelectionData.
        +
        data - An optional recycled array that can be used as a holder for the data.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getDataHolder

        +
        public byte[] getDataHolder()
        +
        Returns the array in which the data is held. +

        + This method should be used for recycling the holder only, and not for reading the data.

        +
        +
        Returns:
        +
        The array in which the data is held.
        +
        +
      • +
      + + + +
        +
      • +

        bytesLoaded

        +
        public long bytesLoaded()
        +
        Description copied from class: Chunk
        +
        Returns the number of bytes that have been loaded.
        +
        +
        Specified by:
        +
        bytesLoaded in class Chunk
        +
        +
      • +
      + + + +
        +
      • +

        cancelLoad

        +
        public final void cancelLoad()
        +
        Description copied from interface: Loader.Loadable
        +
        Cancels the load.
        +
      • +
      + + + +
        +
      • +

        isLoadCanceled

        +
        public final boolean isLoadCanceled()
        +
        Description copied from interface: Loader.Loadable
        +
        Returns whether the load has been canceled.
        +
      • +
      + + + +
        +
      • +

        load

        +
        public final void load()
        +                throws java.io.IOException,
        +                       java.lang.InterruptedException
        +
        Description copied from interface: Loader.Loadable
        +
        Performs the load, returning on completion or cancellation.
        +
        +
        Throws:
        +
        java.io.IOException
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        consume

        +
        protected abstract void consume(byte[] data,
        +                                int limit)
        +                         throws java.io.IOException
        +
        Called by load(). Implementations should override this method to consume the loaded + data.
        +
        +
        Parameters:
        +
        data - An array containing the data.
        +
        limit - The limit of the data.
        +
        Throws:
        +
        java.io.IOException - If an error occurs consuming the loaded data.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/InitializationChunk.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/InitializationChunk.html new file mode 100644 index 00000000..232f22b8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/InitializationChunk.html @@ -0,0 +1,581 @@ + + + + + +InitializationChunk (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class InitializationChunk

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InitializationChunk

        +
        public InitializationChunk(DataSource dataSource,
        +                           DataSpec dataSpec,
        +                           Format trackFormat,
        +                           int trackSelectionReason,
        +                           java.lang.Object trackSelectionData,
        +                           ChunkExtractorWrapper extractorWrapper)
        +
        +
        Parameters:
        +
        dataSource - The source from which the data should be loaded.
        +
        dataSpec - Defines the data to be loaded.
        +
        trackFormat - See Chunk.trackFormat.
        +
        trackSelectionReason - See Chunk.trackSelectionReason.
        +
        trackSelectionData - See Chunk.trackSelectionData.
        +
        extractorWrapper - A wrapped extractor to use for parsing the initialization data.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        bytesLoaded

        +
        public long bytesLoaded()
        +
        Description copied from class: Chunk
        +
        Returns the number of bytes that have been loaded.
        +
        +
        Specified by:
        +
        bytesLoaded in class Chunk
        +
        +
      • +
      + + + +
        +
      • +

        getSampleFormat

        +
        public Format getSampleFormat()
        +
        Returns a Format parsed from the chunk, or null. +

        + Should be called after loading has completed.

        +
      • +
      + + + +
        +
      • +

        getSeekMap

        +
        public SeekMap getSeekMap()
        +
        Returns a SeekMap parsed from the chunk, or null. +

        + Should be called after loading has completed.

        +
      • +
      + + + + + + + +
        +
      • +

        format

        +
        public void format(Format format)
        +
        Description copied from interface: TrackOutput
        +
        Called when the Format of the track has been extracted from the stream.
        +
        +
        Specified by:
        +
        format in interface TrackOutput
        +
        Parameters:
        +
        format - The extracted Format.
        +
        +
      • +
      + + + +
        +
      • +

        sampleData

        +
        public int sampleData(ExtractorInput input,
        +                      int length,
        +                      boolean allowEndOfInput)
        +               throws java.io.IOException,
        +                      java.lang.InterruptedException
        +
        Description copied from interface: TrackOutput
        +
        Called to write sample data to the output.
        +
        +
        Specified by:
        +
        sampleData in interface TrackOutput
        +
        Parameters:
        +
        input - An ExtractorInput from which to read the sample data.
        +
        length - The maximum length to read from the input.
        +
        allowEndOfInput - True if encountering the end of the input having read no data is + allowed, and should result in C.RESULT_END_OF_INPUT being returned. False if it + should be considered an error, causing an EOFException to be thrown.
        +
        Returns:
        +
        The number of bytes appended.
        +
        Throws:
        +
        java.io.IOException - If an error occurred reading from the input.
        +
        java.lang.InterruptedException - If the thread was interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        sampleData

        +
        public void sampleData(ParsableByteArray data,
        +                       int length)
        +
        Description copied from interface: TrackOutput
        +
        Called to write sample data to the output.
        +
        +
        Specified by:
        +
        sampleData in interface TrackOutput
        +
        Parameters:
        +
        data - A ParsableByteArray from which to read the sample data.
        +
        length - The number of bytes to read.
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        isLoadCanceled

        +
        public boolean isLoadCanceled()
        +
        Description copied from interface: Loader.Loadable
        +
        Returns whether the load has been canceled.
        +
        +
        Specified by:
        +
        isLoadCanceled in interface Loader.Loadable
        +
        +
      • +
      + + + +
        +
      • +

        load

        +
        public void load()
        +          throws java.io.IOException,
        +                 java.lang.InterruptedException
        +
        Description copied from interface: Loader.Loadable
        +
        Performs the load, returning on completion or cancellation.
        +
        +
        Specified by:
        +
        load in interface Loader.Loadable
        +
        Throws:
        +
        java.io.IOException
        +
        java.lang.InterruptedException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/MediaChunk.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/MediaChunk.html new file mode 100644 index 00000000..415e6ef2 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/MediaChunk.html @@ -0,0 +1,387 @@ + + + + + +MediaChunk (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class MediaChunk

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Loader.Loadable
    +
    +
    +
    Direct Known Subclasses:
    +
    BaseMediaChunk
    +
    +
    +
    +
    public abstract class MediaChunk
    +extends Chunk
    +
    An abstract base class for Chunks that contain media samples.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        chunkIndex

        +
        public final int chunkIndex
        +
        The chunk index.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MediaChunk

        +
        public MediaChunk(DataSource dataSource,
        +                  DataSpec dataSpec,
        +                  Format trackFormat,
        +                  int trackSelectionReason,
        +                  java.lang.Object trackSelectionData,
        +                  long startTimeUs,
        +                  long endTimeUs,
        +                  int chunkIndex)
        +
        +
        Parameters:
        +
        dataSource - The source from which the data should be loaded.
        +
        dataSpec - Defines the data to be loaded.
        +
        trackFormat - See Chunk.trackFormat.
        +
        trackSelectionReason - See Chunk.trackSelectionReason.
        +
        trackSelectionData - See Chunk.trackSelectionData.
        +
        startTimeUs - The start time of the media contained by the chunk, in microseconds.
        +
        endTimeUs - The end time of the media contained by the chunk, in microseconds.
        +
        chunkIndex - The index of the chunk.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getNextChunkIndex

        +
        public final int getNextChunkIndex()
        +
        Returns the next chunk index.
        +
      • +
      + + + +
        +
      • +

        isLoadCompleted

        +
        public abstract boolean isLoadCompleted()
        +
        Returns whether the chunk has been fully loaded.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/SingleSampleMediaChunk.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/SingleSampleMediaChunk.html new file mode 100644 index 00000000..fec84b51 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/SingleSampleMediaChunk.html @@ -0,0 +1,446 @@ + + + + + +SingleSampleMediaChunk (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.chunk
+

Class SingleSampleMediaChunk

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SingleSampleMediaChunk

        +
        public SingleSampleMediaChunk(DataSource dataSource,
        +                              DataSpec dataSpec,
        +                              Format trackFormat,
        +                              int trackSelectionReason,
        +                              java.lang.Object trackSelectionData,
        +                              long startTimeUs,
        +                              long endTimeUs,
        +                              int chunkIndex,
        +                              Format sampleFormat)
        +
        +
        Parameters:
        +
        dataSource - The source from which the data should be loaded.
        +
        dataSpec - Defines the data to be loaded.
        +
        trackFormat - See Chunk.trackFormat.
        +
        trackSelectionReason - See Chunk.trackSelectionReason.
        +
        trackSelectionData - See Chunk.trackSelectionData.
        +
        startTimeUs - The start time of the media contained by the chunk, in microseconds.
        +
        endTimeUs - The end time of the media contained by the chunk, in microseconds.
        +
        chunkIndex - The index of the chunk.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isLoadCompleted

        +
        public boolean isLoadCompleted()
        +
        Description copied from class: MediaChunk
        +
        Returns whether the chunk has been fully loaded.
        +
        +
        Specified by:
        +
        isLoadCompleted in class MediaChunk
        +
        +
      • +
      + + + +
        +
      • +

        bytesLoaded

        +
        public long bytesLoaded()
        +
        Description copied from class: Chunk
        +
        Returns the number of bytes that have been loaded.
        +
        +
        Specified by:
        +
        bytesLoaded in class Chunk
        +
        +
      • +
      + + + +
        +
      • +

        cancelLoad

        +
        public void cancelLoad()
        +
        Description copied from interface: Loader.Loadable
        +
        Cancels the load.
        +
      • +
      + + + +
        +
      • +

        isLoadCanceled

        +
        public boolean isLoadCanceled()
        +
        Description copied from interface: Loader.Loadable
        +
        Returns whether the load has been canceled.
        +
      • +
      + + + +
        +
      • +

        load

        +
        public void load()
        +          throws java.io.IOException,
        +                 java.lang.InterruptedException
        +
        Description copied from interface: Loader.Loadable
        +
        Performs the load, returning on completion or cancellation.
        +
        +
        Throws:
        +
        java.io.IOException
        +
        java.lang.InterruptedException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/package-frame.html new file mode 100644 index 00000000..a153753e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/package-frame.html @@ -0,0 +1,35 @@ + + + + + +com.google.android.exoplayer2.source.chunk (library API) + + + + + +

com.google.android.exoplayer2.source.chunk

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/package-summary.html new file mode 100644 index 00000000..058fd6ae --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/package-summary.html @@ -0,0 +1,228 @@ + + + + + +com.google.android.exoplayer2.source.chunk (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.source.chunk

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/package-tree.html new file mode 100644 index 00000000..2468e9c1 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/chunk/package-tree.html @@ -0,0 +1,159 @@ + + + + + +com.google.android.exoplayer2.source.chunk Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.source.chunk

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashChunkSource.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashChunkSource.Factory.html new file mode 100644 index 00000000..c8205455 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashChunkSource.Factory.html @@ -0,0 +1,237 @@ + + + + + +DashChunkSource.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash
+

Interface DashChunkSource.Factory

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashChunkSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashChunkSource.html new file mode 100644 index 00000000..14a3217b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashChunkSource.html @@ -0,0 +1,257 @@ + + + + + +DashChunkSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash
+

Interface DashChunkSource

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        updateManifest

        +
        void updateManifest(DashManifest newManifest,
        +                    int periodIndex)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashMediaSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashMediaSource.html new file mode 100644 index 00000000..53794f3d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashMediaSource.html @@ -0,0 +1,543 @@ + + + + + +DashMediaSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash
+

Class DashMediaSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.DashMediaSource
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MIN_LOADABLE_RETRY_COUNT

        +
        public static final int DEFAULT_MIN_LOADABLE_RETRY_COUNT
        +
        The default minimum number of times to retry loading data prior to failing.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_LIVE_PRESENTATION_DELAY_PREFER_MANIFEST_MS

        +
        public static final long DEFAULT_LIVE_PRESENTATION_DELAY_PREFER_MANIFEST_MS
        +
        A constant indicating that the presentation delay for live streams should be set to + DashManifest.suggestedPresentationDelay if specified by the manifest, or + DEFAULT_LIVE_PRESENTATION_DELAY_FIXED_MS otherwise. The presentation delay is the + duration by which the default start position precedes the end of the live window.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_LIVE_PRESENTATION_DELAY_FIXED_MS

        +
        public static final long DEFAULT_LIVE_PRESENTATION_DELAY_FIXED_MS
        +
        A fixed default presentation delay for live streams. The presentation delay is the duration + by which the default start position precedes the end of the live window.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        replaceManifestUri

        +
        public void replaceManifestUri(android.net.Uri manifestUri)
        +
        Manually replaces the manifest Uri.
        +
        +
        Parameters:
        +
        manifestUri - The replacement manifest Uri.
        +
        +
      • +
      + + + +
        +
      • +

        prepareSource

        +
        public void prepareSource(MediaSource.Listener listener)
        +
        Description copied from interface: MediaSource
        +
        Starts preparation of the source.
        +
        +
        Specified by:
        +
        prepareSource in interface MediaSource
        +
        Parameters:
        +
        listener - The listener for source events.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowSourceInfoRefreshError

        +
        public void maybeThrowSourceInfoRefreshError()
        +                                      throws java.io.IOException
        +
        Description copied from interface: MediaSource
        +
        Throws any pending error encountered while loading or refreshing source information.
        +
        +
        Specified by:
        +
        maybeThrowSourceInfoRefreshError in interface MediaSource
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        createPeriod

        +
        public MediaPeriod createPeriod(int index,
        +                                Allocator allocator,
        +                                long positionUs)
        +
        Description copied from interface: MediaSource
        +
        Returns a MediaPeriod corresponding to the period at the specified index.
        +
        +
        Specified by:
        +
        createPeriod in interface MediaSource
        +
        Parameters:
        +
        index - The index of the period.
        +
        allocator - An Allocator from which to obtain media buffer allocations.
        +
        positionUs - The player's current playback position.
        +
        Returns:
        +
        A new MediaPeriod.
        +
        +
      • +
      + + + +
        +
      • +

        releasePeriod

        +
        public void releasePeriod(MediaPeriod mediaPeriod)
        +
        Description copied from interface: MediaSource
        +
        Releases the period.
        +
        +
        Specified by:
        +
        releasePeriod in interface MediaSource
        +
        Parameters:
        +
        mediaPeriod - The period to release.
        +
        +
      • +
      + + + +
        +
      • +

        releaseSource

        +
        public void releaseSource()
        +
        Description copied from interface: MediaSource
        +
        Releases the source. +

        + This method should be called when the source is no longer required. It may be called in any + state.

        +
        +
        Specified by:
        +
        releaseSource in interface MediaSource
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashSegmentIndex.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashSegmentIndex.html new file mode 100644 index 00000000..e964dd88 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DashSegmentIndex.html @@ -0,0 +1,426 @@ + + + + + +DashSegmentIndex (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash
+

Interface DashSegmentIndex

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intINDEX_UNBOUNDED 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      longgetDurationUs(int segmentNum, + long periodDurationUs) +
      Returns the duration of a segment.
      +
      intgetFirstSegmentNum() +
      Returns the segment number of the first segment.
      +
      intgetLastSegmentNum(long periodDurationUs) +
      Returns the segment number of the last segment, or INDEX_UNBOUNDED.
      +
      intgetSegmentNum(long timeUs, + long periodDurationUs) +
      Returns the segment number of the segment containing a given media time.
      +
      RangedUrigetSegmentUrl(int segmentNum) +
      Returns a RangedUri defining the location of a segment.
      +
      longgetTimeUs(int segmentNum) +
      Returns the start time of a segment.
      +
      booleanisExplicit() +
      Returns true if segments are defined explicitly by the index.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSegmentNum

        +
        int getSegmentNum(long timeUs,
        +                  long periodDurationUs)
        +
        Returns the segment number of the segment containing a given media time. +

        + If the given media time is outside the range of the index, then the returned segment number is + clamped to getFirstSegmentNum() (if the given media time is earlier the start of the + first segment) or getLastSegmentNum(long) (if the given media time is later then the + end of the last segment).

        +
        +
        Parameters:
        +
        timeUs - The time in microseconds.
        +
        periodDurationUs - The duration of the enclosing period in microseconds, or + C.TIME_UNSET if the period's duration is not yet known.
        +
        Returns:
        +
        The segment number of the corresponding segment.
        +
        +
      • +
      + + + +
        +
      • +

        getTimeUs

        +
        long getTimeUs(int segmentNum)
        +
        Returns the start time of a segment.
        +
        +
        Parameters:
        +
        segmentNum - The segment number.
        +
        Returns:
        +
        The corresponding start time in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        long getDurationUs(int segmentNum,
        +                   long periodDurationUs)
        +
        Returns the duration of a segment.
        +
        +
        Parameters:
        +
        segmentNum - The segment number.
        +
        periodDurationUs - The duration of the enclosing period in microseconds, or + C.TIME_UNSET if the period's duration is not yet known.
        +
        Returns:
        +
        The duration of the segment, in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getSegmentUrl

        +
        RangedUri getSegmentUrl(int segmentNum)
        +
        Returns a RangedUri defining the location of a segment.
        +
        +
        Parameters:
        +
        segmentNum - The segment number.
        +
        Returns:
        +
        The RangedUri defining the location of the data.
        +
        +
      • +
      + + + +
        +
      • +

        getFirstSegmentNum

        +
        int getFirstSegmentNum()
        +
        Returns the segment number of the first segment.
        +
        +
        Returns:
        +
        The segment number of the first segment.
        +
        +
      • +
      + + + +
        +
      • +

        getLastSegmentNum

        +
        int getLastSegmentNum(long periodDurationUs)
        +
        Returns the segment number of the last segment, or INDEX_UNBOUNDED. +

        + An unbounded index occurs if a dynamic manifest uses SegmentTemplate elements without a + SegmentTimeline element, and if the period duration is not yet known. In this case the caller + must manually determine the window of currently available segments.

        +
        +
        Parameters:
        +
        periodDurationUs - The duration of the enclosing period in microseconds, or + C.TIME_UNSET if the period's duration is not yet known.
        +
        Returns:
        +
        The segment number of the last segment, or INDEX_UNBOUNDED.
        +
        +
      • +
      + + + +
        +
      • +

        isExplicit

        +
        boolean isExplicit()
        +
        Returns true if segments are defined explicitly by the index. +

        + If true is returned, each segment is defined explicitly by the index data, and all of the + listed segments are guaranteed to be available at the time when the index was obtained. +

        + If false is returned then segment information was derived from properties such as a fixed + segment duration. If the presentation is dynamic, it's possible that only a subset of the + segments are available.

        +
        +
        Returns:
        +
        Whether segments are defined explicitly by the index.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.Factory.html new file mode 100644 index 00000000..c3531c4a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.Factory.html @@ -0,0 +1,292 @@ + + + + + +DefaultDashChunkSource.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash
+

Class DefaultDashChunkSource.Factory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.Factory
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.RepresentationHolder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.RepresentationHolder.html new file mode 100644 index 00000000..624c6cdb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.RepresentationHolder.html @@ -0,0 +1,448 @@ + + + + + +DefaultDashChunkSource.RepresentationHolder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash
+

Class DefaultDashChunkSource.RepresentationHolder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    DefaultDashChunkSource
    +
    +
    +
    +
    protected static final class DefaultDashChunkSource.RepresentationHolder
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RepresentationHolder

        +
        public RepresentationHolder(long periodDurationUs,
        +                            Representation representation)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setSampleFormat

        +
        public void setSampleFormat(Format sampleFormat)
        +
      • +
      + + + + + + + +
        +
      • +

        getFirstSegmentNum

        +
        public int getFirstSegmentNum()
        +
      • +
      + + + +
        +
      • +

        getLastSegmentNum

        +
        public int getLastSegmentNum()
        +
      • +
      + + + +
        +
      • +

        getSegmentStartTimeUs

        +
        public long getSegmentStartTimeUs(int segmentNum)
        +
      • +
      + + + +
        +
      • +

        getSegmentEndTimeUs

        +
        public long getSegmentEndTimeUs(int segmentNum)
        +
      • +
      + + + +
        +
      • +

        getSegmentNum

        +
        public int getSegmentNum(long positionUs)
        +
      • +
      + + + +
        +
      • +

        getSegmentUrl

        +
        public RangedUri getSegmentUrl(int segmentNum)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.html new file mode 100644 index 00000000..5cffe629 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.html @@ -0,0 +1,485 @@ + + + + + +DefaultDashChunkSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash
+

Class DefaultDashChunkSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.DefaultDashChunkSource
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultDashChunkSource

        +
        public DefaultDashChunkSource(LoaderErrorThrower manifestLoaderErrorThrower,
        +                              DashManifest manifest,
        +                              int periodIndex,
        +                              int adaptationSetIndex,
        +                              TrackSelection trackSelection,
        +                              DataSource dataSource,
        +                              long elapsedRealtimeOffsetMs)
        +
        +
        Parameters:
        +
        manifestLoaderErrorThrower - Throws errors affecting loading of manifests.
        +
        manifest - The initial manifest.
        +
        periodIndex - The index of the period in the manifest.
        +
        adaptationSetIndex - The index of the adaptation set in the period.
        +
        trackSelection - The track selection.
        +
        dataSource - A DataSource suitable for loading the media data.
        +
        elapsedRealtimeOffsetMs - If known, an estimate of the instantaneous difference between + server-side unix time and SystemClock.elapsedRealtime() in milliseconds, specified + as the server's unix time minus the local elapsed time. If unknown, set to 0.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        maybeThrowError

        +
        public void maybeThrowError()
        +                     throws java.io.IOException
        +
        Description copied from interface: ChunkSource
        +
        If the source is currently having difficulty providing chunks, then this method throws the + underlying error. Otherwise does nothing. +

        + This method should only be called after the source has been prepared.

        +
        +
        Specified by:
        +
        maybeThrowError in interface ChunkSource
        +
        Throws:
        +
        java.io.IOException - The underlying error.
        +
        +
      • +
      + + + +
        +
      • +

        getPreferredQueueSize

        +
        public int getPreferredQueueSize(long playbackPositionUs,
        +                                 java.util.List<? extends MediaChunk> queue)
        +
        Description copied from interface: ChunkSource
        +
        Evaluates whether MediaChunks should be removed from the back of the queue. +

        + Removing MediaChunks from the back of the queue can be useful if they could be replaced + with chunks of a significantly higher quality (e.g. because the available bandwidth has + substantially increased).

        +
        +
        Specified by:
        +
        getPreferredQueueSize in interface ChunkSource
        +
        Parameters:
        +
        playbackPositionUs - The current playback position.
        +
        queue - The queue of buffered MediaChunks.
        +
        Returns:
        +
        The preferred queue size.
        +
        +
      • +
      + + + +
        +
      • +

        getNextChunk

        +
        public final void getNextChunk(MediaChunk previous,
        +                               long playbackPositionUs,
        +                               ChunkHolder out)
        +
        Description copied from interface: ChunkSource
        +
        Returns the next chunk to load. +

        + If a chunk is available then ChunkHolder.chunk is set. If the end of the stream has + been reached then ChunkHolder.endOfStream is set. If a chunk is not available but the + end of the stream has not been reached, the ChunkHolder is not modified.

        +
        +
        Specified by:
        +
        getNextChunk in interface ChunkSource
        +
        Parameters:
        +
        previous - The most recently loaded media chunk.
        +
        playbackPositionUs - The current playback position. If previous is null then this + parameter is the position from which playback is expected to start (or restart) and hence + should be interpreted as a seek position.
        +
        out - A holder to populate.
        +
        +
      • +
      + + + +
        +
      • +

        onChunkLoadCompleted

        +
        public void onChunkLoadCompleted(Chunk chunk)
        +
        Description copied from interface: ChunkSource
        +
        Called when the ChunkSampleStream has finished loading a chunk obtained from this + source. +

        + This method should only be called when the source is enabled.

        +
        +
        Specified by:
        +
        onChunkLoadCompleted in interface ChunkSource
        +
        Parameters:
        +
        chunk - The chunk whose load has been completed.
        +
        +
      • +
      + + + +
        +
      • +

        onChunkLoadError

        +
        public boolean onChunkLoadError(Chunk chunk,
        +                                boolean cancelable,
        +                                java.lang.Exception e)
        +
        Description copied from interface: ChunkSource
        +
        Called when the ChunkSampleStream encounters an error loading a chunk obtained from + this source. +

        + This method should only be called when the source is enabled.

        +
        +
        Specified by:
        +
        onChunkLoadError in interface ChunkSource
        +
        Parameters:
        +
        chunk - The chunk whose load encountered the error.
        +
        cancelable - Whether the load can be canceled.
        +
        e - The error.
        +
        Returns:
        +
        Whether the load should be canceled.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/AdaptationSet.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/AdaptationSet.html new file mode 100644 index 00000000..f2ef523d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/AdaptationSet.html @@ -0,0 +1,319 @@ + + + + + +AdaptationSet (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class AdaptationSet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.manifest.AdaptationSet
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class AdaptationSet
    +extends java.lang.Object
    +
    Represents a set of interchangeable encoded versions of a media content component.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AdaptationSet(int id, + int type, + java.util.List<Representation> representations) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        id

        +
        public final int id
        +
      • +
      + + + +
        +
      • +

        type

        +
        public final int type
        +
      • +
      + + + +
        +
      • +

        representations

        +
        public final java.util.List<Representation> representations
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AdaptationSet

        +
        public AdaptationSet(int id,
        +                     int type,
        +                     java.util.List<Representation> representations)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/DashManifest.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/DashManifest.html new file mode 100644 index 00000000..3c5cf3f6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/DashManifest.html @@ -0,0 +1,467 @@ + + + + + +DashManifest (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class DashManifest

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.manifest.DashManifest
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class DashManifest
    +extends java.lang.Object
    +
    Represents a DASH media presentation description (mpd).
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        availabilityStartTime

        +
        public final long availabilityStartTime
        +
      • +
      + + + +
        +
      • +

        duration

        +
        public final long duration
        +
      • +
      + + + +
        +
      • +

        minBufferTime

        +
        public final long minBufferTime
        +
      • +
      + + + +
        +
      • +

        dynamic

        +
        public final boolean dynamic
        +
      • +
      + + + +
        +
      • +

        minUpdatePeriod

        +
        public final long minUpdatePeriod
        +
      • +
      + + + +
        +
      • +

        timeShiftBufferDepth

        +
        public final long timeShiftBufferDepth
        +
      • +
      + + + +
        +
      • +

        suggestedPresentationDelay

        +
        public final long suggestedPresentationDelay
        +
      • +
      + + + + + + + +
        +
      • +

        location

        +
        public final android.net.Uri location
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DashManifest

        +
        public DashManifest(long availabilityStartTime,
        +                    long duration,
        +                    long minBufferTime,
        +                    boolean dynamic,
        +                    long minUpdatePeriod,
        +                    long timeShiftBufferDepth,
        +                    long suggestedPresentationDelay,
        +                    UtcTimingElement utcTiming,
        +                    android.net.Uri location,
        +                    java.util.List<Period> periods)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPeriodCount

        +
        public final int getPeriodCount()
        +
      • +
      + + + +
        +
      • +

        getPeriod

        +
        public final Period getPeriod(int index)
        +
      • +
      + + + +
        +
      • +

        getPeriodDurationMs

        +
        public final long getPeriodDurationMs(int index)
        +
      • +
      + + + +
        +
      • +

        getPeriodDurationUs

        +
        public final long getPeriodDurationUs(int index)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/DashManifestParser.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/DashManifestParser.html new file mode 100644 index 00000000..3c157f63 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/DashManifestParser.html @@ -0,0 +1,1073 @@ + + + + + +DashManifestParser (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class DashManifestParser

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.xml.sax.helpers.DefaultHandler
    • +
    • +
        +
      • com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    ParsingLoadable.Parser<DashManifest>, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
    +
    +
    +
    +
    public class DashManifestParser
    +extends org.xml.sax.helpers.DefaultHandler
    +implements ParsingLoadable.Parser<DashManifest>
    +
    A parser of media presentation description files.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DashManifestParser

        +
        public DashManifestParser()
        +
        Equivalent to calling new DashManifestParser(null).
        +
      • +
      + + + +
        +
      • +

        DashManifestParser

        +
        public DashManifestParser(java.lang.String contentId)
        +
        +
        Parameters:
        +
        contentId - An optional content identifier to include in the parsed manifest.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public DashManifest parse(android.net.Uri uri,
        +                          java.io.InputStream inputStream)
        +                   throws java.io.IOException
        +
        Description copied from interface: ParsingLoadable.Parser
        +
        Parses an object from a response.
        +
        +
        Specified by:
        +
        parse in interface ParsingLoadable.Parser<DashManifest>
        +
        Parameters:
        +
        uri - The source Uri of the response, after any redirection.
        +
        inputStream - An InputStream from which the response data can be read.
        +
        Returns:
        +
        The parsed object.
        +
        Throws:
        +
        ParserException - If an error occurs parsing the data.
        +
        java.io.IOException - If an error occurs reading data from the stream.
        +
        +
      • +
      + + + +
        +
      • +

        parseMediaPresentationDescription

        +
        protected DashManifest parseMediaPresentationDescription(org.xmlpull.v1.XmlPullParser xpp,
        +                                                         java.lang.String baseUrl)
        +                                                  throws org.xmlpull.v1.XmlPullParserException,
        +                                                         java.io.IOException,
        +                                                         java.text.ParseException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        java.text.ParseException
        +
        +
      • +
      + + + +
        +
      • +

        buildMediaPresentationDescription

        +
        protected DashManifest buildMediaPresentationDescription(long availabilityStartTime,
        +                                                         long durationMs,
        +                                                         long minBufferTimeMs,
        +                                                         boolean dynamic,
        +                                                         long minUpdateTimeMs,
        +                                                         long timeShiftBufferDepthMs,
        +                                                         long suggestedPresentationDelayMs,
        +                                                         UtcTimingElement utcTiming,
        +                                                         android.net.Uri location,
        +                                                         java.util.List<Period> periods)
        +
      • +
      + + + +
        +
      • +

        parseUtcTiming

        +
        protected UtcTimingElement parseUtcTiming(org.xmlpull.v1.XmlPullParser xpp)
        +
      • +
      + + + +
        +
      • +

        buildUtcTimingElement

        +
        protected UtcTimingElement buildUtcTimingElement(java.lang.String schemeIdUri,
        +                                                 java.lang.String value)
        +
      • +
      + + + +
        +
      • +

        parsePeriod

        +
        protected android.util.Pair<Period,java.lang.Long> parsePeriod(org.xmlpull.v1.XmlPullParser xpp,
        +                                                               java.lang.String baseUrl,
        +                                                               long defaultStartMs)
        +                                                        throws org.xmlpull.v1.XmlPullParserException,
        +                                                               java.io.IOException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        buildPeriod

        +
        protected Period buildPeriod(java.lang.String id,
        +                             long startMs,
        +                             java.util.List<AdaptationSet> adaptationSets)
        +
      • +
      + + + +
        +
      • +

        parseAdaptationSet

        +
        protected AdaptationSet parseAdaptationSet(org.xmlpull.v1.XmlPullParser xpp,
        +                                           java.lang.String baseUrl,
        +                                           SegmentBase segmentBase)
        +                                    throws org.xmlpull.v1.XmlPullParserException,
        +                                           java.io.IOException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        buildAdaptationSet

        +
        protected AdaptationSet buildAdaptationSet(int id,
        +                                           int contentType,
        +                                           java.util.List<Representation> representations)
        +
      • +
      + + + +
        +
      • +

        parseContentType

        +
        protected int parseContentType(org.xmlpull.v1.XmlPullParser xpp)
        +
      • +
      + + + +
        +
      • +

        getContentType

        +
        protected int getContentType(Format format)
        +
      • +
      + + + +
        +
      • +

        parseContentProtection

        +
        protected DrmInitData.SchemeData parseContentProtection(org.xmlpull.v1.XmlPullParser xpp)
        +                                                 throws org.xmlpull.v1.XmlPullParserException,
        +                                                        java.io.IOException
        +
        Parses a ContentProtection element.
        +
        +
        Parameters:
        +
        xpp - The parser from which to read.
        +
        Returns:
        +
        DrmInitData.SchemeData parsed from the ContentProtection element, or null if the element is + unsupported.
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException - If an error occurs parsing the element.
        +
        java.io.IOException - If an error occurs reading the element.
        +
        +
      • +
      + + + +
        +
      • +

        parseAdaptationSetChild

        +
        protected void parseAdaptationSetChild(org.xmlpull.v1.XmlPullParser xpp)
        +                                throws org.xmlpull.v1.XmlPullParserException,
        +                                       java.io.IOException
        +
        Parses children of AdaptationSet elements not specifically parsed elsewhere.
        +
        +
        Parameters:
        +
        xpp - The XmpPullParser from which the AdaptationSet child should be parsed.
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException - If an error occurs parsing the element.
        +
        java.io.IOException - If an error occurs reading the element.
        +
        +
      • +
      + + + +
        +
      • +

        parseRepresentation

        +
        protected com.google.android.exoplayer2.source.dash.manifest.DashManifestParser.RepresentationInfo parseRepresentation(org.xmlpull.v1.XmlPullParser xpp,
        +                                                                                                                       java.lang.String baseUrl,
        +                                                                                                                       java.lang.String adaptationSetMimeType,
        +                                                                                                                       java.lang.String adaptationSetCodecs,
        +                                                                                                                       int adaptationSetWidth,
        +                                                                                                                       int adaptationSetHeight,
        +                                                                                                                       float adaptationSetFrameRate,
        +                                                                                                                       int adaptationSetAudioChannels,
        +                                                                                                                       int adaptationSetAudioSamplingRate,
        +                                                                                                                       java.lang.String adaptationSetLanguage,
        +                                                                                                                       SegmentBase segmentBase)
        +                                                                                                                throws org.xmlpull.v1.XmlPullParserException,
        +                                                                                                                       java.io.IOException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        buildFormat

        +
        protected Format buildFormat(java.lang.String id,
        +                             java.lang.String containerMimeType,
        +                             int width,
        +                             int height,
        +                             float frameRate,
        +                             int audioChannels,
        +                             int audioSamplingRate,
        +                             int bitrate,
        +                             java.lang.String language,
        +                             java.lang.String codecs)
        +
      • +
      + + + +
        +
      • +

        buildRepresentation

        +
        protected Representation buildRepresentation(com.google.android.exoplayer2.source.dash.manifest.DashManifestParser.RepresentationInfo representationInfo,
        +                                             java.lang.String contentId,
        +                                             java.util.ArrayList<DrmInitData.SchemeData> extraDrmSchemeDatas)
        +
      • +
      + + + +
        +
      • +

        parseSegmentBase

        +
        protected SegmentBase.SingleSegmentBase parseSegmentBase(org.xmlpull.v1.XmlPullParser xpp,
        +                                                         java.lang.String baseUrl,
        +                                                         SegmentBase.SingleSegmentBase parent)
        +                                                  throws org.xmlpull.v1.XmlPullParserException,
        +                                                         java.io.IOException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        buildSingleSegmentBase

        +
        protected SegmentBase.SingleSegmentBase buildSingleSegmentBase(RangedUri initialization,
        +                                                               long timescale,
        +                                                               long presentationTimeOffset,
        +                                                               java.lang.String baseUrl,
        +                                                               long indexStart,
        +                                                               long indexLength)
        +
      • +
      + + + +
        +
      • +

        parseSegmentList

        +
        protected SegmentBase.SegmentList parseSegmentList(org.xmlpull.v1.XmlPullParser xpp,
        +                                                   java.lang.String baseUrl,
        +                                                   SegmentBase.SegmentList parent)
        +                                            throws org.xmlpull.v1.XmlPullParserException,
        +                                                   java.io.IOException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        +
      • +
      + + + + + + + +
        +
      • +

        parseSegmentTemplate

        +
        protected SegmentBase.SegmentTemplate parseSegmentTemplate(org.xmlpull.v1.XmlPullParser xpp,
        +                                                           java.lang.String baseUrl,
        +                                                           SegmentBase.SegmentTemplate parent)
        +                                                    throws org.xmlpull.v1.XmlPullParserException,
        +                                                           java.io.IOException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        +
      • +
      + + + + + + + +
        +
      • +

        parseSegmentTimeline

        +
        protected java.util.List<SegmentBase.SegmentTimelineElement> parseSegmentTimeline(org.xmlpull.v1.XmlPullParser xpp)
        +                                                                           throws org.xmlpull.v1.XmlPullParserException,
        +                                                                                  java.io.IOException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        +
      • +
      + + + + + + + +
        +
      • +

        parseUrlTemplate

        +
        protected UrlTemplate parseUrlTemplate(org.xmlpull.v1.XmlPullParser xpp,
        +                                       java.lang.String name,
        +                                       UrlTemplate defaultValue)
        +
      • +
      + + + +
        +
      • +

        parseInitialization

        +
        protected RangedUri parseInitialization(org.xmlpull.v1.XmlPullParser xpp,
        +                                        java.lang.String baseUrl)
        +
      • +
      + + + +
        +
      • +

        parseSegmentUrl

        +
        protected RangedUri parseSegmentUrl(org.xmlpull.v1.XmlPullParser xpp,
        +                                    java.lang.String baseUrl)
        +
      • +
      + + + +
        +
      • +

        parseRangedUrl

        +
        protected RangedUri parseRangedUrl(org.xmlpull.v1.XmlPullParser xpp,
        +                                   java.lang.String baseUrl,
        +                                   java.lang.String urlAttribute,
        +                                   java.lang.String rangeAttribute)
        +
      • +
      + + + +
        +
      • +

        buildRangedUri

        +
        protected RangedUri buildRangedUri(java.lang.String baseUrl,
        +                                   java.lang.String urlText,
        +                                   long rangeStart,
        +                                   long rangeLength)
        +
      • +
      + + + +
        +
      • +

        parseAudioChannelConfiguration

        +
        protected int parseAudioChannelConfiguration(org.xmlpull.v1.XmlPullParser xpp)
        +                                      throws org.xmlpull.v1.XmlPullParserException,
        +                                             java.io.IOException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        parseFrameRate

        +
        protected static float parseFrameRate(org.xmlpull.v1.XmlPullParser xpp,
        +                                      float defaultValue)
        +
      • +
      + + + +
        +
      • +

        parseDuration

        +
        protected static long parseDuration(org.xmlpull.v1.XmlPullParser xpp,
        +                                    java.lang.String name,
        +                                    long defaultValue)
        +
      • +
      + + + +
        +
      • +

        parseDateTime

        +
        protected static long parseDateTime(org.xmlpull.v1.XmlPullParser xpp,
        +                                    java.lang.String name,
        +                                    long defaultValue)
        +                             throws java.text.ParseException
        +
        +
        Throws:
        +
        java.text.ParseException
        +
        +
      • +
      + + + +
        +
      • +

        parseBaseUrl

        +
        protected static java.lang.String parseBaseUrl(org.xmlpull.v1.XmlPullParser xpp,
        +                                               java.lang.String parentBaseUrl)
        +                                        throws org.xmlpull.v1.XmlPullParserException,
        +                                               java.io.IOException
        +
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        parseInt

        +
        protected static int parseInt(org.xmlpull.v1.XmlPullParser xpp,
        +                              java.lang.String name,
        +                              int defaultValue)
        +
      • +
      + + + +
        +
      • +

        parseLong

        +
        protected static long parseLong(org.xmlpull.v1.XmlPullParser xpp,
        +                                java.lang.String name,
        +                                long defaultValue)
        +
      • +
      + + + +
        +
      • +

        parseString

        +
        protected static java.lang.String parseString(org.xmlpull.v1.XmlPullParser xpp,
        +                                              java.lang.String name,
        +                                              java.lang.String defaultValue)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Period.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Period.html new file mode 100644 index 00000000..d336e189 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Period.html @@ -0,0 +1,362 @@ + + + + + +Period (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class Period

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.manifest.Period
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Period
    +extends java.lang.Object
    +
    Encapsulates media content components over a contiguous period of time.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.util.List<AdaptationSet>adaptationSets +
      The adaptation sets belonging to the period.
      +
      java.lang.Stringid +
      The period identifier, if one exists.
      +
      longstartMs +
      The start time of the period in milliseconds.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Period(java.lang.String id, + long start, + java.util.List<AdaptationSet> adaptationSets) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetAdaptationSetIndex(int type) +
      Returns the index of the first adaptation set of a given type, or C.INDEX_UNSET if no + adaptation set of the specified type exists.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        id

        +
        public final java.lang.String id
        +
        The period identifier, if one exists.
        +
      • +
      + + + +
        +
      • +

        startMs

        +
        public final long startMs
        +
        The start time of the period in milliseconds.
        +
      • +
      + + + +
        +
      • +

        adaptationSets

        +
        public final java.util.List<AdaptationSet> adaptationSets
        +
        The adaptation sets belonging to the period.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Period

        +
        public Period(java.lang.String id,
        +              long start,
        +              java.util.List<AdaptationSet> adaptationSets)
        +
        +
        Parameters:
        +
        id - The period identifier. May be null.
        +
        start - The start time of the period in milliseconds.
        +
        adaptationSets - The adaptation sets belonging to the period.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAdaptationSetIndex

        +
        public int getAdaptationSetIndex(int type)
        +
        Returns the index of the first adaptation set of a given type, or C.INDEX_UNSET if no + adaptation set of the specified type exists.
        +
        +
        Parameters:
        +
        type - An adaptation set type.
        +
        Returns:
        +
        The index of the first adaptation set of the specified type, or C.INDEX_UNSET.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/RangedUri.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/RangedUri.html new file mode 100644 index 00000000..90e93518 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/RangedUri.html @@ -0,0 +1,430 @@ + + + + + +RangedUri (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class RangedUri

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.manifest.RangedUri
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class RangedUri
    +extends java.lang.Object
    +
    Defines a range of data located at a Uri.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      longlength +
      The length of the range, or C.LENGTH_UNSET to indicate that the range is unbounded.
      +
      longstart +
      The (zero based) index of the first byte of the range.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      RangedUri(java.lang.String baseUri, + java.lang.String referenceUri, + long start, + long length) +
      Constructs an ranged uri.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      RangedUriattemptMerge(RangedUri other) +
      Attempts to merge this RangedUri with another.
      +
      booleanequals(java.lang.Object obj) 
      android.net.UrigetUri() +
      Returns the Uri represented by the instance.
      +
      java.lang.StringgetUriString() +
      Returns the uri represented by the instance as a string.
      +
      inthashCode() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        start

        +
        public final long start
        +
        The (zero based) index of the first byte of the range.
        +
      • +
      + + + +
        +
      • +

        length

        +
        public final long length
        +
        The length of the range, or C.LENGTH_UNSET to indicate that the range is unbounded.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RangedUri

        +
        public RangedUri(java.lang.String baseUri,
        +                 java.lang.String referenceUri,
        +                 long start,
        +                 long length)
        +
        Constructs an ranged uri.
        +
        +
        Parameters:
        +
        baseUri - A uri that can form the base of the uri defined by the instance.
        +
        referenceUri - A reference uri that should be resolved with respect to baseUri.
        +
        start - The (zero based) index of the first byte of the range.
        +
        length - The length of the range, or C.LENGTH_UNSET to indicate that the range is + unbounded.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Returns the Uri represented by the instance.
        +
        +
        Returns:
        +
        The Uri represented by the instance.
        +
        +
      • +
      + + + +
        +
      • +

        getUriString

        +
        public java.lang.String getUriString()
        +
        Returns the uri represented by the instance as a string.
        +
        +
        Returns:
        +
        The uri represented by the instance.
        +
        +
      • +
      + + + +
        +
      • +

        attemptMerge

        +
        public RangedUri attemptMerge(RangedUri other)
        +
        Attempts to merge this RangedUri with another. +

        + A merge is successful if both instances define the same Uri, and if one starts the byte + after the other ends, forming a contiguous region with no overlap. +

        + If other is null then the merge is considered unsuccessful, and null is returned.

        +
        +
        Parameters:
        +
        other - The RangedUri to merge.
        +
        Returns:
        +
        The merged RangedUri if the merge was successful. Null otherwise.
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Representation.MultiSegmentRepresentation.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Representation.MultiSegmentRepresentation.html new file mode 100644 index 00000000..29f09af0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Representation.MultiSegmentRepresentation.html @@ -0,0 +1,571 @@ + + + + + +Representation.MultiSegmentRepresentation (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class Representation.MultiSegmentRepresentation

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MultiSegmentRepresentation

        +
        public MultiSegmentRepresentation(java.lang.String contentId,
        +                                  long revisionId,
        +                                  Format format,
        +                                  SegmentBase.MultiSegmentBase segmentBase,
        +                                  java.lang.String customCacheKey)
        +
        +
        Parameters:
        +
        contentId - Identifies the piece of content to which this representation belongs.
        +
        revisionId - Identifies the revision of the content.
        +
        format - The format of the representation.
        +
        segmentBase - The segment base underlying the representation.
        +
        customCacheKey - A custom value to be returned from Representation.getCacheKey(), or null.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getIndexUri

        +
        public RangedUri getIndexUri()
        +
        Description copied from class: Representation
        +
        Returns a RangedUri defining the location of the representation's segment index, or + null if the representation provides an index directly.
        +
        +
        Specified by:
        +
        getIndexUri in class Representation
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getSegmentUrl

        +
        public RangedUri getSegmentUrl(int segmentIndex)
        +
        Description copied from interface: DashSegmentIndex
        +
        Returns a RangedUri defining the location of a segment.
        +
        +
        Specified by:
        +
        getSegmentUrl in interface DashSegmentIndex
        +
        Parameters:
        +
        segmentIndex - The segment number.
        +
        Returns:
        +
        The RangedUri defining the location of the data.
        +
        +
      • +
      + + + +
        +
      • +

        getSegmentNum

        +
        public int getSegmentNum(long timeUs,
        +                         long periodDurationUs)
        +
        Description copied from interface: DashSegmentIndex
        +
        Returns the segment number of the segment containing a given media time. +

        + If the given media time is outside the range of the index, then the returned segment number is + clamped to DashSegmentIndex.getFirstSegmentNum() (if the given media time is earlier the start of the + first segment) or DashSegmentIndex.getLastSegmentNum(long) (if the given media time is later then the + end of the last segment).

        +
        +
        Specified by:
        +
        getSegmentNum in interface DashSegmentIndex
        +
        Parameters:
        +
        timeUs - The time in microseconds.
        +
        periodDurationUs - The duration of the enclosing period in microseconds, or + C.TIME_UNSET if the period's duration is not yet known.
        +
        Returns:
        +
        The segment number of the corresponding segment.
        +
        +
      • +
      + + + +
        +
      • +

        getTimeUs

        +
        public long getTimeUs(int segmentIndex)
        +
        Description copied from interface: DashSegmentIndex
        +
        Returns the start time of a segment.
        +
        +
        Specified by:
        +
        getTimeUs in interface DashSegmentIndex
        +
        Parameters:
        +
        segmentIndex - The segment number.
        +
        Returns:
        +
        The corresponding start time in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getDurationUs

        +
        public long getDurationUs(int segmentIndex,
        +                          long periodDurationUs)
        +
        Description copied from interface: DashSegmentIndex
        +
        Returns the duration of a segment.
        +
        +
        Specified by:
        +
        getDurationUs in interface DashSegmentIndex
        +
        Parameters:
        +
        segmentIndex - The segment number.
        +
        periodDurationUs - The duration of the enclosing period in microseconds, or + C.TIME_UNSET if the period's duration is not yet known.
        +
        Returns:
        +
        The duration of the segment, in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getFirstSegmentNum

        +
        public int getFirstSegmentNum()
        +
        Description copied from interface: DashSegmentIndex
        +
        Returns the segment number of the first segment.
        +
        +
        Specified by:
        +
        getFirstSegmentNum in interface DashSegmentIndex
        +
        Returns:
        +
        The segment number of the first segment.
        +
        +
      • +
      + + + +
        +
      • +

        getLastSegmentNum

        +
        public int getLastSegmentNum(long periodDurationUs)
        +
        Description copied from interface: DashSegmentIndex
        +
        Returns the segment number of the last segment, or DashSegmentIndex.INDEX_UNBOUNDED. +

        + An unbounded index occurs if a dynamic manifest uses SegmentTemplate elements without a + SegmentTimeline element, and if the period duration is not yet known. In this case the caller + must manually determine the window of currently available segments.

        +
        +
        Specified by:
        +
        getLastSegmentNum in interface DashSegmentIndex
        +
        Parameters:
        +
        periodDurationUs - The duration of the enclosing period in microseconds, or + C.TIME_UNSET if the period's duration is not yet known.
        +
        Returns:
        +
        The segment number of the last segment, or DashSegmentIndex.INDEX_UNBOUNDED.
        +
        +
      • +
      + + + +
        +
      • +

        isExplicit

        +
        public boolean isExplicit()
        +
        Description copied from interface: DashSegmentIndex
        +
        Returns true if segments are defined explicitly by the index. +

        + If true is returned, each segment is defined explicitly by the index data, and all of the + listed segments are guaranteed to be available at the time when the index was obtained. +

        + If false is returned then segment information was derived from properties such as a fixed + segment duration. If the presentation is dynamic, it's possible that only a subset of the + segments are available.

        +
        +
        Specified by:
        +
        isExplicit in interface DashSegmentIndex
        +
        Returns:
        +
        Whether segments are defined explicitly by the index.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Representation.SingleSegmentRepresentation.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Representation.SingleSegmentRepresentation.html new file mode 100644 index 00000000..e014dc93 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Representation.SingleSegmentRepresentation.html @@ -0,0 +1,457 @@ + + + + + +Representation.SingleSegmentRepresentation (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class Representation.SingleSegmentRepresentation

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    Representation
    +
    +
    +
    +
    public static class Representation.SingleSegmentRepresentation
    +extends Representation
    +
    A DASH representation consisting of a single segment.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        uri

        +
        public final android.net.Uri uri
        +
        The uri of the single segment.
        +
      • +
      + + + +
        +
      • +

        contentLength

        +
        public final long contentLength
        +
        The content length, or C.LENGTH_UNSET if unknown.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SingleSegmentRepresentation

        +
        public SingleSegmentRepresentation(java.lang.String contentId,
        +                                   long revisionId,
        +                                   Format format,
        +                                   SegmentBase.SingleSegmentBase segmentBase,
        +                                   java.lang.String customCacheKey,
        +                                   long contentLength)
        +
        +
        Parameters:
        +
        contentId - Identifies the piece of content to which this representation belongs.
        +
        revisionId - Identifies the revision of the content.
        +
        format - The format of the representation.
        +
        segmentBase - The segment base underlying the representation.
        +
        customCacheKey - A custom value to be returned from Representation.getCacheKey(), or null.
        +
        contentLength - The content length, or C.LENGTH_UNSET if unknown.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newInstance

        +
        public static Representation.SingleSegmentRepresentation newInstance(java.lang.String contentId,
        +                                                                     long revisionId,
        +                                                                     Format format,
        +                                                                     java.lang.String uri,
        +                                                                     long initializationStart,
        +                                                                     long initializationEnd,
        +                                                                     long indexStart,
        +                                                                     long indexEnd,
        +                                                                     java.lang.String customCacheKey,
        +                                                                     long contentLength)
        +
        +
        Parameters:
        +
        contentId - Identifies the piece of content to which this representation belongs.
        +
        revisionId - Identifies the revision of the content.
        +
        format - The format of the representation.
        +
        uri - The uri of the media.
        +
        initializationStart - The offset of the first byte of initialization data.
        +
        initializationEnd - The offset of the last byte of initialization data.
        +
        indexStart - The offset of the first byte of index data.
        +
        indexEnd - The offset of the last byte of index data.
        +
        customCacheKey - A custom value to be returned from Representation.getCacheKey(), or null.
        +
        contentLength - The content length, or C.LENGTH_UNSET if unknown.
        +
        +
      • +
      + + + +
        +
      • +

        getIndexUri

        +
        public RangedUri getIndexUri()
        +
        Description copied from class: Representation
        +
        Returns a RangedUri defining the location of the representation's segment index, or + null if the representation provides an index directly.
        +
        +
        Specified by:
        +
        getIndexUri in class Representation
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Representation.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Representation.html new file mode 100644 index 00000000..454c4901 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/Representation.html @@ -0,0 +1,504 @@ + + + + + +Representation (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class Representation

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.manifest.Representation
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        contentId

        +
        public final java.lang.String contentId
        +
        Identifies the piece of content to which this Representation belongs. +

        + For example, all Representations belonging to a video should have the same content + identifier that uniquely identifies that video.

        +
      • +
      + + + +
        +
      • +

        revisionId

        +
        public final long revisionId
        +
        Identifies the revision of the content. +

        + If the media for a given (contentId can change over time without a change to the + format's Format.id (e.g. as a result of re-encoding the media with an + updated encoder), then this identifier must uniquely identify the revision of the media. The + timestamp at which the media was encoded is often a suitable.

        +
      • +
      + + + +
        +
      • +

        format

        +
        public final Format format
        +
        The format of the representation.
        +
      • +
      + + + +
        +
      • +

        presentationTimeOffsetUs

        +
        public final long presentationTimeOffsetUs
        +
        The offset of the presentation timestamps in the media stream relative to media time.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newInstance

        +
        public static Representation newInstance(java.lang.String contentId,
        +                                         long revisionId,
        +                                         Format format,
        +                                         SegmentBase segmentBase)
        +
        Constructs a new instance.
        +
        +
        Parameters:
        +
        contentId - Identifies the piece of content to which this representation belongs.
        +
        revisionId - Identifies the revision of the content.
        +
        format - The format of the representation.
        +
        segmentBase - A segment base element for the representation.
        +
        Returns:
        +
        The constructed instance.
        +
        +
      • +
      + + + +
        +
      • +

        newInstance

        +
        public static Representation newInstance(java.lang.String contentId,
        +                                         long revisionId,
        +                                         Format format,
        +                                         SegmentBase segmentBase,
        +                                         java.lang.String customCacheKey)
        +
        Constructs a new instance.
        +
        +
        Parameters:
        +
        contentId - Identifies the piece of content to which this representation belongs.
        +
        revisionId - Identifies the revision of the content.
        +
        format - The format of the representation.
        +
        segmentBase - A segment base element for the representation.
        +
        customCacheKey - A custom value to be returned from getCacheKey(), or null.
        +
        Returns:
        +
        The constructed instance.
        +
        +
      • +
      + + + +
        +
      • +

        getInitializationUri

        +
        public RangedUri getInitializationUri()
        +
        Returns a RangedUri defining the location of the representation's initialization data, + or null if no initialization data exists.
        +
      • +
      + + + +
        +
      • +

        getIndexUri

        +
        public abstract RangedUri getIndexUri()
        +
        Returns a RangedUri defining the location of the representation's segment index, or + null if the representation provides an index directly.
        +
      • +
      + + + +
        +
      • +

        getIndex

        +
        public abstract DashSegmentIndex getIndex()
        +
        Returns an index if the representation provides one directly, or null otherwise.
        +
      • +
      + + + +
        +
      • +

        getCacheKey

        +
        public java.lang.String getCacheKey()
        +
        Returns a cache key for the representation, in the format + contentId + "." + format.id + "." + revisionId.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.MultiSegmentBase.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.MultiSegmentBase.html new file mode 100644 index 00000000..11a2af6d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.MultiSegmentBase.html @@ -0,0 +1,447 @@ + + + + + +SegmentBase.MultiSegmentBase (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class SegmentBase.MultiSegmentBase

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MultiSegmentBase

        +
        public MultiSegmentBase(RangedUri initialization,
        +                        long timescale,
        +                        long presentationTimeOffset,
        +                        int startNumber,
        +                        long duration,
        +                        java.util.List<SegmentBase.SegmentTimelineElement> segmentTimeline)
        +
        +
        Parameters:
        +
        initialization - A RangedUri corresponding to initialization data, if such data + exists.
        +
        timescale - The timescale in units per second.
        +
        presentationTimeOffset - The presentation time offset. The value in seconds is the + division of this value and timescale.
        +
        startNumber - The sequence number of the first segment.
        +
        duration - The duration of each segment in the case of fixed duration segments. The + value in seconds is the division of this value and timescale. If + segmentTimeline is non-null then this parameter is ignored.
        +
        segmentTimeline - A segment timeline corresponding to the segments. If null, then + segments are assumed to be of fixed duration as specified by the duration + parameter.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SegmentList.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SegmentList.html new file mode 100644 index 00000000..2fef0e11 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SegmentList.html @@ -0,0 +1,393 @@ + + + + + +SegmentBase.SegmentList (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class SegmentBase.SegmentList

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SegmentList

        +
        public SegmentList(RangedUri initialization,
        +                   long timescale,
        +                   long presentationTimeOffset,
        +                   int startNumber,
        +                   long duration,
        +                   java.util.List<SegmentBase.SegmentTimelineElement> segmentTimeline,
        +                   java.util.List<RangedUri> mediaSegments)
        +
        +
        Parameters:
        +
        initialization - A RangedUri corresponding to initialization data, if such data + exists.
        +
        timescale - The timescale in units per second.
        +
        presentationTimeOffset - The presentation time offset. The value in seconds is the + division of this value and timescale.
        +
        startNumber - The sequence number of the first segment.
        +
        duration - The duration of each segment in the case of fixed duration segments. The + value in seconds is the division of this value and timescale. If + segmentTimeline is non-null then this parameter is ignored.
        +
        segmentTimeline - A segment timeline corresponding to the segments. If null, then + segments are assumed to be of fixed duration as specified by the duration + parameter.
        +
        mediaSegments - A list of RangedUris indicating the locations of the segments.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SegmentTemplate.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SegmentTemplate.html new file mode 100644 index 00000000..3f11f473 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SegmentTemplate.html @@ -0,0 +1,410 @@ + + + + + +SegmentBase.SegmentTemplate (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class SegmentBase.SegmentTemplate

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SegmentTemplate

        +
        public SegmentTemplate(RangedUri initialization,
        +                       long timescale,
        +                       long presentationTimeOffset,
        +                       int startNumber,
        +                       long duration,
        +                       java.util.List<SegmentBase.SegmentTimelineElement> segmentTimeline,
        +                       UrlTemplate initializationTemplate,
        +                       UrlTemplate mediaTemplate,
        +                       java.lang.String baseUrl)
        +
        +
        Parameters:
        +
        initialization - A RangedUri corresponding to initialization data, if such data + exists. The value of this parameter is ignored if initializationTemplate is + non-null.
        +
        timescale - The timescale in units per second.
        +
        presentationTimeOffset - The presentation time offset. The value in seconds is the + division of this value and timescale.
        +
        startNumber - The sequence number of the first segment.
        +
        duration - The duration of each segment in the case of fixed duration segments. The + value in seconds is the division of this value and timescale. If + segmentTimeline is non-null then this parameter is ignored.
        +
        segmentTimeline - A segment timeline corresponding to the segments. If null, then + segments are assumed to be of fixed duration as specified by the duration + parameter.
        +
        initializationTemplate - A template defining the location of initialization data, if + such data exists. If non-null then the initialization parameter is ignored. If + null then initialization will be used.
        +
        mediaTemplate - A template defining the location of each media segment.
        +
        baseUrl - A url to use as the base for relative urls generated by the templates.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SegmentTimelineElement.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SegmentTimelineElement.html new file mode 100644 index 00000000..a4d5c781 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SegmentTimelineElement.html @@ -0,0 +1,249 @@ + + + + + +SegmentBase.SegmentTimelineElement (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class SegmentBase.SegmentTimelineElement

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTimelineElement
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    SegmentBase
    +
    +
    +
    +
    public static class SegmentBase.SegmentTimelineElement
    +extends java.lang.Object
    +
    Represents a timeline segment from the MPD's SegmentTimeline list.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SegmentTimelineElement(long startTime, + long duration) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SegmentTimelineElement

        +
        public SegmentTimelineElement(long startTime,
        +                              long duration)
        +
        +
        Parameters:
        +
        startTime - The start time of the element. The value in seconds is the division of this + value and the timescale of the enclosing element.
        +
        duration - The duration of the element. The value in seconds is the division of this + value and the timescale of the enclosing element.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SingleSegmentBase.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SingleSegmentBase.html new file mode 100644 index 00000000..498d3590 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.SingleSegmentBase.html @@ -0,0 +1,377 @@ + + + + + +SegmentBase.SingleSegmentBase (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class SegmentBase.SingleSegmentBase

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        uri

        +
        public final java.lang.String uri
        +
        The uri of the segment.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SingleSegmentBase

        +
        public SingleSegmentBase(RangedUri initialization,
        +                         long timescale,
        +                         long presentationTimeOffset,
        +                         java.lang.String uri,
        +                         long indexStart,
        +                         long indexLength)
        +
        +
        Parameters:
        +
        initialization - A RangedUri corresponding to initialization data, if such data + exists.
        +
        timescale - The timescale in units per second.
        +
        presentationTimeOffset - The presentation time offset. The value in seconds is the + division of this value and timescale.
        +
        uri - The uri of the segment.
        +
        indexStart - The byte offset of the index data in the segment.
        +
        indexLength - The length of the index data in bytes.
        +
        +
      • +
      + + + +
        +
      • +

        SingleSegmentBase

        +
        public SingleSegmentBase(java.lang.String uri)
        +
        +
        Parameters:
        +
        uri - The uri of the segment.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.html new file mode 100644 index 00000000..4dd8ce7e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.html @@ -0,0 +1,358 @@ + + + + + +SegmentBase (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class SegmentBase

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.manifest.SegmentBase
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SegmentBase

        +
        public SegmentBase(RangedUri initialization,
        +                   long timescale,
        +                   long presentationTimeOffset)
        +
        +
        Parameters:
        +
        initialization - A RangedUri corresponding to initialization data, if such data + exists.
        +
        timescale - The timescale in units per second.
        +
        presentationTimeOffset - The presentation time offset. The value in seconds is the + division of this value and timescale.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getInitialization

        +
        public RangedUri getInitialization(Representation representation)
        +
        Returns the RangedUri defining the location of initialization data for a given + representation, or null if no initialization data exists.
        +
        +
        Parameters:
        +
        representation - The Representation for which initialization data is required.
        +
        Returns:
        +
        A RangedUri defining the location of the initialization data, or null.
        +
        +
      • +
      + + + +
        +
      • +

        getPresentationTimeOffsetUs

        +
        public long getPresentationTimeOffsetUs()
        +
        Returns the presentation time offset, in microseconds.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/UrlTemplate.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/UrlTemplate.html new file mode 100644 index 00000000..4ee8f7cd --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/UrlTemplate.html @@ -0,0 +1,282 @@ + + + + + +UrlTemplate (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class UrlTemplate

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.manifest.UrlTemplate
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class UrlTemplate
    +extends java.lang.Object
    +
    A template from which URLs can be built. +

    + URLs are built according to the substitution rules defined in ISO/IEC 23009-1:2014 5.3.9.4.4.

    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringbuildUri(java.lang.String representationId, + int segmentNumber, + int bandwidth, + long time) +
      Constructs a Uri from the template, substituting in the provided arguments.
      +
      static UrlTemplatecompile(java.lang.String template) +
      Compile an instance from the provided template string.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        compile

        +
        public static UrlTemplate compile(java.lang.String template)
        +
        Compile an instance from the provided template string.
        +
        +
        Parameters:
        +
        template - The template.
        +
        Returns:
        +
        The compiled instance.
        +
        Throws:
        +
        java.lang.IllegalArgumentException - If the template string is malformed.
        +
        +
      • +
      + + + +
        +
      • +

        buildUri

        +
        public java.lang.String buildUri(java.lang.String representationId,
        +                                 int segmentNumber,
        +                                 int bandwidth,
        +                                 long time)
        +
        Constructs a Uri from the template, substituting in the provided arguments. +

        + Arguments whose corresponding identifiers are not present in the template will be ignored.

        +
        +
        Parameters:
        +
        representationId - The representation identifier.
        +
        segmentNumber - The segment number.
        +
        bandwidth - The bandwidth.
        +
        time - The time as specified by the segment timeline.
        +
        Returns:
        +
        The built Uri.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/UtcTimingElement.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/UtcTimingElement.html new file mode 100644 index 00000000..53cf876e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/UtcTimingElement.html @@ -0,0 +1,325 @@ + + + + + +UtcTimingElement (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.dash.manifest
+

Class UtcTimingElement

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.dash.manifest.UtcTimingElement
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class UtcTimingElement
    +extends java.lang.Object
    +
    Represents a UTCTiming element.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.StringschemeIdUri 
      java.lang.Stringvalue 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      UtcTimingElement(java.lang.String schemeIdUri, + java.lang.String value) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        schemeIdUri

        +
        public final java.lang.String schemeIdUri
        +
      • +
      + + + +
        +
      • +

        value

        +
        public final java.lang.String value
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UtcTimingElement

        +
        public UtcTimingElement(java.lang.String schemeIdUri,
        +                        java.lang.String value)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/package-frame.html new file mode 100644 index 00000000..6cd2ce9f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/package-frame.html @@ -0,0 +1,35 @@ + + + + + +com.google.android.exoplayer2.source.dash.manifest (library API) + + + + + +

com.google.android.exoplayer2.source.dash.manifest

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/package-summary.html new file mode 100644 index 00000000..f36bc81a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/package-summary.html @@ -0,0 +1,232 @@ + + + + + +com.google.android.exoplayer2.source.dash.manifest (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.source.dash.manifest

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/package-tree.html new file mode 100644 index 00000000..9e25f0d9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/manifest/package-tree.html @@ -0,0 +1,163 @@ + + + + + +com.google.android.exoplayer2.source.dash.manifest Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.source.dash.manifest

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/package-frame.html new file mode 100644 index 00000000..5aa4c579 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/package-frame.html @@ -0,0 +1,29 @@ + + + + + +com.google.android.exoplayer2.source.dash (library API) + + + + + +

com.google.android.exoplayer2.source.dash

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/package-summary.html new file mode 100644 index 00000000..f6d5a5f3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/package-summary.html @@ -0,0 +1,183 @@ + + + + + +com.google.android.exoplayer2.source.dash (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.source.dash

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/package-tree.html new file mode 100644 index 00000000..176c1f21 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/dash/package-tree.html @@ -0,0 +1,148 @@ + + + + + +com.google.android.exoplayer2.source.dash Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.source.dash

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/HlsMediaSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/HlsMediaSource.html new file mode 100644 index 00000000..b214be4b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/HlsMediaSource.html @@ -0,0 +1,468 @@ + + + + + +HlsMediaSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.hls
+

Class HlsMediaSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.hls.HlsMediaSource
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MIN_LOADABLE_RETRY_COUNT

        +
        public static final int DEFAULT_MIN_LOADABLE_RETRY_COUNT
        +
        The default minimum number of times to retry loading data prior to failing.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        prepareSource

        +
        public void prepareSource(MediaSource.Listener listener)
        +
        Description copied from interface: MediaSource
        +
        Starts preparation of the source.
        +
        +
        Specified by:
        +
        prepareSource in interface MediaSource
        +
        Parameters:
        +
        listener - The listener for source events.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowSourceInfoRefreshError

        +
        public void maybeThrowSourceInfoRefreshError()
        +
        Description copied from interface: MediaSource
        +
        Throws any pending error encountered while loading or refreshing source information.
        +
        +
        Specified by:
        +
        maybeThrowSourceInfoRefreshError in interface MediaSource
        +
        +
      • +
      + + + +
        +
      • +

        createPeriod

        +
        public MediaPeriod createPeriod(int index,
        +                                Allocator allocator,
        +                                long positionUs)
        +
        Description copied from interface: MediaSource
        +
        Returns a MediaPeriod corresponding to the period at the specified index.
        +
        +
        Specified by:
        +
        createPeriod in interface MediaSource
        +
        Parameters:
        +
        index - The index of the period.
        +
        allocator - An Allocator from which to obtain media buffer allocations.
        +
        positionUs - The player's current playback position.
        +
        Returns:
        +
        A new MediaPeriod.
        +
        +
      • +
      + + + +
        +
      • +

        releasePeriod

        +
        public void releasePeriod(MediaPeriod mediaPeriod)
        +
        Description copied from interface: MediaSource
        +
        Releases the period.
        +
        +
        Specified by:
        +
        releasePeriod in interface MediaSource
        +
        Parameters:
        +
        mediaPeriod - The period to release.
        +
        +
      • +
      + + + +
        +
      • +

        releaseSource

        +
        public void releaseSource()
        +
        Description copied from interface: MediaSource
        +
        Releases the source. +

        + This method should be called when the source is no longer required. It may be called in any + state.

        +
        +
        Specified by:
        +
        releaseSource in interface MediaSource
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/TimestampAdjusterProvider.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/TimestampAdjusterProvider.html new file mode 100644 index 00000000..5404e1e2 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/TimestampAdjusterProvider.html @@ -0,0 +1,300 @@ + + + + + +TimestampAdjusterProvider (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.hls
+

Class TimestampAdjusterProvider

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.hls.TimestampAdjusterProvider
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class TimestampAdjusterProvider
    +extends java.lang.Object
    +
    Provides TimestampAdjuster instances for use during HLS playbacks.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      TimestampAdjustergetAdjuster(int discontinuitySequence, + long startTimeUs) +
      Returns a TimestampAdjuster suitable for adjusting the pts timestamps contained in + a chunk with a given discontinuity sequence.
      +
      voidreset() +
      Resets the provider.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TimestampAdjusterProvider

        +
        public TimestampAdjusterProvider()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAdjuster

        +
        public TimestampAdjuster getAdjuster(int discontinuitySequence,
        +                                     long startTimeUs)
        +
        Returns a TimestampAdjuster suitable for adjusting the pts timestamps contained in + a chunk with a given discontinuity sequence.
        +
        +
        Parameters:
        +
        discontinuitySequence - The chunk's discontinuity sequence.
        +
        startTimeUs - The chunk's start time.
        +
        Returns:
        +
        A TimestampAdjuster.
        +
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public void reset()
        +
        Resets the provider.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/package-frame.html new file mode 100644 index 00000000..c035ff1f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/package-frame.html @@ -0,0 +1,21 @@ + + + + + +com.google.android.exoplayer2.source.hls (library API) + + + + + +

com.google.android.exoplayer2.source.hls

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/package-summary.html new file mode 100644 index 00000000..b9d5fc41 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/package-summary.html @@ -0,0 +1,148 @@ + + + + + +com.google.android.exoplayer2.source.hls (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.source.hls

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/package-tree.html new file mode 100644 index 00000000..1375ec18 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/package-tree.html @@ -0,0 +1,136 @@ + + + + + +com.google.android.exoplayer2.source.hls Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.source.hls

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMasterPlaylist.HlsUrl.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMasterPlaylist.HlsUrl.html new file mode 100644 index 00000000..a6c3412e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMasterPlaylist.HlsUrl.html @@ -0,0 +1,385 @@ + + + + + +HlsMasterPlaylist.HlsUrl (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.hls.playlist
+

Class HlsMasterPlaylist.HlsUrl

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    HlsMasterPlaylist
    +
    +
    +
    +
    public static final class HlsMasterPlaylist.HlsUrl
    +extends java.lang.Object
    +
    Represents a url in an HLS master playlist.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        name

        +
        public final java.lang.String name
        +
      • +
      + + + +
        +
      • +

        url

        +
        public final java.lang.String url
        +
      • +
      + + + +
        +
      • +

        format

        +
        public final Format format
        +
      • +
      + + + +
        +
      • +

        videoFormat

        +
        public final Format videoFormat
        +
      • +
      + + + +
        +
      • +

        audioFormat

        +
        public final Format audioFormat
        +
      • +
      + + + +
        +
      • +

        textFormats

        +
        public final Format[] textFormats
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HlsUrl

        +
        public HlsUrl(java.lang.String name,
        +              java.lang.String url,
        +              Format format,
        +              Format videoFormat,
        +              Format audioFormat,
        +              Format[] textFormats)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createMediaPlaylistHlsUrl

        +
        public static HlsMasterPlaylist.HlsUrl createMediaPlaylistHlsUrl(java.lang.String baseUri)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMasterPlaylist.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMasterPlaylist.html new file mode 100644 index 00000000..85191576 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMasterPlaylist.html @@ -0,0 +1,374 @@ + + + + + +HlsMasterPlaylist (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.hls.playlist
+

Class HlsMasterPlaylist

+
+
+ +
+
    +
  • +
    +
    +
    public final class HlsMasterPlaylist
    +extends HlsPlaylist
    +
    Represents an HLS master playlist.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylist.Segment.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylist.Segment.html new file mode 100644 index 00000000..c078c524 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylist.Segment.html @@ -0,0 +1,455 @@ + + + + + +HlsMediaPlaylist.Segment (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.hls.playlist
+

Class HlsMediaPlaylist.Segment

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Comparable<java.lang.Long>
    +
    +
    +
    Enclosing class:
    +
    HlsMediaPlaylist
    +
    +
    +
    +
    public static final class HlsMediaPlaylist.Segment
    +extends java.lang.Object
    +implements java.lang.Comparable<java.lang.Long>
    +
    Media segment reference.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Segment(java.lang.String uri, + double durationSecs, + int discontinuitySequenceNumber, + long startTimeUs, + boolean isEncrypted, + java.lang.String encryptionKeyUri, + java.lang.String encryptionIV, + long byterangeOffset, + long byterangeLength) 
      Segment(java.lang.String uri, + long byterangeOffset, + long byterangeLength) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intcompareTo(java.lang.Long startTimeUs) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        url

        +
        public final java.lang.String url
        +
      • +
      + + + +
        +
      • +

        durationSecs

        +
        public final double durationSecs
        +
      • +
      + + + +
        +
      • +

        discontinuitySequenceNumber

        +
        public final int discontinuitySequenceNumber
        +
      • +
      + + + +
        +
      • +

        startTimeUs

        +
        public final long startTimeUs
        +
      • +
      + + + +
        +
      • +

        isEncrypted

        +
        public final boolean isEncrypted
        +
      • +
      + + + +
        +
      • +

        encryptionKeyUri

        +
        public final java.lang.String encryptionKeyUri
        +
      • +
      + + + +
        +
      • +

        encryptionIV

        +
        public final java.lang.String encryptionIV
        +
      • +
      + + + +
        +
      • +

        byterangeOffset

        +
        public final long byterangeOffset
        +
      • +
      + + + +
        +
      • +

        byterangeLength

        +
        public final long byterangeLength
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Segment

        +
        public Segment(java.lang.String uri,
        +               long byterangeOffset,
        +               long byterangeLength)
        +
      • +
      + + + +
        +
      • +

        Segment

        +
        public Segment(java.lang.String uri,
        +               double durationSecs,
        +               int discontinuitySequenceNumber,
        +               long startTimeUs,
        +               boolean isEncrypted,
        +               java.lang.String encryptionKeyUri,
        +               java.lang.String encryptionIV,
        +               long byterangeOffset,
        +               long byterangeLength)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        compareTo

        +
        public int compareTo(java.lang.Long startTimeUs)
        +
        +
        Specified by:
        +
        compareTo in interface java.lang.Comparable<java.lang.Long>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylist.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylist.html new file mode 100644 index 00000000..7c581963 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylist.html @@ -0,0 +1,436 @@ + + + + + +HlsMediaPlaylist (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.hls.playlist
+

Class HlsMediaPlaylist

+
+
+ +
+
    +
  • +
    +
    +
    public final class HlsMediaPlaylist
    +extends HlsPlaylist
    +
    Represents an HLS media playlist.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        ENCRYPTION_METHOD_NONE

        +
        public static final java.lang.String ENCRYPTION_METHOD_NONE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ENCRYPTION_METHOD_AES_128

        +
        public static final java.lang.String ENCRYPTION_METHOD_AES_128
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        mediaSequence

        +
        public final int mediaSequence
        +
      • +
      + + + +
        +
      • +

        targetDurationSecs

        +
        public final int targetDurationSecs
        +
      • +
      + + + +
        +
      • +

        version

        +
        public final int version
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        live

        +
        public final boolean live
        +
      • +
      + + + +
        +
      • +

        durationUs

        +
        public final long durationUs
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HlsMediaPlaylist

        +
        public HlsMediaPlaylist(java.lang.String baseUri,
        +                        int mediaSequence,
        +                        int targetDurationSecs,
        +                        int version,
        +                        boolean live,
        +                        HlsMediaPlaylist.Segment initializationSegment,
        +                        java.util.List<HlsMediaPlaylist.Segment> segments)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylist.Type.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylist.Type.html new file mode 100644 index 00000000..97e73aae --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylist.Type.html @@ -0,0 +1,163 @@ + + + + + +HlsPlaylist.Type (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.hls.playlist
+

Annotation Type HlsPlaylist.Type

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface HlsPlaylist.Type
    +
    The type of playlist.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylist.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylist.html new file mode 100644 index 00000000..7031a9bd --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylist.html @@ -0,0 +1,348 @@ + + + + + +HlsPlaylist (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.hls.playlist
+

Class HlsPlaylist

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    HlsMasterPlaylist, HlsMediaPlaylist
    +
    +
    +
    +
    public abstract class HlsPlaylist
    +extends java.lang.Object
    +
    Represents an HLS playlist.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface HlsPlaylist.Type +
      The type of playlist.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.StringbaseUri 
      inttype 
      static intTYPE_MASTER 
      static intTYPE_MEDIA 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ModifierConstructor and Description
      protected HlsPlaylist(java.lang.String baseUri, + int type) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + + + + + +
        +
      • +

        baseUri

        +
        public final java.lang.String baseUri
        +
      • +
      + + + +
        +
      • +

        type

        +
        public final int type
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HlsPlaylist

        +
        protected HlsPlaylist(java.lang.String baseUri,
        +                      int type)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylistParser.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylistParser.html new file mode 100644 index 00000000..49aa52ab --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/HlsPlaylistParser.html @@ -0,0 +1,294 @@ + + + + + +HlsPlaylistParser (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.hls.playlist
+

Class HlsPlaylistParser

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParser
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      HlsPlaylistParser() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      HlsPlaylistparse(android.net.Uri uri, + java.io.InputStream inputStream) +
      Parses an object from a response.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HlsPlaylistParser

        +
        public HlsPlaylistParser()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public HlsPlaylist parse(android.net.Uri uri,
        +                         java.io.InputStream inputStream)
        +                  throws java.io.IOException
        +
        Description copied from interface: ParsingLoadable.Parser
        +
        Parses an object from a response.
        +
        +
        Specified by:
        +
        parse in interface ParsingLoadable.Parser<HlsPlaylist>
        +
        Parameters:
        +
        uri - The source Uri of the response, after any redirection.
        +
        inputStream - An InputStream from which the response data can be read.
        +
        Returns:
        +
        The parsed object.
        +
        Throws:
        +
        ParserException - If an error occurs parsing the data.
        +
        java.io.IOException - If an error occurs reading data from the stream.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/package-frame.html new file mode 100644 index 00000000..6b87acb6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/package-frame.html @@ -0,0 +1,29 @@ + + + + + +com.google.android.exoplayer2.source.hls.playlist (library API) + + + + + +

com.google.android.exoplayer2.source.hls.playlist

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/package-summary.html new file mode 100644 index 00000000..5e3bbcc0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/package-summary.html @@ -0,0 +1,189 @@ + + + + + +com.google.android.exoplayer2.source.hls.playlist (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.source.hls.playlist

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/package-tree.html new file mode 100644 index 00000000..26b3e0cb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/hls/playlist/package-tree.html @@ -0,0 +1,147 @@ + + + + + +com.google.android.exoplayer2.source.hls.playlist Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.source.hls.playlist

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Annotation Type Hierarchy

+
    +
  • com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist.Type (implements java.lang.annotation.Annotation)
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/package-frame.html new file mode 100644 index 00000000..07922f5b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/package-frame.html @@ -0,0 +1,52 @@ + + + + + +com.google.android.exoplayer2.source (library API) + + + + + +

com.google.android.exoplayer2.source

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/package-summary.html new file mode 100644 index 00000000..b3984b42 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/package-summary.html @@ -0,0 +1,313 @@ + + + + + +com.google.android.exoplayer2.source (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.source

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/package-tree.html new file mode 100644 index 00000000..e93c4cb9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/package-tree.html @@ -0,0 +1,190 @@ + + + + + +com.google.android.exoplayer2.source Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.source

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/DefaultSsChunkSource.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/DefaultSsChunkSource.Factory.html new file mode 100644 index 00000000..e22b04bc --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/DefaultSsChunkSource.Factory.html @@ -0,0 +1,290 @@ + + + + + +DefaultSsChunkSource.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming
+

Class DefaultSsChunkSource.Factory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource.Factory
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/DefaultSsChunkSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/DefaultSsChunkSource.html new file mode 100644 index 00000000..8fe62025 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/DefaultSsChunkSource.html @@ -0,0 +1,474 @@ + + + + + +DefaultSsChunkSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming
+

Class DefaultSsChunkSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultSsChunkSource

        +
        public DefaultSsChunkSource(LoaderErrorThrower manifestLoaderErrorThrower,
        +                            SsManifest manifest,
        +                            int elementIndex,
        +                            TrackSelection trackSelection,
        +                            DataSource dataSource,
        +                            TrackEncryptionBox[] trackEncryptionBoxes)
        +
        +
        Parameters:
        +
        manifestLoaderErrorThrower - Throws errors affecting loading of manifests.
        +
        manifest - The initial manifest.
        +
        elementIndex - The index of the stream element in the manifest.
        +
        trackSelection - The track selection.
        +
        dataSource - A DataSource suitable for loading the media data.
        +
        trackEncryptionBoxes - Track encryption boxes for the stream.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        maybeThrowError

        +
        public void maybeThrowError()
        +                     throws java.io.IOException
        +
        Description copied from interface: ChunkSource
        +
        If the source is currently having difficulty providing chunks, then this method throws the + underlying error. Otherwise does nothing. +

        + This method should only be called after the source has been prepared.

        +
        +
        Specified by:
        +
        maybeThrowError in interface ChunkSource
        +
        Throws:
        +
        java.io.IOException - The underlying error.
        +
        +
      • +
      + + + +
        +
      • +

        getPreferredQueueSize

        +
        public int getPreferredQueueSize(long playbackPositionUs,
        +                                 java.util.List<? extends MediaChunk> queue)
        +
        Description copied from interface: ChunkSource
        +
        Evaluates whether MediaChunks should be removed from the back of the queue. +

        + Removing MediaChunks from the back of the queue can be useful if they could be replaced + with chunks of a significantly higher quality (e.g. because the available bandwidth has + substantially increased).

        +
        +
        Specified by:
        +
        getPreferredQueueSize in interface ChunkSource
        +
        Parameters:
        +
        playbackPositionUs - The current playback position.
        +
        queue - The queue of buffered MediaChunks.
        +
        Returns:
        +
        The preferred queue size.
        +
        +
      • +
      + + + +
        +
      • +

        getNextChunk

        +
        public final void getNextChunk(MediaChunk previous,
        +                               long playbackPositionUs,
        +                               ChunkHolder out)
        +
        Description copied from interface: ChunkSource
        +
        Returns the next chunk to load. +

        + If a chunk is available then ChunkHolder.chunk is set. If the end of the stream has + been reached then ChunkHolder.endOfStream is set. If a chunk is not available but the + end of the stream has not been reached, the ChunkHolder is not modified.

        +
        +
        Specified by:
        +
        getNextChunk in interface ChunkSource
        +
        Parameters:
        +
        previous - The most recently loaded media chunk.
        +
        playbackPositionUs - The current playback position. If previous is null then this + parameter is the position from which playback is expected to start (or restart) and hence + should be interpreted as a seek position.
        +
        out - A holder to populate.
        +
        +
      • +
      + + + +
        +
      • +

        onChunkLoadCompleted

        +
        public void onChunkLoadCompleted(Chunk chunk)
        +
        Description copied from interface: ChunkSource
        +
        Called when the ChunkSampleStream has finished loading a chunk obtained from this + source. +

        + This method should only be called when the source is enabled.

        +
        +
        Specified by:
        +
        onChunkLoadCompleted in interface ChunkSource
        +
        Parameters:
        +
        chunk - The chunk whose load has been completed.
        +
        +
      • +
      + + + +
        +
      • +

        onChunkLoadError

        +
        public boolean onChunkLoadError(Chunk chunk,
        +                                boolean cancelable,
        +                                java.lang.Exception e)
        +
        Description copied from interface: ChunkSource
        +
        Called when the ChunkSampleStream encounters an error loading a chunk obtained from + this source. +

        + This method should only be called when the source is enabled.

        +
        +
        Specified by:
        +
        onChunkLoadError in interface ChunkSource
        +
        Parameters:
        +
        chunk - The chunk whose load encountered the error.
        +
        cancelable - Whether the load can be canceled.
        +
        e - The error.
        +
        Returns:
        +
        Whether the load should be canceled.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/SsChunkSource.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/SsChunkSource.Factory.html new file mode 100644 index 00000000..e0f1e83d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/SsChunkSource.Factory.html @@ -0,0 +1,235 @@ + + + + + +SsChunkSource.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming
+

Interface SsChunkSource.Factory

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/SsChunkSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/SsChunkSource.html new file mode 100644 index 00000000..131576c3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/SsChunkSource.html @@ -0,0 +1,255 @@ + + + + + +SsChunkSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming
+

Interface SsChunkSource

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        updateManifest

        +
        void updateManifest(SsManifest newManifest)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/SsMediaSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/SsMediaSource.html new file mode 100644 index 00000000..5625ce03 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/SsMediaSource.html @@ -0,0 +1,607 @@ + + + + + +SsMediaSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming
+

Class SsMediaSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MIN_LOADABLE_RETRY_COUNT

        +
        public static final int DEFAULT_MIN_LOADABLE_RETRY_COUNT
        +
        The default minimum number of times to retry loading data prior to failing.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_LIVE_PRESENTATION_DELAY_MS

        +
        public static final long DEFAULT_LIVE_PRESENTATION_DELAY_MS
        +
        The default presentation delay for live streams. The presentation delay is the duration by + which the default start position precedes the end of the live window.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        prepareSource

        +
        public void prepareSource(MediaSource.Listener listener)
        +
        Description copied from interface: MediaSource
        +
        Starts preparation of the source.
        +
        +
        Specified by:
        +
        prepareSource in interface MediaSource
        +
        Parameters:
        +
        listener - The listener for source events.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowSourceInfoRefreshError

        +
        public void maybeThrowSourceInfoRefreshError()
        +                                      throws java.io.IOException
        +
        Description copied from interface: MediaSource
        +
        Throws any pending error encountered while loading or refreshing source information.
        +
        +
        Specified by:
        +
        maybeThrowSourceInfoRefreshError in interface MediaSource
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        createPeriod

        +
        public MediaPeriod createPeriod(int index,
        +                                Allocator allocator,
        +                                long positionUs)
        +
        Description copied from interface: MediaSource
        +
        Returns a MediaPeriod corresponding to the period at the specified index.
        +
        +
        Specified by:
        +
        createPeriod in interface MediaSource
        +
        Parameters:
        +
        index - The index of the period.
        +
        allocator - An Allocator from which to obtain media buffer allocations.
        +
        positionUs - The player's current playback position.
        +
        Returns:
        +
        A new MediaPeriod.
        +
        +
      • +
      + + + +
        +
      • +

        releasePeriod

        +
        public void releasePeriod(MediaPeriod period)
        +
        Description copied from interface: MediaSource
        +
        Releases the period.
        +
        +
        Specified by:
        +
        releasePeriod in interface MediaSource
        +
        Parameters:
        +
        period - The period to release.
        +
        +
      • +
      + + + +
        +
      • +

        releaseSource

        +
        public void releaseSource()
        +
        Description copied from interface: MediaSource
        +
        Releases the source. +

        + This method should be called when the source is no longer required. It may be called in any + state.

        +
        +
        Specified by:
        +
        releaseSource in interface MediaSource
        +
        +
      • +
      + + + +
        +
      • +

        onLoadCompleted

        +
        public void onLoadCompleted(ParsingLoadable<SsManifest> loadable,
        +                            long elapsedRealtimeMs,
        +                            long loadDurationMs)
        +
        Description copied from interface: Loader.Callback
        +
        Called when a load has completed. +

        + Note: There is guaranteed to be a memory barrier between Loader.Loadable.load() exiting and + this callback being called.

        +
        +
        Specified by:
        +
        onLoadCompleted in interface Loader.Callback<ParsingLoadable<SsManifest>>
        +
        Parameters:
        +
        loadable - The loadable whose load has completed.
        +
        elapsedRealtimeMs - SystemClock.elapsedRealtime() when the load ended.
        +
        loadDurationMs - The duration of the load.
        +
        +
      • +
      + + + +
        +
      • +

        onLoadCanceled

        +
        public void onLoadCanceled(ParsingLoadable<SsManifest> loadable,
        +                           long elapsedRealtimeMs,
        +                           long loadDurationMs,
        +                           boolean released)
        +
        Description copied from interface: Loader.Callback
        +
        Called when a load has been canceled. +

        + Note: If the Loader has not been released then there is guaranteed to be a memory + barrier between Loader.Loadable.load() exiting and this callback being called. If the + Loader has been released then this callback may be called before + Loader.Loadable.load() exits.

        +
        +
        Specified by:
        +
        onLoadCanceled in interface Loader.Callback<ParsingLoadable<SsManifest>>
        +
        Parameters:
        +
        loadable - The loadable whose load has been canceled.
        +
        elapsedRealtimeMs - SystemClock.elapsedRealtime() when the load was canceled.
        +
        loadDurationMs - The duration of the load up to the point at which it was canceled.
        +
        released - True if the load was canceled because the Loader was released. False + otherwise.
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.ProtectionElement.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.ProtectionElement.html new file mode 100644 index 00000000..f754ecb8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.ProtectionElement.html @@ -0,0 +1,291 @@ + + + + + +SsManifest.ProtectionElement (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming.manifest
+

Class SsManifest.ProtectionElement

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.ProtectionElement
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    SsManifest
    +
    +
    +
    +
    public static class SsManifest.ProtectionElement
    +extends java.lang.Object
    +
    Represents a protection element containing a single header.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      byte[]data 
      java.util.UUIDuuid 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ProtectionElement(java.util.UUID uuid, + byte[] data) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        uuid

        +
        public final java.util.UUID uuid
        +
      • +
      + + + +
        +
      • +

        data

        +
        public final byte[] data
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ProtectionElement

        +
        public ProtectionElement(java.util.UUID uuid,
        +                         byte[] data)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.StreamElement.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.StreamElement.html new file mode 100644 index 00000000..0c9d0ce1 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.StreamElement.html @@ -0,0 +1,544 @@ + + + + + +SsManifest.StreamElement (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming.manifest
+

Class SsManifest.StreamElement

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    SsManifest
    +
    +
    +
    +
    public static class SsManifest.StreamElement
    +extends java.lang.Object
    +
    Represents a StreamIndex element.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      StreamElement(java.lang.String baseUri, + java.lang.String chunkTemplate, + int type, + java.lang.String subType, + long timescale, + java.lang.String name, + int maxWidth, + int maxHeight, + int displayWidth, + int displayHeight, + java.lang.String language, + Format[] formats, + java.util.List<java.lang.Long> chunkStartTimes, + long lastChunkDuration) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      android.net.UribuildRequestUri(int track, + int chunkIndex) +
      Builds a uri for requesting the specified chunk of the specified track.
      +
      longgetChunkDurationUs(int chunkIndex) +
      Returns the duration of the specified chunk.
      +
      intgetChunkIndex(long timeUs) +
      Returns the index of the chunk that contains the specified time.
      +
      longgetStartTimeUs(int chunkIndex) +
      Returns the start time of the specified chunk.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        type

        +
        public final int type
        +
      • +
      + + + +
        +
      • +

        subType

        +
        public final java.lang.String subType
        +
      • +
      + + + +
        +
      • +

        timescale

        +
        public final long timescale
        +
      • +
      + + + +
        +
      • +

        name

        +
        public final java.lang.String name
        +
      • +
      + + + +
        +
      • +

        maxWidth

        +
        public final int maxWidth
        +
      • +
      + + + +
        +
      • +

        maxHeight

        +
        public final int maxHeight
        +
      • +
      + + + +
        +
      • +

        displayWidth

        +
        public final int displayWidth
        +
      • +
      + + + +
        +
      • +

        displayHeight

        +
        public final int displayHeight
        +
      • +
      + + + +
        +
      • +

        language

        +
        public final java.lang.String language
        +
      • +
      + + + +
        +
      • +

        formats

        +
        public final Format[] formats
        +
      • +
      + + + +
        +
      • +

        chunkCount

        +
        public final int chunkCount
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StreamElement

        +
        public StreamElement(java.lang.String baseUri,
        +                     java.lang.String chunkTemplate,
        +                     int type,
        +                     java.lang.String subType,
        +                     long timescale,
        +                     java.lang.String name,
        +                     int maxWidth,
        +                     int maxHeight,
        +                     int displayWidth,
        +                     int displayHeight,
        +                     java.lang.String language,
        +                     Format[] formats,
        +                     java.util.List<java.lang.Long> chunkStartTimes,
        +                     long lastChunkDuration)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getChunkIndex

        +
        public int getChunkIndex(long timeUs)
        +
        Returns the index of the chunk that contains the specified time.
        +
        +
        Parameters:
        +
        timeUs - The time in microseconds.
        +
        Returns:
        +
        The index of the corresponding chunk.
        +
        +
      • +
      + + + +
        +
      • +

        getStartTimeUs

        +
        public long getStartTimeUs(int chunkIndex)
        +
        Returns the start time of the specified chunk.
        +
        +
        Parameters:
        +
        chunkIndex - The index of the chunk.
        +
        Returns:
        +
        The start time of the chunk, in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getChunkDurationUs

        +
        public long getChunkDurationUs(int chunkIndex)
        +
        Returns the duration of the specified chunk.
        +
        +
        Parameters:
        +
        chunkIndex - The index of the chunk.
        +
        Returns:
        +
        The duration of the chunk, in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        buildRequestUri

        +
        public android.net.Uri buildRequestUri(int track,
        +                                       int chunkIndex)
        +
        Builds a uri for requesting the specified chunk of the specified track.
        +
        +
        Parameters:
        +
        track - The index of the track for which to build the URL.
        +
        chunkIndex - The index of the chunk for which to build the URL.
        +
        Returns:
        +
        The request uri.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.html new file mode 100644 index 00000000..131ff74d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.html @@ -0,0 +1,475 @@ + + + + + +SsManifest (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming.manifest
+

Class SsManifest

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class SsManifest.ProtectionElement +
      Represents a protection element containing a single header.
      +
      static class SsManifest.StreamElement +
      Represents a StreamIndex element.
      +
      +
    • +
    + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SsManifest(int majorVersion, + int minorVersion, + long timescale, + long duration, + long dvrWindowLength, + int lookAheadCount, + boolean isLive, + SsManifest.ProtectionElement protectionElement, + SsManifest.StreamElement[] streamElements) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        majorVersion

        +
        public final int majorVersion
        +
        The client manifest major version.
        +
      • +
      + + + +
        +
      • +

        minorVersion

        +
        public final int minorVersion
        +
        The client manifest minor version.
        +
      • +
      + + + +
        +
      • +

        lookAheadCount

        +
        public final int lookAheadCount
        +
        The number of fragments in a lookahead, or UNSET_LOOKAHEAD if the lookahead is + unspecified.
        +
      • +
      + + + +
        +
      • +

        isLive

        +
        public final boolean isLive
        +
        Whether the manifest describes a live presentation still in progress.
        +
      • +
      + + + +
        +
      • +

        protectionElement

        +
        public final SsManifest.ProtectionElement protectionElement
        +
        Content protection information, or null if the content is not protected.
        +
      • +
      + + + + + + + +
        +
      • +

        durationUs

        +
        public final long durationUs
        +
        The overall presentation duration of the media in microseconds, or C.TIME_UNSET + if the duration is unknown.
        +
      • +
      + + + +
        +
      • +

        dvrWindowLengthUs

        +
        public final long dvrWindowLengthUs
        +
        The length of the trailing window for a live broadcast in microseconds, or + C.TIME_UNSET if the stream is not live or if the window length is unspecified.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SsManifest

        +
        public SsManifest(int majorVersion,
        +                  int minorVersion,
        +                  long timescale,
        +                  long duration,
        +                  long dvrWindowLength,
        +                  int lookAheadCount,
        +                  boolean isLive,
        +                  SsManifest.ProtectionElement protectionElement,
        +                  SsManifest.StreamElement[] streamElements)
        +
        +
        Parameters:
        +
        majorVersion - The client manifest major version.
        +
        minorVersion - The client manifest minor version.
        +
        timescale - The timescale of the media as the number of units that pass in one second.
        +
        duration - The overall presentation duration in units of the timescale attribute, or 0 + if the duration is unknown.
        +
        dvrWindowLength - The length of the trailing window in units of the timescale attribute, + or 0 if this attribute is unspecified or not applicable.
        +
        lookAheadCount - The number of fragments in a lookahead, or UNSET_LOOKAHEAD if + this attribute is unspecified or not applicable.
        +
        isLive - True if the manifest describes a live presentation still in progress. False + otherwise.
        +
        protectionElement - Content protection information, or null if the content is not + protected.
        +
        streamElements - The contained stream elements.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParser.MissingFieldException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParser.MissingFieldException.html new file mode 100644 index 00000000..2a191ca4 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParser.MissingFieldException.html @@ -0,0 +1,275 @@ + + + + + +SsManifestParser.MissingFieldException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming.manifest
+

Class SsManifestParser.MissingFieldException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • + +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    SsManifestParser
    +
    +
    +
    +
    public static class SsManifestParser.MissingFieldException
    +extends ParserException
    +
    Thrown if a required field is missing.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MissingFieldException(java.lang.String fieldName) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MissingFieldException

        +
        public MissingFieldException(java.lang.String fieldName)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParser.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParser.html new file mode 100644 index 00000000..2f4918c9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParser.html @@ -0,0 +1,320 @@ + + + + + +SsManifestParser (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.source.smoothstreaming.manifest
+

Class SsManifestParser

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifestParser
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SsManifestParser() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      SsManifestparse(android.net.Uri uri, + java.io.InputStream inputStream) +
      Parses an object from a response.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SsManifestParser

        +
        public SsManifestParser()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public SsManifest parse(android.net.Uri uri,
        +                        java.io.InputStream inputStream)
        +                 throws java.io.IOException
        +
        Description copied from interface: ParsingLoadable.Parser
        +
        Parses an object from a response.
        +
        +
        Specified by:
        +
        parse in interface ParsingLoadable.Parser<SsManifest>
        +
        Parameters:
        +
        uri - The source Uri of the response, after any redirection.
        +
        inputStream - An InputStream from which the response data can be read.
        +
        Returns:
        +
        The parsed object.
        +
        Throws:
        +
        ParserException - If an error occurs parsing the data.
        +
        java.io.IOException - If an error occurs reading data from the stream.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/package-frame.html new file mode 100644 index 00000000..93c1f5a4 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/package-frame.html @@ -0,0 +1,27 @@ + + + + + +com.google.android.exoplayer2.source.smoothstreaming.manifest (library API) + + + + + +

com.google.android.exoplayer2.source.smoothstreaming.manifest

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/package-summary.html new file mode 100644 index 00000000..e222c66f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/package-summary.html @@ -0,0 +1,177 @@ + + + + + +com.google.android.exoplayer2.source.smoothstreaming.manifest (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.source.smoothstreaming.manifest

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/package-tree.html new file mode 100644 index 00000000..9bc14f6f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/manifest/package-tree.html @@ -0,0 +1,155 @@ + + + + + +com.google.android.exoplayer2.source.smoothstreaming.manifest Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.source.smoothstreaming.manifest

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/package-frame.html new file mode 100644 index 00000000..5815a716 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/package-frame.html @@ -0,0 +1,27 @@ + + + + + +com.google.android.exoplayer2.source.smoothstreaming (library API) + + + + + +

com.google.android.exoplayer2.source.smoothstreaming

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/package-summary.html new file mode 100644 index 00000000..7b0bedde --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/package-summary.html @@ -0,0 +1,173 @@ + + + + + +com.google.android.exoplayer2.source.smoothstreaming (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.source.smoothstreaming

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/package-tree.html new file mode 100644 index 00000000..5ecf4cd8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/source/smoothstreaming/package-tree.html @@ -0,0 +1,146 @@ + + + + + +com.google.android.exoplayer2.source.smoothstreaming Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.source.smoothstreaming

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/CaptionStyleCompat.EdgeType.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/CaptionStyleCompat.EdgeType.html new file mode 100644 index 00000000..04040851 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/CaptionStyleCompat.EdgeType.html @@ -0,0 +1,163 @@ + + + + + +CaptionStyleCompat.EdgeType (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Annotation Type CaptionStyleCompat.EdgeType

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface CaptionStyleCompat.EdgeType
    +
    The type of edge, which may be none.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/CaptionStyleCompat.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/CaptionStyleCompat.html new file mode 100644 index 00000000..716db3ed --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/CaptionStyleCompat.html @@ -0,0 +1,581 @@ + + + + + +CaptionStyleCompat (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Class CaptionStyleCompat

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.text.CaptionStyleCompat
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class CaptionStyleCompat
    +extends java.lang.Object
    +
    A compatibility wrapper for CaptioningManager.CaptionStyle.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface CaptionStyleCompat.EdgeType +
      The type of edge, which may be none.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intbackgroundColor +
      The preferred background color.
      +
      static CaptionStyleCompatDEFAULT +
      Default caption style.
      +
      static intEDGE_TYPE_DEPRESSED +
      Edge type value specifying depressed bevel character edges.
      +
      static intEDGE_TYPE_DROP_SHADOW +
      Edge type value specifying drop-shadowed character edges.
      +
      static intEDGE_TYPE_NONE +
      Edge type value specifying no character edges.
      +
      static intEDGE_TYPE_OUTLINE +
      Edge type value specifying uniformly outlined character edges.
      +
      static intEDGE_TYPE_RAISED +
      Edge type value specifying raised bevel character edges.
      +
      intedgeColor +
      The preferred edge color, if using an edge type other than EDGE_TYPE_NONE.
      +
      intedgeType +
      The preferred edge type.
      +
      intforegroundColor +
      The preferred foreground color.
      +
      android.graphics.Typefacetypeface +
      The preferred typeface.
      +
      static intUSE_TRACK_COLOR_SETTINGS +
      Use color setting specified by the track and fallback to default caption style.
      +
      intwindowColor +
      The preferred window color.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CaptionStyleCompat(int foregroundColor, + int backgroundColor, + int windowColor, + int edgeType, + int edgeColor, + android.graphics.Typeface typeface) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static CaptionStyleCompatcreateFromCaptionStyle(android.view.accessibility.CaptioningManager.CaptionStyle captionStyle) +
      Creates a CaptionStyleCompat equivalent to a provided CaptioningManager.CaptionStyle.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        EDGE_TYPE_NONE

        +
        public static final int EDGE_TYPE_NONE
        +
        Edge type value specifying no character edges.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        EDGE_TYPE_OUTLINE

        +
        public static final int EDGE_TYPE_OUTLINE
        +
        Edge type value specifying uniformly outlined character edges.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        EDGE_TYPE_DROP_SHADOW

        +
        public static final int EDGE_TYPE_DROP_SHADOW
        +
        Edge type value specifying drop-shadowed character edges.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        EDGE_TYPE_RAISED

        +
        public static final int EDGE_TYPE_RAISED
        +
        Edge type value specifying raised bevel character edges.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        EDGE_TYPE_DEPRESSED

        +
        public static final int EDGE_TYPE_DEPRESSED
        +
        Edge type value specifying depressed bevel character edges.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        USE_TRACK_COLOR_SETTINGS

        +
        public static final int USE_TRACK_COLOR_SETTINGS
        +
        Use color setting specified by the track and fallback to default caption style.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + + + + +
        +
      • +

        foregroundColor

        +
        public final int foregroundColor
        +
        The preferred foreground color.
        +
      • +
      + + + +
        +
      • +

        backgroundColor

        +
        public final int backgroundColor
        +
        The preferred background color.
        +
      • +
      + + + +
        +
      • +

        windowColor

        +
        public final int windowColor
        +
        The preferred window color.
        +
      • +
      + + + + + + + +
        +
      • +

        edgeColor

        +
        public final int edgeColor
        +
        The preferred edge color, if using an edge type other than EDGE_TYPE_NONE.
        +
      • +
      + + + +
        +
      • +

        typeface

        +
        public final android.graphics.Typeface typeface
        +
        The preferred typeface.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CaptionStyleCompat

        +
        public CaptionStyleCompat(int foregroundColor,
        +                          int backgroundColor,
        +                          int windowColor,
        +                          int edgeType,
        +                          int edgeColor,
        +                          android.graphics.Typeface typeface)
        +
        +
        Parameters:
        +
        foregroundColor - See foregroundColor.
        +
        backgroundColor - See backgroundColor.
        +
        windowColor - See windowColor.
        +
        edgeType - See edgeType.
        +
        edgeColor - See edgeColor.
        +
        typeface - See typeface.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createFromCaptionStyle

        +
        public static CaptionStyleCompat createFromCaptionStyle(android.view.accessibility.CaptioningManager.CaptionStyle captionStyle)
        +
        Creates a CaptionStyleCompat equivalent to a provided CaptioningManager.CaptionStyle.
        +
        +
        Parameters:
        +
        captionStyle - A CaptioningManager.CaptionStyle.
        +
        Returns:
        +
        The equivalent CaptionStyleCompat.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Cue.AnchorType.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Cue.AnchorType.html new file mode 100644 index 00000000..117604e6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Cue.AnchorType.html @@ -0,0 +1,163 @@ + + + + + +Cue.AnchorType (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Annotation Type Cue.AnchorType

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface Cue.AnchorType
    +
    The type of anchor, which may be unset.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Cue.LineType.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Cue.LineType.html new file mode 100644 index 00000000..61507331 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Cue.LineType.html @@ -0,0 +1,163 @@ + + + + + +Cue.LineType (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Annotation Type Cue.LineType

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface Cue.LineType
    +
    The type of line, which may be unset.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Cue.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Cue.html new file mode 100644 index 00000000..bd15effb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Cue.html @@ -0,0 +1,638 @@ + + + + + +Cue (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Class Cue

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.text.Cue
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Cue
    +extends java.lang.Object
    +
    Contains information about a specific cue, including textual content and formatting data.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface Cue.AnchorType +
      The type of anchor, which may be unset.
      +
      static interface Cue.LineType +
      The type of line, which may be unset.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intANCHOR_TYPE_END +
      Anchors the right (for horizontal positions) or bottom (for vertical positions) edge of the cue + box.
      +
      static intANCHOR_TYPE_MIDDLE +
      Anchors the middle of the cue box.
      +
      static intANCHOR_TYPE_START +
      Anchors the left (for horizontal positions) or top (for vertical positions) edge of the cue + box.
      +
      static floatDIMEN_UNSET +
      An unset position or width.
      +
      floatline +
      The position of the lineAnchor of the cue box within the viewport in the direction + orthogonal to the writing direction, or DIMEN_UNSET.
      +
      static intLINE_TYPE_FRACTION +
      Value for lineType when line is a fractional position.
      +
      static intLINE_TYPE_NUMBER +
      Value for lineType when line is a line number.
      +
      intlineAnchor +
      The cue box anchor positioned by line.
      +
      intlineType +
      The type of the line value.
      +
      floatposition +
      The fractional position of the positionAnchor of the cue box within the viewport in + the direction orthogonal to line, or DIMEN_UNSET.
      +
      intpositionAnchor +
      The cue box anchor positioned by position.
      +
      floatsize +
      The size of the cue box in the writing direction specified as a fraction of the viewport size + in that direction, or DIMEN_UNSET.
      +
      java.lang.CharSequencetext +
      The cue text.
      +
      android.text.Layout.AlignmenttextAlignment +
      The alignment of the cue text within the cue box, or null if the alignment is undefined.
      +
      static intTYPE_UNSET +
      An unset anchor or line type value.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Cue(java.lang.CharSequence text) +
      Constructs a cue whose textAlignment is null, whose type parameters are set to + TYPE_UNSET and whose dimension parameters are set to DIMEN_UNSET.
      +
      Cue(java.lang.CharSequence text, + android.text.Layout.Alignment textAlignment, + float line, + int lineType, + int lineAnchor, + float position, + int positionAnchor, + float size) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DIMEN_UNSET

        +
        public static final float DIMEN_UNSET
        +
        An unset position or width.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        TYPE_UNSET

        +
        public static final int TYPE_UNSET
        +
        An unset anchor or line type value.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ANCHOR_TYPE_START

        +
        public static final int ANCHOR_TYPE_START
        +
        Anchors the left (for horizontal positions) or top (for vertical positions) edge of the cue + box.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ANCHOR_TYPE_MIDDLE

        +
        public static final int ANCHOR_TYPE_MIDDLE
        +
        Anchors the middle of the cue box.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ANCHOR_TYPE_END

        +
        public static final int ANCHOR_TYPE_END
        +
        Anchors the right (for horizontal positions) or bottom (for vertical positions) edge of the cue + box.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        LINE_TYPE_FRACTION

        +
        public static final int LINE_TYPE_FRACTION
        +
        Value for lineType when line is a fractional position.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + + + + +
        +
      • +

        text

        +
        public final java.lang.CharSequence text
        +
        The cue text. Note the CharSequence may be decorated with styling spans.
        +
      • +
      + + + +
        +
      • +

        textAlignment

        +
        public final android.text.Layout.Alignment textAlignment
        +
        The alignment of the cue text within the cue box, or null if the alignment is undefined.
        +
      • +
      + + + +
        +
      • +

        line

        +
        public final float line
        +
        The position of the lineAnchor of the cue box within the viewport in the direction + orthogonal to the writing direction, or DIMEN_UNSET. When set, the interpretation of + the value depends on the value of lineType. +

        + For horizontal text and lineType equal to LINE_TYPE_FRACTION, this is the + fractional vertical position relative to the top of the viewport.

        +
      • +
      + + + +
        +
      • +

        lineType

        +
        public final int lineType
        +
        The type of the line value. +

        + LINE_TYPE_FRACTION indicates that line is a fractional position within the + viewport. +

        + LINE_TYPE_NUMBER indicates that line is a line number, where the size of each + line is taken to be the size of the first line of the cue. When line is greater than + or equal to 0, lines count from the start of the viewport (the first line is numbered 0). When + line is negative, lines count from the end of the viewport (the last line is numbered + -1). For horizontal text the size of the first line of the cue is its height, and the start + and end of the viewport are the top and bottom respectively.

        +
      • +
      + + + + + + + +
        +
      • +

        position

        +
        public final float position
        +
        The fractional position of the positionAnchor of the cue box within the viewport in + the direction orthogonal to line, or DIMEN_UNSET. +

        + For horizontal text, this is the horizontal position relative to the left of the viewport. Note + that positioning is relative to the left of the viewport even in the case of right-to-left + text.

        +
      • +
      + + + + + + + +
        +
      • +

        size

        +
        public final float size
        +
        The size of the cue box in the writing direction specified as a fraction of the viewport size + in that direction, or DIMEN_UNSET.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Cue

        +
        public Cue(java.lang.CharSequence text)
        +
        Constructs a cue whose textAlignment is null, whose type parameters are set to + TYPE_UNSET and whose dimension parameters are set to DIMEN_UNSET.
        +
        +
        Parameters:
        +
        text - See text.
        +
        +
      • +
      + + + +
        +
      • +

        Cue

        +
        public Cue(java.lang.CharSequence text,
        +           android.text.Layout.Alignment textAlignment,
        +           float line,
        +           int lineType,
        +           int lineAnchor,
        +           float position,
        +           int positionAnchor,
        +           float size)
        +
        +
        Parameters:
        +
        text - See text.
        +
        textAlignment - See textAlignment.
        +
        line - See line.
        +
        lineType - See lineType.
        +
        lineAnchor - See lineAnchor.
        +
        position - See position.
        +
        positionAnchor - See positionAnchor.
        +
        size - See size.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SimpleSubtitleDecoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SimpleSubtitleDecoder.html new file mode 100644 index 00000000..9e8afef4 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SimpleSubtitleDecoder.html @@ -0,0 +1,467 @@ + + + + + +SimpleSubtitleDecoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Class SimpleSubtitleDecoder

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Subtitle.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Subtitle.html new file mode 100644 index 00000000..0f804179 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/Subtitle.html @@ -0,0 +1,300 @@ + + + + + +Subtitle (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Interface Subtitle

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      java.util.List<Cue>getCues(long timeUs) +
      Retrieve the cues that should be displayed at a given time.
      +
      longgetEventTime(int index) +
      Returns the event time at a specified index.
      +
      intgetEventTimeCount() +
      Returns the number of event times, where events are defined as points in time at which the cues + returned by getCues(long) changes.
      +
      intgetNextEventTimeIndex(long timeUs) +
      Returns the index of the first event that occurs after a given time (exclusive).
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getNextEventTimeIndex

        +
        int getNextEventTimeIndex(long timeUs)
        +
        Returns the index of the first event that occurs after a given time (exclusive).
        +
        +
        Parameters:
        +
        timeUs - The time in microseconds.
        +
        Returns:
        +
        The index of the next event, or C.INDEX_UNSET if there are no events after the + specified time.
        +
        +
      • +
      + + + +
        +
      • +

        getEventTimeCount

        +
        int getEventTimeCount()
        +
        Returns the number of event times, where events are defined as points in time at which the cues + returned by getCues(long) changes.
        +
        +
        Returns:
        +
        The number of event times.
        +
        +
      • +
      + + + +
        +
      • +

        getEventTime

        +
        long getEventTime(int index)
        +
        Returns the event time at a specified index.
        +
        +
        Parameters:
        +
        index - The index of the event time to obtain.
        +
        Returns:
        +
        The event time in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getCues

        +
        java.util.List<Cue> getCues(long timeUs)
        +
        Retrieve the cues that should be displayed at a given time.
        +
        +
        Parameters:
        +
        timeUs - The time in microseconds.
        +
        Returns:
        +
        A list of cues that should be displayed, possibly empty.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleDecoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleDecoder.html new file mode 100644 index 00000000..84c1d02a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleDecoder.html @@ -0,0 +1,245 @@ + + + + + +SubtitleDecoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Interface SubtitleDecoder

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setPositionUs

        +
        void setPositionUs(long positionUs)
        +
        Informs the decoder of the current playback position. +

        + Must be called prior to each attempt to dequeue output buffers from the decoder.

        +
        +
        Parameters:
        +
        positionUs - The current playback position in microseconds.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleDecoderException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleDecoderException.html new file mode 100644 index 00000000..a1823f98 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleDecoderException.html @@ -0,0 +1,284 @@ + + + + + +SubtitleDecoderException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Class SubtitleDecoderException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • com.google.android.exoplayer2.text.SubtitleDecoderException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class SubtitleDecoderException
    +extends java.lang.Exception
    +
    Thrown when an error occurs decoding subtitle data.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SubtitleDecoderException

        +
        public SubtitleDecoderException(java.lang.String message)
        +
        +
        Parameters:
        +
        message - The detail message for this exception.
        +
        +
      • +
      + + + +
        +
      • +

        SubtitleDecoderException

        +
        public SubtitleDecoderException(java.lang.String message,
        +                                java.lang.Throwable cause)
        +
        +
        Parameters:
        +
        message - The detail message for this exception.
        +
        cause - The cause of this exception.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleDecoderFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleDecoderFactory.html new file mode 100644 index 00000000..42a44080 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleDecoderFactory.html @@ -0,0 +1,304 @@ + + + + + +SubtitleDecoderFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Interface SubtitleDecoderFactory

+
+
+
+
    +
  • +
    +
    +
    public interface SubtitleDecoderFactory
    +
    A factory for SubtitleDecoder instances.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleInputBuffer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleInputBuffer.html new file mode 100644 index 00000000..fbb5e362 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleInputBuffer.html @@ -0,0 +1,366 @@ + + + + + +SubtitleInputBuffer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Class SubtitleInputBuffer

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleOutputBuffer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleOutputBuffer.html new file mode 100644 index 00000000..5f994979 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/SubtitleOutputBuffer.html @@ -0,0 +1,470 @@ + + + + + +SubtitleOutputBuffer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Class SubtitleOutputBuffer

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SubtitleOutputBuffer

        +
        public SubtitleOutputBuffer()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setContent

        +
        public void setContent(long timeUs,
        +                       Subtitle subtitle,
        +                       long subsampleOffsetUs)
        +
        Sets the content of the output buffer, consisting of a Subtitle and associated + metadata.
        +
        +
        Parameters:
        +
        timeUs - The time of the start of the subtitle in microseconds.
        +
        subtitle - The subtitle.
        +
        subsampleOffsetUs - An offset that must be added to the subtitle's event times, or + Format.OFFSET_SAMPLE_RELATIVE if timeUs should be added.
        +
        +
      • +
      + + + +
        +
      • +

        getEventTimeCount

        +
        public int getEventTimeCount()
        +
        Description copied from interface: Subtitle
        +
        Returns the number of event times, where events are defined as points in time at which the cues + returned by Subtitle.getCues(long) changes.
        +
        +
        Specified by:
        +
        getEventTimeCount in interface Subtitle
        +
        Returns:
        +
        The number of event times.
        +
        +
      • +
      + + + +
        +
      • +

        getEventTime

        +
        public long getEventTime(int index)
        +
        Description copied from interface: Subtitle
        +
        Returns the event time at a specified index.
        +
        +
        Specified by:
        +
        getEventTime in interface Subtitle
        +
        Parameters:
        +
        index - The index of the event time to obtain.
        +
        Returns:
        +
        The event time in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getNextEventTimeIndex

        +
        public int getNextEventTimeIndex(long timeUs)
        +
        Description copied from interface: Subtitle
        +
        Returns the index of the first event that occurs after a given time (exclusive).
        +
        +
        Specified by:
        +
        getNextEventTimeIndex in interface Subtitle
        +
        Parameters:
        +
        timeUs - The time in microseconds.
        +
        Returns:
        +
        The index of the next event, or C.INDEX_UNSET if there are no events after the + specified time.
        +
        +
      • +
      + + + +
        +
      • +

        getCues

        +
        public java.util.List<Cue> getCues(long timeUs)
        +
        Description copied from interface: Subtitle
        +
        Retrieve the cues that should be displayed at a given time.
        +
        +
        Specified by:
        +
        getCues in interface Subtitle
        +
        Parameters:
        +
        timeUs - The time in microseconds.
        +
        Returns:
        +
        A list of cues that should be displayed, possibly empty.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        public abstract void release()
        +
        Description copied from class: OutputBuffer
        +
        Releases the output buffer for reuse. Must be called when the buffer is no longer needed.
        +
        +
        Specified by:
        +
        release in class OutputBuffer
        +
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        Description copied from class: Buffer
        +
        Clears the buffer.
        +
        +
        Overrides:
        +
        clear in class Buffer
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/TextRenderer.Output.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/TextRenderer.Output.html new file mode 100644 index 00000000..ba25474e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/TextRenderer.Output.html @@ -0,0 +1,235 @@ + + + + + +TextRenderer.Output (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Interface TextRenderer.Output

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    SubtitleView
    +
    +
    +
    Enclosing class:
    +
    TextRenderer
    +
    +
    +
    +
    public static interface TextRenderer.Output
    +
    Receives output from a TextRenderer.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onCues

        +
        void onCues(java.util.List<Cue> cues)
        +
        Called each time there is a change in the Cues.
        +
        +
        Parameters:
        +
        cues - The Cues.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/TextRenderer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/TextRenderer.html new file mode 100644 index 00000000..1f3b25ac --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/TextRenderer.html @@ -0,0 +1,602 @@ + + + + + +TextRenderer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text
+

Class TextRenderer

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TextRenderer

        +
        public TextRenderer(TextRenderer.Output output,
        +                    android.os.Looper outputLooper)
        +
        +
        Parameters:
        +
        output - The output.
        +
        outputLooper - The looper associated with the thread on which the output should be + called. If the output makes use of standard Android UI components, then this should + normally be the looper associated with the application's main thread, which can be obtained + using ContextWrapper.getMainLooper(). Null may be passed if the output + should be called directly on the player's internal rendering thread.
        +
        +
      • +
      + + + +
        +
      • +

        TextRenderer

        +
        public TextRenderer(TextRenderer.Output output,
        +                    android.os.Looper outputLooper,
        +                    SubtitleDecoderFactory decoderFactory)
        +
        +
        Parameters:
        +
        output - The output.
        +
        outputLooper - The looper associated with the thread on which the output should be + called. If the output makes use of standard Android UI components, then this should + normally be the looper associated with the application's main thread, which can be obtained + using ContextWrapper.getMainLooper(). Null may be passed if the output + should be called directly on the player's internal rendering thread.
        +
        decoderFactory - A factory from which to obtain SubtitleDecoder instances.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/Cea608Decoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/Cea608Decoder.html new file mode 100644 index 00000000..f3d4a4d3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/Cea608Decoder.html @@ -0,0 +1,523 @@ + + + + + +Cea608Decoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text.cea
+

Class Cea608Decoder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.text.cea.Cea608Decoder
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/CeaOutputBuffer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/CeaOutputBuffer.html new file mode 100644 index 00000000..48179f83 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/CeaOutputBuffer.html @@ -0,0 +1,330 @@ + + + + + +CeaOutputBuffer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text.cea
+

Class CeaOutputBuffer

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CeaOutputBuffer

        +
        public CeaOutputBuffer(com.google.android.exoplayer2.text.cea.CeaDecoder owner)
        +
        +
        Parameters:
        +
        owner - The decoder that owns this buffer.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        release

        +
        public final void release()
        +
        Description copied from class: OutputBuffer
        +
        Releases the output buffer for reuse. Must be called when the buffer is no longer needed.
        +
        +
        Specified by:
        +
        release in class SubtitleOutputBuffer
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/package-frame.html new file mode 100644 index 00000000..513f0aba --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/package-frame.html @@ -0,0 +1,21 @@ + + + + + +com.google.android.exoplayer2.text.cea (library API) + + + + + +

com.google.android.exoplayer2.text.cea

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/package-summary.html new file mode 100644 index 00000000..008a6245 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/package-summary.html @@ -0,0 +1,148 @@ + + + + + +com.google.android.exoplayer2.text.cea (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.text.cea

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/package-tree.html new file mode 100644 index 00000000..b85b04bf --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/cea/package-tree.html @@ -0,0 +1,148 @@ + + + + + +com.google.android.exoplayer2.text.cea Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.text.cea

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/package-frame.html new file mode 100644 index 00000000..c1750ff9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/package-frame.html @@ -0,0 +1,42 @@ + + + + + +com.google.android.exoplayer2.text (library API) + + + + + +

com.google.android.exoplayer2.text

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/package-summary.html new file mode 100644 index 00000000..001e7131 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/package-summary.html @@ -0,0 +1,253 @@ + + + + + +com.google.android.exoplayer2.text (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.text

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/package-tree.html new file mode 100644 index 00000000..4bab5f1d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/package-tree.html @@ -0,0 +1,186 @@ + + + + + +com.google.android.exoplayer2.text Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.text

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+
    +
  • com.google.android.exoplayer2.text.Cue.AnchorType (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.text.CaptionStyleCompat.EdgeType (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.text.Cue.LineType (implements java.lang.annotation.Annotation)
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/SubripDecoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/SubripDecoder.html new file mode 100644 index 00000000..f88597a2 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/SubripDecoder.html @@ -0,0 +1,320 @@ + + + + + +SubripDecoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text.subrip
+

Class SubripDecoder

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SubripDecoder

        +
        public SubripDecoder()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        decode

        +
        protected com.google.android.exoplayer2.text.subrip.SubripSubtitle decode(byte[] bytes,
        +                                                                          int length)
        +
        Description copied from class: SimpleSubtitleDecoder
        +
        Decodes data into a Subtitle.
        +
        +
        Specified by:
        +
        decode in class SimpleSubtitleDecoder
        +
        Parameters:
        +
        bytes - An array holding the data to be decoded, starting at position 0.
        +
        length - The size of the data to be decoded.
        +
        Returns:
        +
        The decoded Subtitle.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/package-frame.html new file mode 100644 index 00000000..425b0e54 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.google.android.exoplayer2.text.subrip (library API) + + + + + +

com.google.android.exoplayer2.text.subrip

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/package-summary.html new file mode 100644 index 00000000..f790310b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/package-summary.html @@ -0,0 +1,142 @@ + + + + + +com.google.android.exoplayer2.text.subrip (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.text.subrip

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/package-tree.html new file mode 100644 index 00000000..cf8b47e5 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/subrip/package-tree.html @@ -0,0 +1,143 @@ + + + + + +com.google.android.exoplayer2.text.subrip Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.text.subrip

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/TtmlDecoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/TtmlDecoder.html new file mode 100644 index 00000000..739455f9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/TtmlDecoder.html @@ -0,0 +1,342 @@ + + + + + +TtmlDecoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text.ttml
+

Class TtmlDecoder

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TtmlDecoder

        +
        public TtmlDecoder()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/package-frame.html new file mode 100644 index 00000000..8b7df513 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.google.android.exoplayer2.text.ttml (library API) + + + + + +

com.google.android.exoplayer2.text.ttml

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/package-summary.html new file mode 100644 index 00000000..2744c3dc --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/package-summary.html @@ -0,0 +1,142 @@ + + + + + +com.google.android.exoplayer2.text.ttml (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.text.ttml

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/package-tree.html new file mode 100644 index 00000000..240f2e16 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/ttml/package-tree.html @@ -0,0 +1,143 @@ + + + + + +com.google.android.exoplayer2.text.ttml Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.text.ttml

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/Tx3gDecoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/Tx3gDecoder.html new file mode 100644 index 00000000..22af7254 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/Tx3gDecoder.html @@ -0,0 +1,322 @@ + + + + + +Tx3gDecoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text.tx3g
+

Class Tx3gDecoder

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Tx3gDecoder

        +
        public Tx3gDecoder()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        decode

        +
        protected Subtitle decode(byte[] bytes,
        +                          int length)
        +
        Description copied from class: SimpleSubtitleDecoder
        +
        Decodes data into a Subtitle.
        +
        +
        Specified by:
        +
        decode in class SimpleSubtitleDecoder
        +
        Parameters:
        +
        bytes - An array holding the data to be decoded, starting at position 0.
        +
        length - The size of the data to be decoded.
        +
        Returns:
        +
        The decoded Subtitle.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/package-frame.html new file mode 100644 index 00000000..a12c006f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.google.android.exoplayer2.text.tx3g (library API) + + + + + +

com.google.android.exoplayer2.text.tx3g

+
+

Classes

+ +
+ + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/package-summary.html new file mode 100644 index 00000000..06264523 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/package-summary.html @@ -0,0 +1,142 @@ + + + + + +com.google.android.exoplayer2.text.tx3g (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.text.tx3g

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/package-tree.html new file mode 100644 index 00000000..5e3f9cb5 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/tx3g/package-tree.html @@ -0,0 +1,143 @@ + + + + + +com.google.android.exoplayer2.text.tx3g Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.text.tx3g

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/Mp4WebvttDecoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/Mp4WebvttDecoder.html new file mode 100644 index 00000000..50740dba --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/Mp4WebvttDecoder.html @@ -0,0 +1,323 @@ + + + + + +Mp4WebvttDecoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text.webvtt
+

Class Mp4WebvttDecoder

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Mp4WebvttDecoder

        +
        public Mp4WebvttDecoder()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/WebvttDecoder.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/WebvttDecoder.html new file mode 100644 index 00000000..759fe9dd --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/WebvttDecoder.html @@ -0,0 +1,328 @@ + + + + + +WebvttDecoder (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text.webvtt
+

Class WebvttDecoder

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WebvttDecoder

        +
        public WebvttDecoder()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/WebvttParserUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/WebvttParserUtil.html new file mode 100644 index 00000000..fea1cdf5 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/WebvttParserUtil.html @@ -0,0 +1,320 @@ + + + + + +WebvttParserUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.text.webvtt
+

Class WebvttParserUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.text.webvtt.WebvttParserUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class WebvttParserUtil
    +extends java.lang.Object
    +
    Utility methods for parsing WebVTT data.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static java.util.regex.MatcherfindNextCueHeader(ParsableByteArray input) +
      Reads lines up to and including the next WebVTT cue header.
      +
      static floatparsePercentage(java.lang.String s) +
      Parses a percentage string.
      +
      static longparseTimestampUs(java.lang.String timestamp) +
      Parses a WebVTT timestamp.
      +
      static voidvalidateWebvttHeaderLine(ParsableByteArray input) +
      Reads and validates the first line of a WebVTT file.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        validateWebvttHeaderLine

        +
        public static void validateWebvttHeaderLine(ParsableByteArray input)
        +                                     throws SubtitleDecoderException
        +
        Reads and validates the first line of a WebVTT file.
        +
        +
        Parameters:
        +
        input - The input from which the line should be read.
        +
        Throws:
        +
        SubtitleDecoderException - If the line isn't the start of a valid WebVTT file.
        +
        +
      • +
      + + + +
        +
      • +

        parseTimestampUs

        +
        public static long parseTimestampUs(java.lang.String timestamp)
        +                             throws java.lang.NumberFormatException
        +
        Parses a WebVTT timestamp.
        +
        +
        Parameters:
        +
        timestamp - The timestamp string.
        +
        Returns:
        +
        The parsed timestamp in microseconds.
        +
        Throws:
        +
        java.lang.NumberFormatException - If the timestamp could not be parsed.
        +
        +
      • +
      + + + +
        +
      • +

        parsePercentage

        +
        public static float parsePercentage(java.lang.String s)
        +                             throws java.lang.NumberFormatException
        +
        Parses a percentage string.
        +
        +
        Parameters:
        +
        s - The percentage string.
        +
        Returns:
        +
        The parsed value, where 1.0 represents 100%.
        +
        Throws:
        +
        java.lang.NumberFormatException - If the percentage could not be parsed.
        +
        +
      • +
      + + + +
        +
      • +

        findNextCueHeader

        +
        public static java.util.regex.Matcher findNextCueHeader(ParsableByteArray input)
        +
        Reads lines up to and including the next WebVTT cue header.
        +
        +
        Parameters:
        +
        input - The input from which lines should be read.
        +
        Returns:
        +
        A Matcher for the WebVTT cue header, or null if the end of the input was + reached without a cue header being found. In the case that a cue header is found, groups 1, + 2 and 3 of the returned matcher contain the start time, end time and settings list.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/package-frame.html new file mode 100644 index 00000000..a4db6b3d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/package-frame.html @@ -0,0 +1,22 @@ + + + + + +com.google.android.exoplayer2.text.webvtt (library API) + + + + + +

com.google.android.exoplayer2.text.webvtt

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/package-summary.html new file mode 100644 index 00000000..8594cbe0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/package-summary.html @@ -0,0 +1,154 @@ + + + + + +com.google.android.exoplayer2.text.webvtt (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.text.webvtt

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/package-tree.html new file mode 100644 index 00000000..68ea5cc3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/text/webvtt/package-tree.html @@ -0,0 +1,145 @@ + + + + + +com.google.android.exoplayer2.text.webvtt Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.text.webvtt

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/AdaptiveVideoTrackSelection.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/AdaptiveVideoTrackSelection.Factory.html new file mode 100644 index 00000000..23d79bb8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/AdaptiveVideoTrackSelection.Factory.html @@ -0,0 +1,338 @@ + + + + + +AdaptiveVideoTrackSelection.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class AdaptiveVideoTrackSelection.Factory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection.Factory
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Factory(BandwidthMeter bandwidthMeter) 
      Factory(BandwidthMeter bandwidthMeter, + int maxInitialBitrate, + int minDurationForQualityIncreaseMs, + int maxDurationForQualityDecreaseMs, + int minDurationToRetainAfterDiscardMs, + float bandwidthFraction) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Factory

        +
        public Factory(BandwidthMeter bandwidthMeter)
        +
        +
        Parameters:
        +
        bandwidthMeter - Provides an estimate of the currently available bandwidth.
        +
        +
      • +
      + + + +
        +
      • +

        Factory

        +
        public Factory(BandwidthMeter bandwidthMeter,
        +               int maxInitialBitrate,
        +               int minDurationForQualityIncreaseMs,
        +               int maxDurationForQualityDecreaseMs,
        +               int minDurationToRetainAfterDiscardMs,
        +               float bandwidthFraction)
        +
        +
        Parameters:
        +
        bandwidthMeter - Provides an estimate of the currently available bandwidth.
        +
        maxInitialBitrate - The maximum bitrate in bits per second that should be assumed + when a bandwidth estimate is unavailable.
        +
        minDurationForQualityIncreaseMs - The minimum duration of buffered data required for + the selected track to switch to one of higher quality.
        +
        maxDurationForQualityDecreaseMs - The maximum duration of buffered data required for + the selected track to switch to one of lower quality.
        +
        minDurationToRetainAfterDiscardMs - When switching to a track of significantly higher + quality, the selection may indicate that media already buffered at the lower quality can + be discarded to speed up the switch. This is the minimum duration of media that must be + retained at the lower quality.
        +
        bandwidthFraction - The fraction of the available bandwidth that the selection should + consider available for use. Setting to a value less than 1 is recommended to account + for inaccuracies in the bandwidth estimator.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/AdaptiveVideoTrackSelection.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/AdaptiveVideoTrackSelection.html new file mode 100644 index 00000000..6546bf9b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/AdaptiveVideoTrackSelection.html @@ -0,0 +1,578 @@ + + + + + +AdaptiveVideoTrackSelection (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class AdaptiveVideoTrackSelection

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    TrackSelection
    +
    +
    +
    +
    public class AdaptiveVideoTrackSelection
    +extends BaseTrackSelection
    +
    A bandwidth based adaptive TrackSelection for video, whose selected track is updated to + be the one of highest quality given the current network conditions and the state of the buffer.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MAX_INITIAL_BITRATE

        +
        public static final int DEFAULT_MAX_INITIAL_BITRATE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_MIN_DURATION_FOR_QUALITY_INCREASE_MS

        +
        public static final int DEFAULT_MIN_DURATION_FOR_QUALITY_INCREASE_MS
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_MAX_DURATION_FOR_QUALITY_DECREASE_MS

        +
        public static final int DEFAULT_MAX_DURATION_FOR_QUALITY_DECREASE_MS
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_MIN_DURATION_TO_RETAIN_AFTER_DISCARD_MS

        +
        public static final int DEFAULT_MIN_DURATION_TO_RETAIN_AFTER_DISCARD_MS
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_BANDWIDTH_FRACTION

        +
        public static final float DEFAULT_BANDWIDTH_FRACTION
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AdaptiveVideoTrackSelection

        +
        public AdaptiveVideoTrackSelection(TrackGroup group,
        +                                   int[] tracks,
        +                                   BandwidthMeter bandwidthMeter)
        +
        +
        Parameters:
        +
        group - The TrackGroup. Must not be null.
        +
        tracks - The indices of the selected tracks within the TrackGroup. Must not be + null or empty. May be in any order.
        +
        bandwidthMeter - Provides an estimate of the currently available bandwidth.
        +
        +
      • +
      + + + +
        +
      • +

        AdaptiveVideoTrackSelection

        +
        public AdaptiveVideoTrackSelection(TrackGroup group,
        +                                   int[] tracks,
        +                                   BandwidthMeter bandwidthMeter,
        +                                   int maxInitialBitrate,
        +                                   long minDurationForQualityIncreaseMs,
        +                                   long maxDurationForQualityDecreaseMs,
        +                                   long minDurationToRetainAfterDiscardMs,
        +                                   float bandwidthFraction)
        +
        +
        Parameters:
        +
        group - The TrackGroup. Must not be null.
        +
        tracks - The indices of the selected tracks within the TrackGroup. Must not be + null or empty. May be in any order.
        +
        bandwidthMeter - Provides an estimate of the currently available bandwidth.
        +
        maxInitialBitrate - The maximum bitrate in bits per second that should be assumed when a + bandwidth estimate is unavailable.
        +
        minDurationForQualityIncreaseMs - The minimum duration of buffered data required for the + selected track to switch to one of higher quality.
        +
        maxDurationForQualityDecreaseMs - The maximum duration of buffered data required for the + selected track to switch to one of lower quality.
        +
        minDurationToRetainAfterDiscardMs - When switching to a track of significantly higher + quality, the selection may indicate that media already buffered at the lower quality can + be discarded to speed up the switch. This is the minimum duration of media that must be + retained at the lower quality.
        +
        bandwidthFraction - The fraction of the available bandwidth that the selection should + consider available for use. Setting to a value less than 1 is recommended to account + for inaccuracies in the bandwidth estimator.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        updateSelectedTrack

        +
        public void updateSelectedTrack(long bufferedDurationUs)
        +
        Description copied from interface: TrackSelection
        +
        Updates the selected track.
        +
        +
        Parameters:
        +
        bufferedDurationUs - The duration of media currently buffered in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getSelectedIndex

        +
        public int getSelectedIndex()
        +
        Description copied from interface: TrackSelection
        +
        Returns the index of the selected track.
        +
      • +
      + + + +
        +
      • +

        getSelectionReason

        +
        public int getSelectionReason()
        +
        Description copied from interface: TrackSelection
        +
        Returns the reason for the current track selection.
        +
      • +
      + + + +
        +
      • +

        getSelectionData

        +
        public java.lang.Object getSelectionData()
        +
        Description copied from interface: TrackSelection
        +
        Returns optional data associated with the current track selection.
        +
      • +
      + + + +
        +
      • +

        evaluateQueueSize

        +
        public int evaluateQueueSize(long playbackPositionUs,
        +                             java.util.List<? extends MediaChunk> queue)
        +
        Description copied from interface: TrackSelection
        +
        May be called periodically by sources that load media in discrete MediaChunks and + support discarding of buffered chunks in order to re-buffer using a different selected track. + Returns the number of chunks that should be retained in the queue. +

        + To avoid excessive re-buffering, implementations should normally return the size of the queue. + An example of a case where a smaller value may be returned is if network conditions have + improved dramatically, allowing chunks to be discarded and re-buffered in a track of + significantly higher quality. Discarding chunks may allow faster switching to a higher quality + track in this case.

        +
        +
        Specified by:
        +
        evaluateQueueSize in interface TrackSelection
        +
        Overrides:
        +
        evaluateQueueSize in class BaseTrackSelection
        +
        Parameters:
        +
        playbackPositionUs - The current playback position in microseconds.
        +
        queue - The queue of buffered MediaChunks. Must not be modified.
        +
        Returns:
        +
        The number of chunks to retain in the queue.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/BaseTrackSelection.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/BaseTrackSelection.html new file mode 100644 index 00000000..cee91598 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/BaseTrackSelection.html @@ -0,0 +1,681 @@ + + + + + +BaseTrackSelection (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class BaseTrackSelection

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.trackselection.BaseTrackSelection
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected TrackGroupgroup +
      The selected TrackGroup.
      +
      protected intlength +
      The number of selected tracks within the TrackGroup.
      +
      protected int[]tracks +
      The indices of the selected tracks in group, in order of decreasing bandwidth.
      +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanblacklist(int index, + long blacklistDurationMs) +
      Attempts to blacklist the track at the specified index in the selection, making it ineligible + for selection by calls to TrackSelection.updateSelectedTrack(long) for the specified period of time.
      +
      booleanequals(java.lang.Object obj) 
      intevaluateQueueSize(long playbackPositionUs, + java.util.List<? extends MediaChunk> queue) +
      May be called periodically by sources that load media in discrete MediaChunks and + support discarding of buffered chunks in order to re-buffer using a different selected track.
      +
      FormatgetFormat(int index) +
      Returns the format of the track at a given index in the selection.
      +
      intgetIndexInTrackGroup(int index) +
      Returns the index in the track group of the track at a given index in the selection.
      +
      FormatgetSelectedFormat() +
      Returns the Format of the individual selected track.
      +
      intgetSelectedIndexInTrackGroup() +
      Returns the index in the track group of the individual selected track.
      +
      TrackGroupgetTrackGroup() +
      Returns the TrackGroup to which the selected tracks belong.
      +
      inthashCode() 
      intindexOf(Format format) +
      Returns the index in the selection of the track with the specified format.
      +
      intindexOf(int indexInTrackGroup) +
      Returns the index in the selection of the track with the specified index in the track group.
      +
      protected booleanisBlacklisted(int index, + long nowMs) +
      Returns whether the track at the specified index in the selection is blaclisted.
      +
      intlength() +
      Returns the number of tracks in the selection.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        length

        +
        protected final int length
        +
        The number of selected tracks within the TrackGroup. Always greater than zero.
        +
      • +
      + + + +
        +
      • +

        tracks

        +
        protected final int[] tracks
        +
        The indices of the selected tracks in group, in order of decreasing bandwidth.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BaseTrackSelection

        +
        public BaseTrackSelection(TrackGroup group,
        +                          int... tracks)
        +
        +
        Parameters:
        +
        group - The TrackGroup. Must not be null.
        +
        tracks - The indices of the selected tracks within the TrackGroup. Must not be + null or empty. May be in any order.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        length

        +
        public final int length()
        +
        Description copied from interface: TrackSelection
        +
        Returns the number of tracks in the selection.
        +
        +
        Specified by:
        +
        length in interface TrackSelection
        +
        +
      • +
      + + + +
        +
      • +

        getFormat

        +
        public final Format getFormat(int index)
        +
        Description copied from interface: TrackSelection
        +
        Returns the format of the track at a given index in the selection.
        +
        +
        Specified by:
        +
        getFormat in interface TrackSelection
        +
        Parameters:
        +
        index - The index in the selection.
        +
        Returns:
        +
        The format of the selected track.
        +
        +
      • +
      + + + +
        +
      • +

        getIndexInTrackGroup

        +
        public final int getIndexInTrackGroup(int index)
        +
        Description copied from interface: TrackSelection
        +
        Returns the index in the track group of the track at a given index in the selection.
        +
        +
        Specified by:
        +
        getIndexInTrackGroup in interface TrackSelection
        +
        Parameters:
        +
        index - The index in the selection.
        +
        Returns:
        +
        The index of the selected track.
        +
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        public final int indexOf(Format format)
        +
        Description copied from interface: TrackSelection
        +
        Returns the index in the selection of the track with the specified format.
        +
        +
        Specified by:
        +
        indexOf in interface TrackSelection
        +
        Parameters:
        +
        format - The format.
        +
        Returns:
        +
        The index in the selection, or C.INDEX_UNSET if the track with the specified + format is not part of the selection.
        +
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        public final int indexOf(int indexInTrackGroup)
        +
        Description copied from interface: TrackSelection
        +
        Returns the index in the selection of the track with the specified index in the track group.
        +
        +
        Specified by:
        +
        indexOf in interface TrackSelection
        +
        Parameters:
        +
        indexInTrackGroup - The index in the track group.
        +
        Returns:
        +
        The index in the selection, or C.INDEX_UNSET if the track with the specified + index is not part of the selection.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getSelectedIndexInTrackGroup

        +
        public final int getSelectedIndexInTrackGroup()
        +
        Description copied from interface: TrackSelection
        +
        Returns the index in the track group of the individual selected track.
        +
        +
        Specified by:
        +
        getSelectedIndexInTrackGroup in interface TrackSelection
        +
        +
      • +
      + + + +
        +
      • +

        evaluateQueueSize

        +
        public int evaluateQueueSize(long playbackPositionUs,
        +                             java.util.List<? extends MediaChunk> queue)
        +
        Description copied from interface: TrackSelection
        +
        May be called periodically by sources that load media in discrete MediaChunks and + support discarding of buffered chunks in order to re-buffer using a different selected track. + Returns the number of chunks that should be retained in the queue. +

        + To avoid excessive re-buffering, implementations should normally return the size of the queue. + An example of a case where a smaller value may be returned is if network conditions have + improved dramatically, allowing chunks to be discarded and re-buffered in a track of + significantly higher quality. Discarding chunks may allow faster switching to a higher quality + track in this case.

        +
        +
        Specified by:
        +
        evaluateQueueSize in interface TrackSelection
        +
        Parameters:
        +
        playbackPositionUs - The current playback position in microseconds.
        +
        queue - The queue of buffered MediaChunks. Must not be modified.
        +
        Returns:
        +
        The number of chunks to retain in the queue.
        +
        +
      • +
      + + + +
        +
      • +

        blacklist

        +
        public final boolean blacklist(int index,
        +                               long blacklistDurationMs)
        +
        Description copied from interface: TrackSelection
        +
        Attempts to blacklist the track at the specified index in the selection, making it ineligible + for selection by calls to TrackSelection.updateSelectedTrack(long) for the specified period of time. + Blacklisting will fail if all other tracks are currently blacklisted. If blacklisting the + currently selected track, note that it will remain selected until the next call to + TrackSelection.updateSelectedTrack(long).
        +
        +
        Specified by:
        +
        blacklist in interface TrackSelection
        +
        Parameters:
        +
        index - The index of the track in the selection.
        +
        blacklistDurationMs - The duration of time for which the track should be blacklisted, in + milliseconds.
        +
        Returns:
        +
        Whether blacklisting was successful.
        +
        +
      • +
      + + + +
        +
      • +

        isBlacklisted

        +
        protected final boolean isBlacklisted(int index,
        +                                      long nowMs)
        +
        Returns whether the track at the specified index in the selection is blaclisted.
        +
        +
        Parameters:
        +
        index - The index of the track in the selection.
        +
        nowMs - The current time in the timebase of SystemClock.elapsedRealtime().
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html new file mode 100644 index 00000000..6b706f0f --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html @@ -0,0 +1,776 @@ + + + + + +DefaultTrackSelector.Parameters (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class DefaultTrackSelector.Parameters

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    DefaultTrackSelector
    +
    +
    +
    +
    public static final class DefaultTrackSelector.Parameters
    +extends java.lang.Object
    +
    Holder for available configurations for the DefaultTrackSelector.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        preferredAudioLanguage

        +
        public final java.lang.String preferredAudioLanguage
        +
      • +
      + + + +
        +
      • +

        preferredTextLanguage

        +
        public final java.lang.String preferredTextLanguage
        +
      • +
      + + + +
        +
      • +

        allowMixedMimeAdaptiveness

        +
        public final boolean allowMixedMimeAdaptiveness
        +
      • +
      + + + +
        +
      • +

        allowNonSeamlessAdaptiveness

        +
        public final boolean allowNonSeamlessAdaptiveness
        +
      • +
      + + + +
        +
      • +

        maxVideoWidth

        +
        public final int maxVideoWidth
        +
      • +
      + + + +
        +
      • +

        maxVideoHeight

        +
        public final int maxVideoHeight
        +
      • +
      + + + +
        +
      • +

        exceedVideoConstraintsIfNecessary

        +
        public final boolean exceedVideoConstraintsIfNecessary
        +
      • +
      + + + +
        +
      • +

        viewportWidth

        +
        public final int viewportWidth
        +
      • +
      + + + +
        +
      • +

        viewportHeight

        +
        public final int viewportHeight
        +
      • +
      + + + +
        +
      • +

        orientationMayChange

        +
        public final boolean orientationMayChange
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Parameters

        +
        public Parameters()
        +
        Constructor with default selection parameters: +
          +
        • No preferred audio language is set.
        • +
        • No preferred text language is set.
        • +
        • Adaptation between different mime types is not allowed.
        • +
        • Non seamless adaptation is allowed.
        • +
        • No max limit for video width/height.
        • +
        • Video constraints are ignored if no supported selection can be made otherwise.
        • +
        • No viewport width/height constraints are set.
        • +
        +
      • +
      + + + +
        +
      • +

        Parameters

        +
        public Parameters(java.lang.String preferredAudioLanguage,
        +                  java.lang.String preferredTextLanguage,
        +                  boolean allowMixedMimeAdaptiveness,
        +                  boolean allowNonSeamlessAdaptiveness,
        +                  int maxVideoWidth,
        +                  int maxVideoHeight,
        +                  boolean exceedVideoConstraintsIfNecessary,
        +                  int viewportWidth,
        +                  int viewportHeight,
        +                  boolean orientationMayChange)
        +
        +
        Parameters:
        +
        preferredAudioLanguage - The preferred language for audio, as well as for forced text + tracks as defined by RFC 5646. null to select the default track, or first track + if there's no default.
        +
        preferredTextLanguage - The preferred language for text tracks as defined by RFC 5646. + null to select the default track, or first track if there's no default.
        +
        allowMixedMimeAdaptiveness - Whether to allow selections to contain mixed mime types.
        +
        allowNonSeamlessAdaptiveness - Whether non-seamless adaptation is allowed.
        +
        maxVideoWidth - Maximum allowed video width.
        +
        maxVideoHeight - Maximum allowed video height.
        +
        exceedVideoConstraintsIfNecessary - True to ignore video constraints when no selections + can be made otherwise. False to force constraints anyway.
        +
        viewportWidth - Viewport width in pixels.
        +
        viewportHeight - Viewport height in pixels.
        +
        orientationMayChange - Whether orientation may change during playback.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        withPreferredAudioLanguage

        +
        public DefaultTrackSelector.Parameters withPreferredAudioLanguage(java.lang.String preferredAudioLanguage)
        +
        Returns a DefaultTrackSelector.Parameters instance with the provided preferred language for audio and + forced text tracks.
        +
        +
        Parameters:
        +
        preferredAudioLanguage - The preferred language as defined by RFC 5646. null to + select the default track, or first track if there's no default.
        +
        Returns:
        +
        A DefaultTrackSelector.Parameters instance with the provided preferred language for audio and + forced text tracks.
        +
        +
      • +
      + + + +
        +
      • +

        withPreferredTextLanguage

        +
        public DefaultTrackSelector.Parameters withPreferredTextLanguage(java.lang.String preferredTextLanguage)
        +
        Returns a DefaultTrackSelector.Parameters instance with the provided preferred language for text tracks.
        +
        +
        Parameters:
        +
        preferredTextLanguage - The preferred language as defined by RFC 5646. null to + select the default track, or no track if there's no default.
        +
        Returns:
        +
        A DefaultTrackSelector.Parameters instance with the provided preferred language for text tracks.
        +
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        withExceedVideoConstraintsIfNecessary

        +
        public DefaultTrackSelector.Parameters withExceedVideoConstraintsIfNecessary(boolean exceedVideoConstraintsIfNecessary)
        +
        Returns a DefaultTrackSelector.Parameters instance with the provided + exceedVideoConstraintsIfNecessary value.
        +
        +
        Parameters:
        +
        exceedVideoConstraintsIfNecessary - True to ignore video constraints when no selections + can be made otherwise. False to force constraints anyway.
        +
        Returns:
        +
        A DefaultTrackSelector.Parameters instance with the provided + exceedVideoConstraintsIfNecessary value.
        +
        +
      • +
      + + + +
        +
      • +

        withViewportSize

        +
        public DefaultTrackSelector.Parameters withViewportSize(int viewportWidth,
        +                                                        int viewportHeight,
        +                                                        boolean orientationMayChange)
        +
        Returns a DefaultTrackSelector.Parameters instance with the provided viewport size.
        +
        +
        Parameters:
        +
        viewportWidth - Viewport width in pixels.
        +
        viewportHeight - Viewport height in pixels.
        +
        orientationMayChange - Whether orientation may change during playback.
        +
        Returns:
        +
        A DefaultTrackSelector.Parameters instance with the provided viewport size.
        +
        +
      • +
      + + + +
        +
      • +

        withViewportSizeFromContext

        +
        public DefaultTrackSelector.Parameters withViewportSizeFromContext(android.content.Context context,
        +                                                                   boolean orientationMayChange)
        +
        Returns a DefaultTrackSelector.Parameters instance where the viewport size is obtained from the provided + Context.
        +
        +
        Parameters:
        +
        context - The context to obtain the viewport size from.
        +
        orientationMayChange - Whether orientation may change during playback.
        +
        Returns:
        +
        A DefaultTrackSelector.Parameters instance where the viewport size is obtained from the provided + Context.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.html new file mode 100644 index 00000000..2e5af8de --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.html @@ -0,0 +1,520 @@ + + + + + +DefaultTrackSelector (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class DefaultTrackSelector

+
+
+ +
+
    +
  • +
    +
    +
    public class DefaultTrackSelector
    +extends MappingTrackSelector
    +
    A MappingTrackSelector that allows configuration of common parameters. It is safe to call + the methods of this class from the application thread. See Parameters#Parameters() for + default selection parameters.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultTrackSelector

        +
        public DefaultTrackSelector(android.os.Handler eventHandler)
        +
        Constructs an instance that does not support adaptive video.
        +
        +
        Parameters:
        +
        eventHandler - A handler to use when delivering events to listeners. May be null if + listeners will not be added.
        +
        +
      • +
      + + + +
        +
      • +

        DefaultTrackSelector

        +
        public DefaultTrackSelector(android.os.Handler eventHandler,
        +                            TrackSelection.Factory adaptiveVideoTrackSelectionFactory)
        +
        Constructs an instance that uses a factory to create adaptive video track selections.
        +
        +
        Parameters:
        +
        eventHandler - A handler to use when delivering events to listeners. May be null if + listeners will not be added.
        +
        adaptiveVideoTrackSelectionFactory - A factory for adaptive video TrackSelections, + or null if the selector should not support adaptive video.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/FixedTrackSelection.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/FixedTrackSelection.Factory.html new file mode 100644 index 00000000..d4c20736 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/FixedTrackSelection.Factory.html @@ -0,0 +1,314 @@ + + + + + +FixedTrackSelection.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class FixedTrackSelection.Factory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.trackselection.FixedTrackSelection.Factory
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Factory() 
      Factory(int reason, + java.lang.Object data) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Factory

        +
        public Factory()
        +
      • +
      + + + +
        +
      • +

        Factory

        +
        public Factory(int reason,
        +               java.lang.Object data)
        +
        +
        Parameters:
        +
        reason - A reason for the track selection.
        +
        data - Optional data associated with the track selection.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/FixedTrackSelection.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/FixedTrackSelection.html new file mode 100644 index 00000000..6e35e576 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/FixedTrackSelection.html @@ -0,0 +1,413 @@ + + + + + +FixedTrackSelection (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class FixedTrackSelection

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FixedTrackSelection

        +
        public FixedTrackSelection(TrackGroup group,
        +                           int track)
        +
        +
        Parameters:
        +
        group - The TrackGroup. Must not be null.
        +
        track - The index of the selected track within the TrackGroup.
        +
        +
      • +
      + + + +
        +
      • +

        FixedTrackSelection

        +
        public FixedTrackSelection(TrackGroup group,
        +                           int track,
        +                           int reason,
        +                           java.lang.Object data)
        +
        +
        Parameters:
        +
        group - The TrackGroup. Must not be null.
        +
        track - The index of the selected track within the TrackGroup.
        +
        reason - A reason for the track selection.
        +
        data - Optional data associated with the track selection.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        updateSelectedTrack

        +
        public void updateSelectedTrack(long bufferedDurationUs)
        +
        Description copied from interface: TrackSelection
        +
        Updates the selected track.
        +
        +
        Parameters:
        +
        bufferedDurationUs - The duration of media currently buffered in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getSelectedIndex

        +
        public int getSelectedIndex()
        +
        Description copied from interface: TrackSelection
        +
        Returns the index of the selected track.
        +
      • +
      + + + +
        +
      • +

        getSelectionReason

        +
        public int getSelectionReason()
        +
        Description copied from interface: TrackSelection
        +
        Returns the reason for the current track selection.
        +
      • +
      + + + +
        +
      • +

        getSelectionData

        +
        public java.lang.Object getSelectionData()
        +
        Description copied from interface: TrackSelection
        +
        Returns optional data associated with the current track selection.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/MappingTrackSelector.MappedTrackInfo.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/MappingTrackSelector.MappedTrackInfo.html new file mode 100644 index 00000000..dbca86ef --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/MappingTrackSelector.MappedTrackInfo.html @@ -0,0 +1,501 @@ + + + + + +MappingTrackSelector.MappedTrackInfo (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class MappingTrackSelector.MappedTrackInfo

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    MappingTrackSelector
    +
    +
    +
    +
    public static final class MappingTrackSelector.MappedTrackInfo
    +extends java.lang.Object
    +
    Provides track information for each renderer.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetAdaptiveSupport(int rendererIndex, + int groupIndex, + boolean includeCapabilitiesExceededTracks) +
      Returns the extent to which the renderer supports adaptation between supported tracks in a + specified TrackGroup.
      +
      intgetAdaptiveSupport(int rendererIndex, + int groupIndex, + int[] trackIndices) +
      Returns the extent to which the renderer supports adaptation between specified tracks within + a TrackGroup.
      +
      intgetRendererSupport(int rendererIndex) +
      Returns the extent to which a renderer can support playback of the tracks associated to it.
      +
      intgetTrackFormatSupport(int rendererIndex, + int groupIndex, + int trackIndex) +
      Returns the extent to which the format of an individual track is supported by the renderer.
      +
      TrackGroupArraygetTrackGroups(int rendererIndex) +
      Returns the array of TrackGroups associated to the renderer at a specified index.
      +
      TrackGroupArraygetUnassociatedTrackGroups() +
      Returns the TrackGroups not associated with any renderer.
      +
      booleanhasOnlyUnplayableTracks(int trackType) +
      Returns true if tracks of the specified type exist and have been associated with renderers, + but are all unplayable.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/MappingTrackSelector.SelectionOverride.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/MappingTrackSelector.SelectionOverride.html new file mode 100644 index 00000000..570c1bb7 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/MappingTrackSelector.SelectionOverride.html @@ -0,0 +1,384 @@ + + + + + +MappingTrackSelector.SelectionOverride (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class MappingTrackSelector.SelectionOverride

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.trackselection.MappingTrackSelector.SelectionOverride
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    MappingTrackSelector
    +
    +
    +
    +
    public static final class MappingTrackSelector.SelectionOverride
    +extends java.lang.Object
    +
    A track selection override.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        groupIndex

        +
        public final int groupIndex
        +
      • +
      + + + +
        +
      • +

        tracks

        +
        public final int[] tracks
        +
      • +
      + + + +
        +
      • +

        length

        +
        public final int length
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SelectionOverride

        +
        public SelectionOverride(TrackSelection.Factory factory,
        +                         int groupIndex,
        +                         int... tracks)
        +
        +
        Parameters:
        +
        factory - A factory for creating selections from this override.
        +
        groupIndex - The overriding group index.
        +
        tracks - The overriding track indices within the group.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createTrackSelection

        +
        public TrackSelection createTrackSelection(TrackGroupArray groups)
        +
        Creates an selection from this override.
        +
        +
        Parameters:
        +
        groups - The groups whose selection is being overridden.
        +
        Returns:
        +
        The selection.
        +
        +
      • +
      + + + +
        +
      • +

        containsTrack

        +
        public boolean containsTrack(int track)
        +
        Returns whether this override contains the specified track index.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/MappingTrackSelector.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/MappingTrackSelector.html new file mode 100644 index 00000000..dd8829b4 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/MappingTrackSelector.html @@ -0,0 +1,567 @@ + + + + + +MappingTrackSelector (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class MappingTrackSelector

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MappingTrackSelector

        +
        public MappingTrackSelector(android.os.Handler eventHandler)
        +
        +
        Parameters:
        +
        eventHandler - A handler to use when delivering events to listeners added via + TrackSelector.addListener(EventListener).
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setRendererDisabled

        +
        public final void setRendererDisabled(int rendererIndex,
        +                                      boolean disabled)
        +
        Sets whether the renderer at the specified index is disabled.
        +
        +
        Parameters:
        +
        rendererIndex - The renderer index.
        +
        disabled - Whether the renderer is disabled.
        +
        +
      • +
      + + + +
        +
      • +

        getRendererDisabled

        +
        public final boolean getRendererDisabled(int rendererIndex)
        +
        Returns whether the renderer is disabled.
        +
        +
        Parameters:
        +
        rendererIndex - The renderer index.
        +
        Returns:
        +
        Whether the renderer is disabled.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        hasSelectionOverride

        +
        public final boolean hasSelectionOverride(int rendererIndex,
        +                                          TrackGroupArray groups)
        +
        Returns whether there is an override for the specified renderer and TrackGroupArray.
        +
        +
        Parameters:
        +
        rendererIndex - The renderer index.
        +
        groups - The TrackGroupArray.
        +
        Returns:
        +
        Whether there is an override.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        clearSelectionOverride

        +
        public final void clearSelectionOverride(int rendererIndex,
        +                                         TrackGroupArray groups)
        +
        Clears a track selection override for the specified renderer and TrackGroupArray.
        +
        +
        Parameters:
        +
        rendererIndex - The renderer index.
        +
        groups - The TrackGroupArray for which the override should be cleared.
        +
        +
      • +
      + + + +
        +
      • +

        clearSelectionOverrides

        +
        public final void clearSelectionOverrides(int rendererIndex)
        +
        Clears all track selection override for the specified renderer.
        +
        +
        Parameters:
        +
        rendererIndex - The renderer index.
        +
        +
      • +
      + + + +
        +
      • +

        clearSelectionOverrides

        +
        public final void clearSelectionOverrides()
        +
        Clears all track selection overrides.
        +
      • +
      + + + + + + + +
        +
      • +

        selectTracks

        +
        protected abstract TrackSelection[] selectTracks(RendererCapabilities[] rendererCapabilities,
        +                                                 TrackGroupArray[] rendererTrackGroupArrays,
        +                                                 int[][][] rendererFormatSupports)
        +                                          throws ExoPlaybackException
        +
        Given an array of renderers and a set of TrackGroups mapped to each of them, provides a + TrackSelection per renderer.
        +
        +
        Parameters:
        +
        rendererCapabilities - The RendererCapabilities of the renderers for which + TrackSelections are to be generated.
        +
        rendererTrackGroupArrays - An array of TrackGroupArrays where each entry + corresponds to the renderer of equal index in renderers.
        +
        rendererFormatSupports - Maps every available track to a specific level of support as + defined by the renderer FORMAT_* constants.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs while selecting the tracks.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/RandomTrackSelection.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/RandomTrackSelection.Factory.html new file mode 100644 index 00000000..4f4f3945 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/RandomTrackSelection.Factory.html @@ -0,0 +1,311 @@ + + + + + +RandomTrackSelection.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class RandomTrackSelection.Factory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.trackselection.RandomTrackSelection.Factory
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Factory

        +
        public Factory()
        +
      • +
      + + + +
        +
      • +

        Factory

        +
        public Factory(int seed)
        +
        +
        Parameters:
        +
        seed - A seed for the Random instance used by the factory.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/RandomTrackSelection.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/RandomTrackSelection.html new file mode 100644 index 00000000..9eb0780b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/RandomTrackSelection.html @@ -0,0 +1,435 @@ + + + + + +RandomTrackSelection (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class RandomTrackSelection

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RandomTrackSelection

        +
        public RandomTrackSelection(TrackGroup group,
        +                            int... tracks)
        +
        +
        Parameters:
        +
        group - The TrackGroup. Must not be null.
        +
        tracks - The indices of the selected tracks within the TrackGroup. Must not be + null or empty. May be in any order.
        +
        +
      • +
      + + + +
        +
      • +

        RandomTrackSelection

        +
        public RandomTrackSelection(TrackGroup group,
        +                            int[] tracks,
        +                            long seed)
        +
        +
        Parameters:
        +
        group - The TrackGroup. Must not be null.
        +
        tracks - The indices of the selected tracks within the TrackGroup. Must not be + null or empty. May be in any order.
        +
        seed - A seed for the Random instance used to update the selected track.
        +
        +
      • +
      + + + +
        +
      • +

        RandomTrackSelection

        +
        public RandomTrackSelection(TrackGroup group,
        +                            int[] tracks,
        +                            java.util.Random random)
        +
        +
        Parameters:
        +
        group - The TrackGroup. Must not be null.
        +
        tracks - The indices of the selected tracks within the TrackGroup. Must not be + null or empty. May be in any order.
        +
        random - A source of random numbers.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        updateSelectedTrack

        +
        public void updateSelectedTrack(long bufferedDurationUs)
        +
        Description copied from interface: TrackSelection
        +
        Updates the selected track.
        +
        +
        Parameters:
        +
        bufferedDurationUs - The duration of media currently buffered in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getSelectedIndex

        +
        public int getSelectedIndex()
        +
        Description copied from interface: TrackSelection
        +
        Returns the index of the selected track.
        +
      • +
      + + + +
        +
      • +

        getSelectionReason

        +
        public int getSelectionReason()
        +
        Description copied from interface: TrackSelection
        +
        Returns the reason for the current track selection.
        +
      • +
      + + + +
        +
      • +

        getSelectionData

        +
        public java.lang.Object getSelectionData()
        +
        Description copied from interface: TrackSelection
        +
        Returns optional data associated with the current track selection.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelection.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelection.Factory.html new file mode 100644 index 00000000..d767f914 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelection.Factory.html @@ -0,0 +1,241 @@ + + + + + +TrackSelection.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Interface TrackSelection.Factory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createTrackSelection

        +
        TrackSelection createTrackSelection(TrackGroup group,
        +                                    int... tracks)
        +
        Creates a new selection.
        +
        +
        Parameters:
        +
        group - The TrackGroup. Must not be null.
        +
        tracks - The indices of the selected tracks within the TrackGroup. Must not be + null or empty. May be in any order.
        +
        Returns:
        +
        The created selection.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelection.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelection.html new file mode 100644 index 00000000..7f393a30 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelection.html @@ -0,0 +1,523 @@ + + + + + +TrackSelection (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Interface TrackSelection

+
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      booleanblacklist(int index, + long blacklistDurationMs) +
      Attempts to blacklist the track at the specified index in the selection, making it ineligible + for selection by calls to updateSelectedTrack(long) for the specified period of time.
      +
      intevaluateQueueSize(long playbackPositionUs, + java.util.List<? extends MediaChunk> queue) +
      May be called periodically by sources that load media in discrete MediaChunks and + support discarding of buffered chunks in order to re-buffer using a different selected track.
      +
      FormatgetFormat(int index) +
      Returns the format of the track at a given index in the selection.
      +
      intgetIndexInTrackGroup(int index) +
      Returns the index in the track group of the track at a given index in the selection.
      +
      FormatgetSelectedFormat() +
      Returns the Format of the individual selected track.
      +
      intgetSelectedIndex() +
      Returns the index of the selected track.
      +
      intgetSelectedIndexInTrackGroup() +
      Returns the index in the track group of the individual selected track.
      +
      java.lang.ObjectgetSelectionData() +
      Returns optional data associated with the current track selection.
      +
      intgetSelectionReason() +
      Returns the reason for the current track selection.
      +
      TrackGroupgetTrackGroup() +
      Returns the TrackGroup to which the selected tracks belong.
      +
      intindexOf(Format format) +
      Returns the index in the selection of the track with the specified format.
      +
      intindexOf(int indexInTrackGroup) +
      Returns the index in the selection of the track with the specified index in the track group.
      +
      intlength() +
      Returns the number of tracks in the selection.
      +
      voidupdateSelectedTrack(long bufferedDurationUs) +
      Updates the selected track.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTrackGroup

        +
        TrackGroup getTrackGroup()
        +
        Returns the TrackGroup to which the selected tracks belong.
        +
      • +
      + + + +
        +
      • +

        length

        +
        int length()
        +
        Returns the number of tracks in the selection.
        +
      • +
      + + + +
        +
      • +

        getFormat

        +
        Format getFormat(int index)
        +
        Returns the format of the track at a given index in the selection.
        +
        +
        Parameters:
        +
        index - The index in the selection.
        +
        Returns:
        +
        The format of the selected track.
        +
        +
      • +
      + + + +
        +
      • +

        getIndexInTrackGroup

        +
        int getIndexInTrackGroup(int index)
        +
        Returns the index in the track group of the track at a given index in the selection.
        +
        +
        Parameters:
        +
        index - The index in the selection.
        +
        Returns:
        +
        The index of the selected track.
        +
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        int indexOf(Format format)
        +
        Returns the index in the selection of the track with the specified format.
        +
        +
        Parameters:
        +
        format - The format.
        +
        Returns:
        +
        The index in the selection, or C.INDEX_UNSET if the track with the specified + format is not part of the selection.
        +
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        int indexOf(int indexInTrackGroup)
        +
        Returns the index in the selection of the track with the specified index in the track group.
        +
        +
        Parameters:
        +
        indexInTrackGroup - The index in the track group.
        +
        Returns:
        +
        The index in the selection, or C.INDEX_UNSET if the track with the specified + index is not part of the selection.
        +
        +
      • +
      + + + +
        +
      • +

        getSelectedFormat

        +
        Format getSelectedFormat()
        +
        Returns the Format of the individual selected track.
        +
      • +
      + + + +
        +
      • +

        getSelectedIndexInTrackGroup

        +
        int getSelectedIndexInTrackGroup()
        +
        Returns the index in the track group of the individual selected track.
        +
      • +
      + + + +
        +
      • +

        getSelectedIndex

        +
        int getSelectedIndex()
        +
        Returns the index of the selected track.
        +
      • +
      + + + +
        +
      • +

        getSelectionReason

        +
        int getSelectionReason()
        +
        Returns the reason for the current track selection.
        +
      • +
      + + + +
        +
      • +

        getSelectionData

        +
        java.lang.Object getSelectionData()
        +
        Returns optional data associated with the current track selection.
        +
      • +
      + + + +
        +
      • +

        updateSelectedTrack

        +
        void updateSelectedTrack(long bufferedDurationUs)
        +
        Updates the selected track.
        +
        +
        Parameters:
        +
        bufferedDurationUs - The duration of media currently buffered in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        evaluateQueueSize

        +
        int evaluateQueueSize(long playbackPositionUs,
        +                      java.util.List<? extends MediaChunk> queue)
        +
        May be called periodically by sources that load media in discrete MediaChunks and + support discarding of buffered chunks in order to re-buffer using a different selected track. + Returns the number of chunks that should be retained in the queue. +

        + To avoid excessive re-buffering, implementations should normally return the size of the queue. + An example of a case where a smaller value may be returned is if network conditions have + improved dramatically, allowing chunks to be discarded and re-buffered in a track of + significantly higher quality. Discarding chunks may allow faster switching to a higher quality + track in this case.

        +
        +
        Parameters:
        +
        playbackPositionUs - The current playback position in microseconds.
        +
        queue - The queue of buffered MediaChunks. Must not be modified.
        +
        Returns:
        +
        The number of chunks to retain in the queue.
        +
        +
      • +
      + + + +
        +
      • +

        blacklist

        +
        boolean blacklist(int index,
        +                  long blacklistDurationMs)
        +
        Attempts to blacklist the track at the specified index in the selection, making it ineligible + for selection by calls to updateSelectedTrack(long) for the specified period of time. + Blacklisting will fail if all other tracks are currently blacklisted. If blacklisting the + currently selected track, note that it will remain selected until the next call to + updateSelectedTrack(long).
        +
        +
        Parameters:
        +
        index - The index of the track in the selection.
        +
        blacklistDurationMs - The duration of time for which the track should be blacklisted, in + milliseconds.
        +
        Returns:
        +
        Whether blacklisting was successful.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelections.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelections.html new file mode 100644 index 00000000..c5ebadbc --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelections.html @@ -0,0 +1,393 @@ + + + + + +TrackSelections (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class TrackSelections<T>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.trackselection.TrackSelections<T>
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class TrackSelections<T>
    +extends java.lang.Object
    +
    The result of a TrackSelector operation.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      Tinfo +
      Opaque information associated with the result.
      +
      intlength +
      The number of selections in the result.
      +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object obj) 
      TrackSelectionget(int index) +
      Returns the selection at a given index.
      +
      TrackSelection[]getAll() +
      Returns the selections in a newly allocated array.
      +
      inthashCode() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        info

        +
        public final T info
        +
        Opaque information associated with the result.
        +
      • +
      + + + +
        +
      • +

        length

        +
        public final int length
        +
        The number of selections in the result. Greater than or equal to zero.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        TrackSelections

        +
        public TrackSelections(T info,
        +                       TrackSelection... trackSelections)
        +
        +
        Parameters:
        +
        info - Opaque information associated with the result.
        +
        trackSelections - The selections. Must not be null, but may contain null elements.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public TrackSelection get(int index)
        +
        Returns the selection at a given index.
        +
        +
        Parameters:
        +
        index - The index of the selection.
        +
        Returns:
        +
        The selection.
        +
        +
      • +
      + + + +
        +
      • +

        getAll

        +
        public TrackSelection[] getAll()
        +
        Returns the selections in a newly allocated array.
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelector.EventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelector.EventListener.html new file mode 100644 index 00000000..dcfc9671 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelector.EventListener.html @@ -0,0 +1,231 @@ + + + + + +TrackSelector.EventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Interface TrackSelector.EventListener<T>

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    TrackSelector<T>
    +
    +
    +
    +
    public static interface TrackSelector.EventListener<T>
    +
    Listener of TrackSelector events.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onTrackSelectionsChanged

        +
        void onTrackSelectionsChanged(TrackSelections<? extends T> trackSelections)
        +
        Called when the track selections have changed.
        +
        +
        Parameters:
        +
        trackSelections - The new track selections.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelector.InvalidationListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelector.InvalidationListener.html new file mode 100644 index 00000000..89aafc19 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelector.InvalidationListener.html @@ -0,0 +1,227 @@ + + + + + +TrackSelector.InvalidationListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Interface TrackSelector.InvalidationListener

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    TrackSelector<T>
    +
    +
    +
    +
    public static interface TrackSelector.InvalidationListener
    +
    Notified when previous selections by a TrackSelector are no longer valid.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onTrackSelectionsInvalidated

        +
        void onTrackSelectionsInvalidated()
        +
        Called by a TrackSelector when previous selections are no longer valid.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelector.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelector.html new file mode 100644 index 00000000..1e382dcf --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/TrackSelector.html @@ -0,0 +1,433 @@ + + + + + +TrackSelector (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.trackselection
+

Class TrackSelector<T>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.trackselection.TrackSelector<T>
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    MappingTrackSelector
    +
    +
    +
    +
    public abstract class TrackSelector<T>
    +extends java.lang.Object
    +
    Selects tracks to be consumed by available renderers.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TrackSelector

        +
        public TrackSelector(android.os.Handler eventHandler)
        +
        +
        Parameters:
        +
        eventHandler - A handler to use when delivering events to listeners added via addListener(EventListener).
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/package-frame.html new file mode 100644 index 00000000..6490a7a7 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/package-frame.html @@ -0,0 +1,40 @@ + + + + + +com.google.android.exoplayer2.trackselection (library API) + + + + + +

com.google.android.exoplayer2.trackselection

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/package-summary.html new file mode 100644 index 00000000..89d0b950 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/package-summary.html @@ -0,0 +1,258 @@ + + + + + +com.google.android.exoplayer2.trackselection (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.trackselection

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/package-tree.html new file mode 100644 index 00000000..5ea24014 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/trackselection/package-tree.html @@ -0,0 +1,164 @@ + + + + + +com.google.android.exoplayer2.trackselection Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.trackselection

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/AspectRatioFrameLayout.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/AspectRatioFrameLayout.html new file mode 100644 index 00000000..eceacfe3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/AspectRatioFrameLayout.html @@ -0,0 +1,505 @@ + + + + + +AspectRatioFrameLayout (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.ui
+

Class AspectRatioFrameLayout

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • android.view.View
    • +
    • +
        +
      • android.view.ViewGroup
      • +
      • +
          +
        • android.widget.FrameLayout
        • +
        • +
            +
          • com.google.android.exoplayer2.ui.AspectRatioFrameLayout
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.ViewManager, android.view.ViewParent
    +
    +
    +
    +
    public final class AspectRatioFrameLayout
    +extends android.widget.FrameLayout
    +
    A FrameLayout that resizes itself to match a specified aspect ratio.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.widget.FrameLayout

        +android.widget.FrameLayout.LayoutParams
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.view.ViewGroup

        +android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.view.View

        +android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intRESIZE_MODE_FIT +
      Either the width or height is decreased to obtain the desired aspect ratio.
      +
      static intRESIZE_MODE_FIXED_HEIGHT +
      The height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
      +
      static intRESIZE_MODE_FIXED_WIDTH +
      The width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
      +
      +
        +
      • + + +

        Fields inherited from class android.view.ViewGroup

        +CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
      • +
      +
        +
      • + + +

        Fields inherited from class android.view.View

        +ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      AspectRatioFrameLayout(android.content.Context context) 
      AspectRatioFrameLayout(android.content.Context context, + android.util.AttributeSet attrs) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voidonMeasure(int widthMeasureSpec, + int heightMeasureSpec) 
      voidsetAspectRatio(float widthHeightRatio) +
      Set the aspect ratio that this view should satisfy.
      +
      voidsetResizeMode(int resizeMode) +
      Sets the resize mode which can be of value RESIZE_MODE_FIT, + RESIZE_MODE_FIXED_HEIGHT or RESIZE_MODE_FIXED_WIDTH.
      +
      +
        +
      • + + +

        Methods inherited from class android.widget.FrameLayout

        +checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, onLayout, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedState
      • +
      +
        +
      • + + +

        Methods inherited from class android.view.ViewGroup

        +addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
      • +
      +
        +
      • + + +

        Methods inherited from class android.view.View

        +addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchStartTemporaryDetach, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPopulateAccessibilityEvent, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface android.view.ViewParent

        +canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows, requestLayout
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        RESIZE_MODE_FIT

        +
        public static final int RESIZE_MODE_FIT
        +
        Either the width or height is decreased to obtain the desired aspect ratio.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        RESIZE_MODE_FIXED_WIDTH

        +
        public static final int RESIZE_MODE_FIXED_WIDTH
        +
        The width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        RESIZE_MODE_FIXED_HEIGHT

        +
        public static final int RESIZE_MODE_FIXED_HEIGHT
        +
        The height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AspectRatioFrameLayout

        +
        public AspectRatioFrameLayout(android.content.Context context)
        +
      • +
      + + + +
        +
      • +

        AspectRatioFrameLayout

        +
        public AspectRatioFrameLayout(android.content.Context context,
        +                              android.util.AttributeSet attrs)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setAspectRatio

        +
        public void setAspectRatio(float widthHeightRatio)
        +
        Set the aspect ratio that this view should satisfy.
        +
        +
        Parameters:
        +
        widthHeightRatio - The width to height ratio.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        onMeasure

        +
        protected void onMeasure(int widthMeasureSpec,
        +                         int heightMeasureSpec)
        +
        +
        Overrides:
        +
        onMeasure in class android.widget.FrameLayout
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/DebugTextViewHelper.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/DebugTextViewHelper.html new file mode 100644 index 00000000..4bbb7a25 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/DebugTextViewHelper.html @@ -0,0 +1,447 @@ + + + + + +DebugTextViewHelper (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.ui
+

Class DebugTextViewHelper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.ui.DebugTextViewHelper
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    ExoPlayer.EventListener, java.lang.Runnable
    +
    +
    +
    +
    public final class DebugTextViewHelper
    +extends java.lang.Object
    +implements java.lang.Runnable, ExoPlayer.EventListener
    +
    A helper class for periodically updating a TextView with debug information obtained from + a SimpleExoPlayer.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DebugTextViewHelper

        +
        public DebugTextViewHelper(SimpleExoPlayer player,
        +                           android.widget.TextView textView)
        +
        +
        Parameters:
        +
        player - The SimpleExoPlayer from which debug information should be obtained.
        +
        textView - The TextView that should be updated to display the information.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        start

        +
        public void start()
        +
        Starts periodic updates of the TextView. Must be called from the application's main + thread.
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public void stop()
        +
        Stops periodic updates of the TextView. Must be called from the application's main + thread.
        +
      • +
      + + + +
        +
      • +

        onLoadingChanged

        +
        public void onLoadingChanged(boolean isLoading)
        +
        Description copied from interface: ExoPlayer.EventListener
        +
        Called when the player starts or stops loading the source.
        +
        +
        Specified by:
        +
        onLoadingChanged in interface ExoPlayer.EventListener
        +
        Parameters:
        +
        isLoading - Whether the source is currently being loaded.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        onPositionDiscontinuity

        +
        public void onPositionDiscontinuity()
        +
        Description copied from interface: ExoPlayer.EventListener
        +
        Called when a position discontinuity occurs. Position discontinuities occur when seeks are + performed, when playbacks transition from one period in the timeline to the next, and when + the player introduces discontinuities internally.
        +
        +
        Specified by:
        +
        onPositionDiscontinuity in interface ExoPlayer.EventListener
        +
        +
      • +
      + + + +
        +
      • +

        onTimelineChanged

        +
        public void onTimelineChanged(Timeline timeline,
        +                              java.lang.Object manifest)
        +
        Description copied from interface: ExoPlayer.EventListener
        +
        Called when timeline and/or manifest has been refreshed.
        +
        +
        Specified by:
        +
        onTimelineChanged in interface ExoPlayer.EventListener
        +
        Parameters:
        +
        timeline - The latest timeline, or null if the timeline is being cleared.
        +
        manifest - The latest manifest, or null if the manifest is being cleared.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/PlaybackControlView.VisibilityListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/PlaybackControlView.VisibilityListener.html new file mode 100644 index 00000000..416924da --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/PlaybackControlView.VisibilityListener.html @@ -0,0 +1,231 @@ + + + + + +PlaybackControlView.VisibilityListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.ui
+

Interface PlaybackControlView.VisibilityListener

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    PlaybackControlView
    +
    +
    +
    +
    public static interface PlaybackControlView.VisibilityListener
    +
    Listener to be notified about changes of the visibility of the UI control.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onVisibilityChange

        +
        void onVisibilityChange(int visibility)
        +
        Called when the visibility changes.
        +
        +
        Parameters:
        +
        visibility - The new visibility. Either View.VISIBLE or View.GONE.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/PlaybackControlView.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/PlaybackControlView.html new file mode 100644 index 00000000..2cb67508 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/PlaybackControlView.html @@ -0,0 +1,704 @@ + + + + + +PlaybackControlView (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.ui
+

Class PlaybackControlView

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • android.view.View
    • +
    • +
        +
      • android.view.ViewGroup
      • +
      • +
          +
        • android.widget.FrameLayout
        • +
        • +
            +
          • com.google.android.exoplayer2.ui.PlaybackControlView
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.ViewManager, android.view.ViewParent
    +
    +
    +
    +
    public class PlaybackControlView
    +extends android.widget.FrameLayout
    +
    A view to control video playback of an ExoPlayer.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface PlaybackControlView.VisibilityListener +
      Listener to be notified about changes of the visibility of the UI control.
      +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.widget.FrameLayout

        +android.widget.FrameLayout.LayoutParams
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.view.ViewGroup

        +android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.view.View

        +android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intDEFAULT_FAST_FORWARD_MS 
      static intDEFAULT_REWIND_MS 
      static intDEFAULT_SHOW_TIMEOUT_MS 
      +
        +
      • + + +

        Fields inherited from class android.view.ViewGroup

        +CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
      • +
      +
        +
      • + + +

        Fields inherited from class android.view.View

        +ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      PlaybackControlView(android.content.Context context) 
      PlaybackControlView(android.content.Context context, + android.util.AttributeSet attrs) 
      PlaybackControlView(android.content.Context context, + android.util.AttributeSet attrs, + int defStyleAttr) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleandispatchKeyEvent(android.view.KeyEvent event) 
      ExoPlayergetPlayer() +
      Returns the player currently being controlled by this view, or null if no player is set.
      +
      intgetShowTimeoutMs() +
      Returns the playback controls timeout.
      +
      voidhide() +
      Hides the controller.
      +
      booleanisVisible() +
      Returns whether the controller is currently visible.
      +
      voidonAttachedToWindow() 
      voidonDetachedFromWindow() 
      voidsetFastForwardIncrementMs(int fastForwardMs) +
      Sets the fast forward increment in milliseconds.
      +
      voidsetPlayer(ExoPlayer player) +
      Sets the ExoPlayer to control.
      +
      voidsetRewindIncrementMs(int rewindMs) +
      Sets the rewind increment in milliseconds.
      +
      voidsetShowTimeoutMs(int showTimeoutMs) +
      Sets the playback controls timeout.
      +
      voidsetVisibilityListener(PlaybackControlView.VisibilityListener listener) + +
      voidshow() +
      Shows the playback controls.
      +
      +
        +
      • + + +

        Methods inherited from class android.widget.FrameLayout

        +checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, onLayout, onMeasure, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedState
      • +
      +
        +
      • + + +

        Methods inherited from class android.view.ViewGroup

        +addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onCreateDrawableState, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
      • +
      +
        +
      • + + +

        Methods inherited from class android.view.View

        +addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchStartTemporaryDetach, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPopulateAccessibilityEvent, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface android.view.ViewParent

        +canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows, requestLayout
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PlaybackControlView

        +
        public PlaybackControlView(android.content.Context context)
        +
      • +
      + + + +
        +
      • +

        PlaybackControlView

        +
        public PlaybackControlView(android.content.Context context,
        +                           android.util.AttributeSet attrs)
        +
      • +
      + + + +
        +
      • +

        PlaybackControlView

        +
        public PlaybackControlView(android.content.Context context,
        +                           android.util.AttributeSet attrs,
        +                           int defStyleAttr)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPlayer

        +
        public ExoPlayer getPlayer()
        +
        Returns the player currently being controlled by this view, or null if no player is set.
        +
      • +
      + + + +
        +
      • +

        setPlayer

        +
        public void setPlayer(ExoPlayer player)
        +
        Sets the ExoPlayer to control.
        +
        +
        Parameters:
        +
        player - the ExoPlayer to control.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        setRewindIncrementMs

        +
        public void setRewindIncrementMs(int rewindMs)
        +
        Sets the rewind increment in milliseconds.
        +
        +
        Parameters:
        +
        rewindMs - The rewind increment in milliseconds.
        +
        +
      • +
      + + + +
        +
      • +

        setFastForwardIncrementMs

        +
        public void setFastForwardIncrementMs(int fastForwardMs)
        +
        Sets the fast forward increment in milliseconds.
        +
        +
        Parameters:
        +
        fastForwardMs - The fast forward increment in milliseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getShowTimeoutMs

        +
        public int getShowTimeoutMs()
        +
        Returns the playback controls timeout. The playback controls are automatically hidden after + this duration of time has elapsed without user input.
        +
        +
        Returns:
        +
        The duration in milliseconds. A non-positive value indicates that the controls will + remain visible indefinitely.
        +
        +
      • +
      + + + +
        +
      • +

        setShowTimeoutMs

        +
        public void setShowTimeoutMs(int showTimeoutMs)
        +
        Sets the playback controls timeout. The playback controls are automatically hidden after this + duration of time has elapsed without user input.
        +
        +
        Parameters:
        +
        showTimeoutMs - The duration in milliseconds. A non-positive value will cause the controls + to remain visible indefinitely.
        +
        +
      • +
      + + + +
        +
      • +

        show

        +
        public void show()
        +
        Shows the playback controls. If getShowTimeoutMs() is positive then the controls will + be automatically hidden after this duration of time has elapsed without user input.
        +
      • +
      + + + +
        +
      • +

        hide

        +
        public void hide()
        +
        Hides the controller.
        +
      • +
      + + + +
        +
      • +

        isVisible

        +
        public boolean isVisible()
        +
        Returns whether the controller is currently visible.
        +
      • +
      + + + +
        +
      • +

        onAttachedToWindow

        +
        public void onAttachedToWindow()
        +
        +
        Overrides:
        +
        onAttachedToWindow in class android.view.ViewGroup
        +
        +
      • +
      + + + +
        +
      • +

        onDetachedFromWindow

        +
        public void onDetachedFromWindow()
        +
        +
        Overrides:
        +
        onDetachedFromWindow in class android.view.ViewGroup
        +
        +
      • +
      + + + +
        +
      • +

        dispatchKeyEvent

        +
        public boolean dispatchKeyEvent(android.view.KeyEvent event)
        +
        +
        Overrides:
        +
        dispatchKeyEvent in class android.view.ViewGroup
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/SimpleExoPlayerView.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/SimpleExoPlayerView.html new file mode 100644 index 00000000..0d714143 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/SimpleExoPlayerView.html @@ -0,0 +1,661 @@ + + + + + +SimpleExoPlayerView (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.ui
+

Class SimpleExoPlayerView

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • android.view.View
    • +
    • +
        +
      • android.view.ViewGroup
      • +
      • +
          +
        • android.widget.FrameLayout
        • +
        • +
            +
          • com.google.android.exoplayer2.ui.SimpleExoPlayerView
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.ViewManager, android.view.ViewParent
    +
    +
    +
    +
    public final class SimpleExoPlayerView
    +extends android.widget.FrameLayout
    +
    Displays a video stream.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.widget.FrameLayout

        +android.widget.FrameLayout.LayoutParams
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.view.ViewGroup

        +android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.view.View

        +android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class android.view.ViewGroup

        +CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
      • +
      +
        +
      • + + +

        Fields inherited from class android.view.View

        +ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      SimpleExoPlayerView(android.content.Context context) 
      SimpleExoPlayerView(android.content.Context context, + android.util.AttributeSet attrs) 
      SimpleExoPlayerView(android.content.Context context, + android.util.AttributeSet attrs, + int defStyleAttr) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleandispatchKeyEvent(android.view.KeyEvent event) 
      intgetControllerShowTimeoutMs() +
      Returns the playback controls timeout.
      +
      SimpleExoPlayergetPlayer() +
      Returns the player currently set on this view, or null if no player is set.
      +
      booleangetUseController() +
      Returns whether the playback controls are enabled.
      +
      android.view.ViewgetVideoSurfaceView() +
      Get the view onto which video is rendered.
      +
      booleanonTouchEvent(android.view.MotionEvent ev) 
      booleanonTrackballEvent(android.view.MotionEvent ev) 
      voidsetControllerShowTimeoutMs(int controllerShowTimeoutMs) +
      Sets the playback controls timeout.
      +
      voidsetControllerVisibilityListener(PlaybackControlView.VisibilityListener listener) + +
      voidsetFastForwardIncrementMs(int fastForwardMs) +
      Sets the fast forward increment in milliseconds.
      +
      voidsetPlayer(SimpleExoPlayer player) +
      Set the SimpleExoPlayer to use.
      +
      voidsetResizeMode(int resizeMode) + +
      voidsetRewindIncrementMs(int rewindMs) +
      Sets the rewind increment in milliseconds.
      +
      voidsetUseController(boolean useController) +
      Sets whether playback controls are enabled.
      +
      +
        +
      • + + +

        Methods inherited from class android.widget.FrameLayout

        +checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, onLayout, onMeasure, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedState
      • +
      +
        +
      • + + +

        Methods inherited from class android.view.ViewGroup

        +addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
      • +
      +
        +
      • + + +

        Methods inherited from class android.view.View

        +addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchStartTemporaryDetach, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPopulateAccessibilityEvent, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface android.view.ViewParent

        +canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows, requestLayout
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SimpleExoPlayerView

        +
        public SimpleExoPlayerView(android.content.Context context)
        +
      • +
      + + + +
        +
      • +

        SimpleExoPlayerView

        +
        public SimpleExoPlayerView(android.content.Context context,
        +                           android.util.AttributeSet attrs)
        +
      • +
      + + + +
        +
      • +

        SimpleExoPlayerView

        +
        public SimpleExoPlayerView(android.content.Context context,
        +                           android.util.AttributeSet attrs,
        +                           int defStyleAttr)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPlayer

        +
        public SimpleExoPlayer getPlayer()
        +
        Returns the player currently set on this view, or null if no player is set.
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getUseController

        +
        public boolean getUseController()
        +
        Returns whether the playback controls are enabled.
        +
      • +
      + + + +
        +
      • +

        setUseController

        +
        public void setUseController(boolean useController)
        +
        Sets whether playback controls are enabled. If set to false the playback controls are + never visible and are disconnected from the player.
        +
        +
        Parameters:
        +
        useController - Whether playback controls should be enabled.
        +
        +
      • +
      + + + +
        +
      • +

        getControllerShowTimeoutMs

        +
        public int getControllerShowTimeoutMs()
        +
        Returns the playback controls timeout. The playback controls are automatically hidden after + this duration of time has elapsed without user input and with playback or buffering in + progress.
        +
        +
        Returns:
        +
        The timeout in milliseconds. A non-positive value will cause the controller to remain + visible indefinitely.
        +
        +
      • +
      + + + +
        +
      • +

        setControllerShowTimeoutMs

        +
        public void setControllerShowTimeoutMs(int controllerShowTimeoutMs)
        +
        Sets the playback controls timeout. The playback controls are automatically hidden after this + duration of time has elapsed without user input and with playback or buffering in progress.
        +
        +
        Parameters:
        +
        controllerShowTimeoutMs - The timeout in milliseconds. A non-positive value will cause + the controller to remain visible indefinitely.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        setRewindIncrementMs

        +
        public void setRewindIncrementMs(int rewindMs)
        +
        Sets the rewind increment in milliseconds.
        +
        +
        Parameters:
        +
        rewindMs - The rewind increment in milliseconds.
        +
        +
      • +
      + + + +
        +
      • +

        setFastForwardIncrementMs

        +
        public void setFastForwardIncrementMs(int fastForwardMs)
        +
        Sets the fast forward increment in milliseconds.
        +
        +
        Parameters:
        +
        fastForwardMs - The fast forward increment in milliseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getVideoSurfaceView

        +
        public android.view.View getVideoSurfaceView()
        +
        Get the view onto which video is rendered. This is either a SurfaceView (default) + or a TextureView if the use_texture_view view attribute has been set to true.
        +
        +
        Returns:
        +
        either a SurfaceView or a TextureView.
        +
        +
      • +
      + + + +
        +
      • +

        onTouchEvent

        +
        public boolean onTouchEvent(android.view.MotionEvent ev)
        +
        +
        Overrides:
        +
        onTouchEvent in class android.view.View
        +
        +
      • +
      + + + +
        +
      • +

        onTrackballEvent

        +
        public boolean onTrackballEvent(android.view.MotionEvent ev)
        +
        +
        Overrides:
        +
        onTrackballEvent in class android.view.View
        +
        +
      • +
      + + + +
        +
      • +

        dispatchKeyEvent

        +
        public boolean dispatchKeyEvent(android.view.KeyEvent event)
        +
        +
        Overrides:
        +
        dispatchKeyEvent in class android.view.ViewGroup
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/SubtitleView.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/SubtitleView.html new file mode 100644 index 00000000..03cca146 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/SubtitleView.html @@ -0,0 +1,614 @@ + + + + + +SubtitleView (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.ui
+

Class SubtitleView

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • android.view.View
    • +
    • +
        +
      • com.google.android.exoplayer2.ui.SubtitleView
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, TextRenderer.Output
    +
    +
    +
    +
    public final class SubtitleView
    +extends android.view.View
    +implements TextRenderer.Output
    +
    A view for displaying subtitle Cues.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.view.View

        +android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static floatDEFAULT_BOTTOM_PADDING_FRACTION +
      The default bottom padding to apply when Cue.line is Cue.DIMEN_UNSET, as a + fraction of the viewport height.
      +
      static floatDEFAULT_TEXT_SIZE_FRACTION +
      The default fractional text size.
      +
      +
        +
      • + + +

        Fields inherited from class android.view.View

        +ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      SubtitleView(android.content.Context context) 
      SubtitleView(android.content.Context context, + android.util.AttributeSet attrs) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voiddispatchDraw(android.graphics.Canvas canvas) 
      voidonCues(java.util.List<Cue> cues) +
      Called each time there is a change in the Cues.
      +
      voidsetApplyEmbeddedStyles(boolean applyEmbeddedStyles) +
      Sets whether styling embedded within the cues should be applied.
      +
      voidsetBottomPaddingFraction(float bottomPaddingFraction) +
      Sets the bottom padding fraction to apply when Cue.line is Cue.DIMEN_UNSET, + as a fraction of the view's remaining height after its top and bottom padding have been + subtracted.
      +
      voidsetCues(java.util.List<Cue> cues) +
      Sets the cues to be displayed by the view.
      +
      voidsetFixedTextSize(int unit, + float size) +
      Set the text size to a given unit and value.
      +
      voidsetFractionalTextSize(float fractionOfHeight) +
      Sets the text size to be a fraction of the view's remaining height after its top and bottom + padding have been subtracted.
      +
      voidsetFractionalTextSize(float fractionOfHeight, + boolean ignorePadding) +
      Sets the text size to be a fraction of the height of this view.
      +
      voidsetStyle(CaptionStyleCompat style) +
      Sets the caption style.
      +
      voidsetUserDefaultStyle() +
      Sets the caption style to be equivalent to the one returned by + CaptioningManager.getUserStyle(), or to a default style on API level 19 and earlier.
      +
      voidsetUserDefaultTextSize() +
      Sets the text size to one derived from CaptioningManager.getFontScale(), or to a + default size on API level 19 and earlier.
      +
      +
        +
      • + + +

        Methods inherited from class android.view.View

        +addChildrenForAccessibility, addFocusables, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, drawableHotspotChanged, drawableStateChanged, findFocus, findViewById, findViewsWithText, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityClassName, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverlay, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasTransientState, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, jumpDrawablesToCurrentState, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onAttachedToWindow, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateDrawableState, onCreateInputConnection, onDetachedFromWindow, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, onMeasure, onOverScrolled, onPopulateAccessibilityEvent, onProvideStructure, onProvideVirtualStructure, onResolvePointerIcon, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundGravity, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SubtitleView

        +
        public SubtitleView(android.content.Context context)
        +
      • +
      + + + +
        +
      • +

        SubtitleView

        +
        public SubtitleView(android.content.Context context,
        +                    android.util.AttributeSet attrs)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        setCues

        +
        public void setCues(java.util.List<Cue> cues)
        +
        Sets the cues to be displayed by the view.
        +
        +
        Parameters:
        +
        cues - The cues to display.
        +
        +
      • +
      + + + +
        +
      • +

        setFixedTextSize

        +
        public void setFixedTextSize(int unit,
        +                             float size)
        +
        Set the text size to a given unit and value. +

        + See TypedValue for the possible dimension units.

        +
        +
        Parameters:
        +
        unit - The desired dimension unit.
        +
        size - The desired size in the given units.
        +
        +
      • +
      + + + +
        +
      • +

        setUserDefaultTextSize

        +
        public void setUserDefaultTextSize()
        +
        Sets the text size to one derived from CaptioningManager.getFontScale(), or to a + default size on API level 19 and earlier.
        +
      • +
      + + + +
        +
      • +

        setFractionalTextSize

        +
        public void setFractionalTextSize(float fractionOfHeight)
        +
        Sets the text size to be a fraction of the view's remaining height after its top and bottom + padding have been subtracted. +

        + Equivalent to #setFractionalTextSize(fractionOfHeight, false).

        +
        +
        Parameters:
        +
        fractionOfHeight - A fraction between 0 and 1.
        +
        +
      • +
      + + + +
        +
      • +

        setFractionalTextSize

        +
        public void setFractionalTextSize(float fractionOfHeight,
        +                                  boolean ignorePadding)
        +
        Sets the text size to be a fraction of the height of this view.
        +
        +
        Parameters:
        +
        fractionOfHeight - A fraction between 0 and 1.
        +
        ignorePadding - Set to true if fractionOfHeight should be interpreted as a + fraction of this view's height ignoring any top and bottom padding. Set to false if + fractionOfHeight should be interpreted as a fraction of this view's remaining + height after the top and bottom padding has been subtracted.
        +
        +
      • +
      + + + +
        +
      • +

        setApplyEmbeddedStyles

        +
        public void setApplyEmbeddedStyles(boolean applyEmbeddedStyles)
        +
        Sets whether styling embedded within the cues should be applied. Enabled by default.
        +
        +
        Parameters:
        +
        applyEmbeddedStyles - Whether styling embedded within the cues should be applied.
        +
        +
      • +
      + + + +
        +
      • +

        setUserDefaultStyle

        +
        public void setUserDefaultStyle()
        +
        Sets the caption style to be equivalent to the one returned by + CaptioningManager.getUserStyle(), or to a default style on API level 19 and earlier.
        +
      • +
      + + + +
        +
      • +

        setStyle

        +
        public void setStyle(CaptionStyleCompat style)
        +
        Sets the caption style.
        +
        +
        Parameters:
        +
        style - A style for the view.
        +
        +
      • +
      + + + +
        +
      • +

        setBottomPaddingFraction

        +
        public void setBottomPaddingFraction(float bottomPaddingFraction)
        +
        Sets the bottom padding fraction to apply when Cue.line is Cue.DIMEN_UNSET, + as a fraction of the view's remaining height after its top and bottom padding have been + subtracted. +

        + Note that this padding is applied in addition to any standard view padding.

        +
        +
        Parameters:
        +
        bottomPaddingFraction - The bottom padding fraction.
        +
        +
      • +
      + + + +
        +
      • +

        dispatchDraw

        +
        public void dispatchDraw(android.graphics.Canvas canvas)
        +
        +
        Overrides:
        +
        dispatchDraw in class android.view.View
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/package-frame.html new file mode 100644 index 00000000..cf1e18b0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/package-frame.html @@ -0,0 +1,28 @@ + + + + + +com.google.android.exoplayer2.ui (library API) + + + + + +

com.google.android.exoplayer2.ui

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/package-summary.html new file mode 100644 index 00000000..e47e739b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/package-summary.html @@ -0,0 +1,184 @@ + + + + + +com.google.android.exoplayer2.ui (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.ui

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/package-tree.html new file mode 100644 index 00000000..393f60e3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/ui/package-tree.html @@ -0,0 +1,155 @@ + + + + + +com.google.android.exoplayer2.ui Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.ui

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.android.exoplayer2.ui.DebugTextViewHelper (implements com.google.android.exoplayer2.ExoPlayer.EventListener, java.lang.Runnable)
    • +
    • android.view.View (implements android.view.accessibility.AccessibilityEventSource, android.graphics.drawable.Drawable.Callback, android.view.KeyEvent.Callback) + +
    • +
    +
  • +
+

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Allocation.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Allocation.html new file mode 100644 index 00000000..e7b3900c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Allocation.html @@ -0,0 +1,329 @@ + + + + + +Allocation (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class Allocation

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.Allocation
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      byte[]data +
      The array containing the allocated space.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Allocation(byte[] data, + int offset) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      inttranslateOffset(int offset) +
      Translates a zero-based offset into the allocation to the corresponding data offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        data

        +
        public final byte[] data
        +
        The array containing the allocated space. The allocated space might not be at the start of the + array, and so translateOffset(int) method must be used when indexing into it.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Allocation

        +
        public Allocation(byte[] data,
        +                  int offset)
        +
        +
        Parameters:
        +
        data - The array containing the allocated space.
        +
        offset - The offset of the allocated space within the array.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        translateOffset

        +
        public int translateOffset(int offset)
        +
        Translates a zero-based offset into the allocation to the corresponding data offset.
        +
        +
        Parameters:
        +
        offset - The zero-based offset to translate.
        +
        Returns:
        +
        The corresponding offset in data.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Allocator.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Allocator.html new file mode 100644 index 00000000..a3154d16 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Allocator.html @@ -0,0 +1,324 @@ + + + + + +Allocator (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface Allocator

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    DefaultAllocator
    +
    +
    +
    +
    public interface Allocator
    +
    A source of allocations.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        release

        +
        void release(Allocation allocation)
        +
        Releases an Allocation back to the allocator.
        +
        +
        Parameters:
        +
        allocation - The Allocation being released.
        +
        +
      • +
      + + + +
        +
      • +

        release

        +
        void release(Allocation[] allocations)
        +
        Releases an array of Allocations back to the allocator.
        +
        +
        Parameters:
        +
        allocations - The array of Allocations being released.
        +
        +
      • +
      + + + +
        +
      • +

        trim

        +
        void trim()
        +
        Hints to the allocator that it should make a best effort to release any excess + Allocations.
        +
      • +
      + + + +
        +
      • +

        getTotalBytesAllocated

        +
        int getTotalBytesAllocated()
        +
        Returns the total number of bytes currently allocated.
        +
      • +
      + + + +
        +
      • +

        getIndividualAllocationLength

        +
        int getIndividualAllocationLength()
        +
        Returns the length of each individual Allocation.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/AssetDataSource.AssetDataSourceException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/AssetDataSource.AssetDataSourceException.html new file mode 100644 index 00000000..a3dc80a1 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/AssetDataSource.AssetDataSourceException.html @@ -0,0 +1,270 @@ + + + + + +AssetDataSource.AssetDataSourceException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class AssetDataSource.AssetDataSourceException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.upstream.AssetDataSource.AssetDataSourceException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    AssetDataSource
    +
    +
    +
    +
    public static final class AssetDataSource.AssetDataSourceException
    +extends java.io.IOException
    +
    Thrown when an IOException is encountered reading a local asset.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AssetDataSourceException(java.io.IOException cause) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AssetDataSourceException

        +
        public AssetDataSourceException(java.io.IOException cause)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/AssetDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/AssetDataSource.html new file mode 100644 index 00000000..b1c486d0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/AssetDataSource.html @@ -0,0 +1,443 @@ + + + + + +AssetDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class AssetDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.AssetDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class AssetDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    A DataSource for reading from a local asset.
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int readLength) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AssetDataSource

        +
        public AssetDataSource(android.content.Context context)
        +
        +
        Parameters:
        +
        context - A context.
        +
        +
      • +
      + + + +
        +
      • +

        AssetDataSource

        +
        public AssetDataSource(android.content.Context context,
        +                       TransferListener<? super AssetDataSource> listener)
        +
        +
        Parameters:
        +
        context - A context.
        +
        listener - An optional listener.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int readLength)
        +         throws AssetDataSource.AssetDataSourceException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        AssetDataSource.AssetDataSourceException
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/BandwidthMeter.EventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/BandwidthMeter.EventListener.html new file mode 100644 index 00000000..2970e9c4 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/BandwidthMeter.EventListener.html @@ -0,0 +1,241 @@ + + + + + +BandwidthMeter.EventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface BandwidthMeter.EventListener

+
+
+
+
    +
  • +
    +
    Enclosing interface:
    +
    BandwidthMeter
    +
    +
    +
    +
    public static interface BandwidthMeter.EventListener
    +
    A listener of BandwidthMeter events.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidonBandwidthSample(int elapsedMs, + long bytes, + long bitrate) +
      Called periodically to indicate that bytes have been transferred.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onBandwidthSample

        +
        void onBandwidthSample(int elapsedMs,
        +                       long bytes,
        +                       long bitrate)
        +
        Called periodically to indicate that bytes have been transferred. +

        + Note: The estimated bitrate is typically derived from more information than just + bytes and elapsedMs.

        +
        +
        Parameters:
        +
        elapsedMs - The time taken to transfer the bytes, in milliseconds.
        +
        bytes - The number of bytes transferred.
        +
        bitrate - The estimated bitrate in bits/sec, or BandwidthMeter.NO_ESTIMATE if an estimate is + not available.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/BandwidthMeter.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/BandwidthMeter.html new file mode 100644 index 00000000..5028d9eb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/BandwidthMeter.html @@ -0,0 +1,293 @@ + + + + + +BandwidthMeter (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface BandwidthMeter

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    DefaultBandwidthMeter
    +
    +
    +
    +
    public interface BandwidthMeter
    +
    Provides estimates of the currently available bandwidth.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static longNO_ESTIMATE +
      Indicates no bandwidth estimate is available.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NO_ESTIMATE

        +
        static final long NO_ESTIMATE
        +
        Indicates no bandwidth estimate is available.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getBitrateEstimate

        +
        long getBitrateEstimate()
        +
        Returns the estimated bandwidth in bits/sec, or NO_ESTIMATE if an estimate is not + available.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ByteArrayDataSink.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ByteArrayDataSink.html new file mode 100644 index 00000000..151a96f9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ByteArrayDataSink.html @@ -0,0 +1,377 @@ + + + + + +ByteArrayDataSink (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class ByteArrayDataSink

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.ByteArrayDataSink
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSink
    +
    +
    +
    +
    public final class ByteArrayDataSink
    +extends java.lang.Object
    +implements DataSink
    +
    A DataSink for writing to a byte array.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ByteArrayDataSink() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the sink.
      +
      byte[]getData() +
      Returns the data written to the sink since the last call to open(DataSpec), or null if + open(DataSpec) has never been called.
      +
      voidopen(DataSpec dataSpec) +
      Opens the sink to consume the specified data.
      +
      voidwrite(byte[] buffer, + int offset, + int length) +
      Consumes the provided data.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ByteArrayDataSink

        +
        public ByteArrayDataSink()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        open

        +
        public void open(DataSpec dataSpec)
        +          throws java.io.IOException
        +
        Description copied from interface: DataSink
        +
        Opens the sink to consume the specified data.
        +
        +
        Specified by:
        +
        open in interface DataSink
        +
        Parameters:
        +
        dataSpec - Defines the data to be consumed.
        +
        Throws:
        +
        java.io.IOException - If an error occurs opening the sink.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +           throws java.io.IOException
        +
        Description copied from interface: DataSink
        +
        Closes the sink.
        +
        +
        Specified by:
        +
        close in interface DataSink
        +
        Throws:
        +
        java.io.IOException - If an error occurs closing the sink.
        +
        +
      • +
      + + + +
        +
      • +

        write

        +
        public void write(byte[] buffer,
        +                  int offset,
        +                  int length)
        +           throws java.io.IOException
        +
        Description copied from interface: DataSink
        +
        Consumes the provided data.
        +
        +
        Specified by:
        +
        write in interface DataSink
        +
        Parameters:
        +
        buffer - The buffer from which data should be consumed.
        +
        offset - The offset of the data to consume in buffer.
        +
        length - The length of the data to consume, in bytes.
        +
        Throws:
        +
        java.io.IOException - If an error occurs writing to the sink.
        +
        +
      • +
      + + + +
        +
      • +

        getData

        +
        public byte[] getData()
        +
        Returns the data written to the sink since the last call to open(DataSpec), or null if + open(DataSpec) has never been called.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ByteArrayDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ByteArrayDataSource.html new file mode 100644 index 00000000..7d649137 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ByteArrayDataSource.html @@ -0,0 +1,412 @@ + + + + + +ByteArrayDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class ByteArrayDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.ByteArrayDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class ByteArrayDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    A DataSource for reading from a byte array.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ByteArrayDataSource(byte[] data) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int readLength) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ByteArrayDataSource

        +
        public ByteArrayDataSource(byte[] data)
        +
        +
        Parameters:
        +
        data - The data to be read.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        open

        +
        public long open(DataSpec dataSpec)
        +          throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Opens the source to read the specified data. +

        + Note: If an IOException is thrown, callers must still call DataSource.close() to ensure + that any partial effects of the invocation are cleaned up.

        +
        +
        Specified by:
        +
        open in interface DataSource
        +
        Parameters:
        +
        dataSpec - Defines the data to be read.
        +
        Returns:
        +
        The number of bytes that can be read from the opened source. For unbounded requests + (i.e. requests where DataSpec.length equals C.LENGTH_UNSET) this value + is the resolved length of the request, or C.LENGTH_UNSET if the length is still + unresolved. For all other requests, the value returned will be equal to the request's + DataSpec.length.
        +
        Throws:
        +
        java.io.IOException - If an error occurs opening the source. DataSourceException can be + thrown or used as a cause of the thrown exception to specify the reason of the error.
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int readLength)
        +         throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the source.
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +           throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Closes the source. +

        + Note: This method must be called even if the corresponding call to DataSource.open(DataSpec) + threw an IOException. See DataSource.open(DataSpec) for more details.

        +
        +
        Specified by:
        +
        close in interface DataSource
        +
        Throws:
        +
        java.io.IOException - If an error occurs closing the source.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ContentDataSource.ContentDataSourceException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ContentDataSource.ContentDataSourceException.html new file mode 100644 index 00000000..f968f608 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ContentDataSource.ContentDataSourceException.html @@ -0,0 +1,270 @@ + + + + + +ContentDataSource.ContentDataSourceException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class ContentDataSource.ContentDataSourceException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.upstream.ContentDataSource.ContentDataSourceException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    ContentDataSource
    +
    +
    +
    +
    public static class ContentDataSource.ContentDataSourceException
    +extends java.io.IOException
    +
    Thrown when an IOException is encountered reading from a content URI.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ContentDataSourceException

        +
        public ContentDataSourceException(java.io.IOException cause)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ContentDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ContentDataSource.html new file mode 100644 index 00000000..0e85f6a3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ContentDataSource.html @@ -0,0 +1,443 @@ + + + + + +ContentDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class ContentDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.ContentDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class ContentDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    A DataSource for reading from a content URI.
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int readLength) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ContentDataSource

        +
        public ContentDataSource(android.content.Context context)
        +
        +
        Parameters:
        +
        context - A context.
        +
        +
      • +
      + + + +
        +
      • +

        ContentDataSource

        +
        public ContentDataSource(android.content.Context context,
        +                         TransferListener<? super ContentDataSource> listener)
        +
        +
        Parameters:
        +
        context - A context.
        +
        listener - An optional listener.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSink.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSink.Factory.html new file mode 100644 index 00000000..0dee4f91 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSink.Factory.html @@ -0,0 +1,231 @@ + + + + + +DataSink.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface DataSink.Factory

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    CacheDataSinkFactory
    +
    +
    +
    Enclosing interface:
    +
    DataSink
    +
    +
    +
    +
    public static interface DataSink.Factory
    +
    A factory for DataSink instances.
    +
  • +
+
+
+ +
+
+
    +
  • + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSink.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSink.html new file mode 100644 index 00000000..8a9f8401 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSink.html @@ -0,0 +1,305 @@ + + + + + +DataSink (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface DataSink

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    ByteArrayDataSink, CacheDataSink
    +
    +
    +
    +
    public interface DataSink
    +
    A component to which streams of data can be written.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeInterface and Description
      static interface DataSink.Factory +
      A factory for DataSink instances.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the sink.
      +
      voidopen(DataSpec dataSpec) +
      Opens the sink to consume the specified data.
      +
      voidwrite(byte[] buffer, + int offset, + int length) +
      Consumes the provided data.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        open

        +
        void open(DataSpec dataSpec)
        +   throws java.io.IOException
        +
        Opens the sink to consume the specified data.
        +
        +
        Parameters:
        +
        dataSpec - Defines the data to be consumed.
        +
        Throws:
        +
        java.io.IOException - If an error occurs opening the sink.
        +
        +
      • +
      + + + +
        +
      • +

        write

        +
        void write(byte[] buffer,
        +           int offset,
        +           int length)
        +    throws java.io.IOException
        +
        Consumes the provided data.
        +
        +
        Parameters:
        +
        buffer - The buffer from which data should be consumed.
        +
        offset - The offset of the data to consume in buffer.
        +
        length - The length of the data to consume, in bytes.
        +
        Throws:
        +
        java.io.IOException - If an error occurs writing to the sink.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        void close()
        +    throws java.io.IOException
        +
        Closes the sink.
        +
        +
        Throws:
        +
        java.io.IOException - If an error occurs closing the sink.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSource.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSource.Factory.html new file mode 100644 index 00000000..30fcb1c0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSource.Factory.html @@ -0,0 +1,235 @@ + + + + + +DataSource.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface DataSource.Factory

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSource.html new file mode 100644 index 00000000..8d6bec6e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSource.html @@ -0,0 +1,355 @@ + + + + + +DataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface DataSource

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeInterface and Description
      static interface DataSource.Factory +
      A factory for DataSource instances.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int readLength) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        open

        +
        long open(DataSpec dataSpec)
        +   throws java.io.IOException
        +
        Opens the source to read the specified data. +

        + Note: If an IOException is thrown, callers must still call close() to ensure + that any partial effects of the invocation are cleaned up.

        +
        +
        Parameters:
        +
        dataSpec - Defines the data to be read.
        +
        Returns:
        +
        The number of bytes that can be read from the opened source. For unbounded requests + (i.e. requests where DataSpec.length equals C.LENGTH_UNSET) this value + is the resolved length of the request, or C.LENGTH_UNSET if the length is still + unresolved. For all other requests, the value returned will be equal to the request's + DataSpec.length.
        +
        Throws:
        +
        java.io.IOException - If an error occurs opening the source. DataSourceException can be + thrown or used as a cause of the thrown exception to specify the reason of the error.
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        int read(byte[] buffer,
        +         int offset,
        +         int readLength)
        +  throws java.io.IOException
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the source.
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        android.net.Uri getUri()
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        void close()
        +    throws java.io.IOException
        +
        Closes the source. +

        + Note: This method must be called even if the corresponding call to open(DataSpec) + threw an IOException. See open(DataSpec) for more details.

        +
        +
        Throws:
        +
        java.io.IOException - If an error occurs closing the source.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSourceException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSourceException.html new file mode 100644 index 00000000..76a3d526 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSourceException.html @@ -0,0 +1,329 @@ + + + + + +DataSourceException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class DataSourceException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.upstream.DataSourceException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public final class DataSourceException
    +extends java.io.IOException
    +
    Used to specify reason of a DataSource error.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DataSourceException(int reason) +
      Constructs a DataSourceException.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DataSourceException

        +
        public DataSourceException(int reason)
        +
        Constructs a DataSourceException.
        +
        +
        Parameters:
        +
        reason - Reason of the error. It can only be POSITION_OUT_OF_RANGE.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSourceInputStream.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSourceInputStream.html new file mode 100644 index 00000000..16e55872 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSourceInputStream.html @@ -0,0 +1,430 @@ + + + + + +DataSourceInputStream (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class DataSourceInputStream

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.io.InputStream
    • +
    • +
        +
      • com.google.android.exoplayer2.upstream.DataSourceInputStream
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Closeable, java.lang.AutoCloseable
    +
    +
    +
    +
    public final class DataSourceInputStream
    +extends java.io.InputStream
    +
    Allows data corresponding to a given DataSpec to be read from a DataSource and + consumed through an InputStream.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longbytesRead() +
      Returns the total number of bytes that have been read or skipped.
      +
      voidclose() 
      voidopen() +
      Optional call to open the underlying DataSource.
      +
      intread() 
      intread(byte[] buffer) 
      intread(byte[] buffer, + int offset, + int length) 
      longskip(long byteCount) 
      +
        +
      • + + +

        Methods inherited from class java.io.InputStream

        +available, mark, markSupported, reset
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DataSourceInputStream

        +
        public DataSourceInputStream(DataSource dataSource,
        +                             DataSpec dataSpec)
        +
        +
        Parameters:
        +
        dataSource - The DataSource from which the data should be read.
        +
        dataSpec - The DataSpec defining the data to be read from dataSource.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        bytesRead

        +
        public long bytesRead()
        +
        Returns the total number of bytes that have been read or skipped.
        +
      • +
      + + + +
        +
      • +

        open

        +
        public void open()
        +          throws java.io.IOException
        +
        Optional call to open the underlying DataSource. +

        + Calling this method does nothing if the DataSource is already open. Calling this + method is optional, since the read and skip methods will automatically open the underlying + DataSource if it's not open already.

        +
        +
        Throws:
        +
        java.io.IOException - If an error occurs opening the DataSource.
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read()
        +         throws java.io.IOException
        +
        +
        Specified by:
        +
        read in class java.io.InputStream
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer)
        +         throws java.io.IOException
        +
        +
        Overrides:
        +
        read in class java.io.InputStream
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int length)
        +         throws java.io.IOException
        +
        +
        Overrides:
        +
        read in class java.io.InputStream
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        skip

        +
        public long skip(long byteCount)
        +          throws java.io.IOException
        +
        +
        Overrides:
        +
        skip in class java.io.InputStream
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +           throws java.io.IOException
        +
        +
        Specified by:
        +
        close in interface java.io.Closeable
        +
        Specified by:
        +
        close in interface java.lang.AutoCloseable
        +
        Overrides:
        +
        close in class java.io.InputStream
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSpec.Flags.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSpec.Flags.html new file mode 100644 index 00000000..c87c78fd --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSpec.Flags.html @@ -0,0 +1,163 @@ + + + + + +DataSpec.Flags (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Annotation Type DataSpec.Flags

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface DataSpec.Flags
    +
    The flags that apply to any request for data.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSpec.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSpec.html new file mode 100644 index 00000000..62e68721 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DataSpec.html @@ -0,0 +1,625 @@ + + + + + +DataSpec (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class DataSpec

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.DataSpec
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class DataSpec
    +extends java.lang.Object
    +
    Defines a region of data.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface DataSpec.Flags +
      The flags that apply to any request for data.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      longabsoluteStreamPosition +
      The absolute position of the data in the full stream.
      +
      static intFLAG_ALLOW_GZIP +
      Permits an underlying network stack to request that the server use gzip compression.
      +
      intflags +
      Request flags.
      +
      java.lang.Stringkey +
      A key that uniquely identifies the original stream.
      +
      longlength +
      The length of the data, or C.LENGTH_UNSET.
      +
      longposition +
      The position of the data when read from uri.
      +
      byte[]postBody +
      Body for a POST request, null otherwise.
      +
      android.net.Uriuri +
      The source from which data should be read.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      DataSpec(android.net.Uri uri) +
      Construct a DataSpec for the given uri and with key set to null.
      +
      DataSpec(android.net.Uri uri, + byte[] postBody, + long absoluteStreamPosition, + long position, + long length, + java.lang.String key, + int flags) +
      Construct a DataSpec where position may differ from + absoluteStreamPosition.
      +
      DataSpec(android.net.Uri uri, + int flags) +
      Construct a DataSpec for the given uri and with key set to null.
      +
      DataSpec(android.net.Uri uri, + long absoluteStreamPosition, + long position, + long length, + java.lang.String key, + int flags) +
      Construct a DataSpec where position may differ from + absoluteStreamPosition.
      +
      DataSpec(android.net.Uri uri, + long absoluteStreamPosition, + long length, + java.lang.String key) +
      Construct a DataSpec where position equals absoluteStreamPosition.
      +
      DataSpec(android.net.Uri uri, + long absoluteStreamPosition, + long length, + java.lang.String key, + int flags) +
      Construct a DataSpec where position equals absoluteStreamPosition.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        FLAG_ALLOW_GZIP

        +
        public static final int FLAG_ALLOW_GZIP
        +
        Permits an underlying network stack to request that the server use gzip compression. +

        + Should not typically be set if the data being requested is already compressed (e.g. most audio + and video requests). May be set when requesting other data. +

        + When a DataSource is used to request data with this flag set, and if the + DataSource does make a network request, then the value returned from + DataSource.open(DataSpec) will typically be C.LENGTH_UNSET. The data read from + DataSource.read(byte[], int, int) will be the decompressed data.

        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        uri

        +
        public final android.net.Uri uri
        +
        The source from which data should be read.
        +
      • +
      + + + +
        +
      • +

        postBody

        +
        public final byte[] postBody
        +
        Body for a POST request, null otherwise.
        +
      • +
      + + + +
        +
      • +

        absoluteStreamPosition

        +
        public final long absoluteStreamPosition
        +
        The absolute position of the data in the full stream.
        +
      • +
      + + + +
        +
      • +

        position

        +
        public final long position
        +
        The position of the data when read from uri. +

        + Always equal to absoluteStreamPosition unless the uri defines the location + of a subset of the underyling data.

        +
      • +
      + + + +
        +
      • +

        length

        +
        public final long length
        +
        The length of the data, or C.LENGTH_UNSET.
        +
      • +
      + + + +
        +
      • +

        key

        +
        public final java.lang.String key
        +
        A key that uniquely identifies the original stream. Used for cache indexing. May be null if the + DataSpec is not intended to be used in conjunction with a cache.
        +
      • +
      + + + +
        +
      • +

        flags

        +
        public final int flags
        +
        Request flags. Currently FLAG_ALLOW_GZIP is the only supported flag.
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultAllocator.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultAllocator.html new file mode 100644 index 00000000..678e5550 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultAllocator.html @@ -0,0 +1,464 @@ + + + + + +DefaultAllocator (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class DefaultAllocator

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.DefaultAllocator
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Allocator
    +
    +
    +
    +
    public final class DefaultAllocator
    +extends java.lang.Object
    +implements Allocator
    +
    Default implementation of Allocator.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultAllocator

        +
        public DefaultAllocator(boolean trimOnReset,
        +                        int individualAllocationSize)
        +
        Constructs an instance without creating any Allocations up front.
        +
        +
        Parameters:
        +
        trimOnReset - Whether memory is freed when the allocator is reset. Should be true unless + the allocator will be re-used by multiple player instances.
        +
        individualAllocationSize - The length of each individual Allocation.
        +
        +
      • +
      + + + +
        +
      • +

        DefaultAllocator

        +
        public DefaultAllocator(boolean trimOnReset,
        +                        int individualAllocationSize,
        +                        int initialAllocationCount)
        +
        Constructs an instance with some Allocations created up front. +

        + Note: Allocations created up front will never be discarded by trim().

        +
        +
        Parameters:
        +
        trimOnReset - Whether memory is freed when the allocator is reset. Should be true unless + the allocator will be re-used by multiple player instances.
        +
        individualAllocationSize - The length of each individual Allocation.
        +
        initialAllocationCount - The number of allocations to create up front.
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultBandwidthMeter.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultBandwidthMeter.html new file mode 100644 index 00000000..23b53af1 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultBandwidthMeter.html @@ -0,0 +1,457 @@ + + + + + +DefaultBandwidthMeter (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class DefaultBandwidthMeter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    BandwidthMeter, TransferListener<java.lang.Object>
    +
    +
    +
    +
    public final class DefaultBandwidthMeter
    +extends java.lang.Object
    +implements BandwidthMeter, TransferListener<java.lang.Object>
    +
    Estimates bandwidth by listening to data transfers. The bandwidth estimate is calculated using + a SlidingPercentile and is updated each time a transfer ends.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MAX_WEIGHT

        +
        public static final int DEFAULT_MAX_WEIGHT
        +
        The default maximum weight for the sliding window.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultBandwidthMeter

        +
        public DefaultBandwidthMeter()
        +
      • +
      + + + +
        +
      • +

        DefaultBandwidthMeter

        +
        public DefaultBandwidthMeter(android.os.Handler eventHandler,
        +                             BandwidthMeter.EventListener eventListener)
        +
      • +
      + + + +
        +
      • +

        DefaultBandwidthMeter

        +
        public DefaultBandwidthMeter(android.os.Handler eventHandler,
        +                             BandwidthMeter.EventListener eventListener,
        +                             int maxWeight)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        onTransferStart

        +
        public void onTransferStart(java.lang.Object source,
        +                            DataSpec dataSpec)
        +
        Description copied from interface: TransferListener
        +
        Called when a transfer starts.
        +
        +
        Specified by:
        +
        onTransferStart in interface TransferListener<java.lang.Object>
        +
        Parameters:
        +
        source - The source performing the transfer.
        +
        dataSpec - Describes the data being transferred.
        +
        +
      • +
      + + + +
        +
      • +

        onBytesTransferred

        +
        public void onBytesTransferred(java.lang.Object source,
        +                               int bytes)
        +
        Description copied from interface: TransferListener
        +
        Called incrementally during a transfer.
        +
        +
        Specified by:
        +
        onBytesTransferred in interface TransferListener<java.lang.Object>
        +
        Parameters:
        +
        source - The source performing the transfer.
        +
        bytes - The number of bytes transferred since the previous call to this + method (or if the first call, since the transfer was started).
        +
        +
      • +
      + + + +
        +
      • +

        onTransferEnd

        +
        public void onTransferEnd(java.lang.Object source)
        +
        Description copied from interface: TransferListener
        +
        Called when a transfer ends.
        +
        +
        Specified by:
        +
        onTransferEnd in interface TransferListener<java.lang.Object>
        +
        Parameters:
        +
        source - The source performing the transfer.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultDataSource.html new file mode 100644 index 00000000..0abfbdaf --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultDataSource.html @@ -0,0 +1,502 @@ + + + + + +DefaultDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class DefaultDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.DefaultDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class DefaultDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    A DataSource that supports multiple URI schemes. The supported schemes are: + +
      +
    • file: For fetching data from a local file (e.g. file:///path/to/media/media.mp4, or just + /path/to/media/media.mp4 because the implementation assumes that a URI without a scheme is a + local file URI). +
    • asset: For fetching data from an asset in the application's apk (e.g. asset:///media.mp4). +
    • content: For fetching data from a content URI (e.g. content://authority/path/123). +
    • http(s): For fetching data over HTTP and HTTPS (e.g. https://www.something.com/media.mp4), if + constructed using DefaultDataSource(Context, TransferListener, String, boolean), or + any other schemes supported by a base data source if constructed using + DefaultDataSource(Context, TransferListener, DataSource). +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      DefaultDataSource(android.content.Context context, + TransferListener<? super DataSource> listener, + DataSource baseDataSource) +
      Constructs a new instance that delegates to a provided DataSource for URI schemes other + than file, asset and content.
      +
      DefaultDataSource(android.content.Context context, + TransferListener<? super DataSource> listener, + java.lang.String userAgent, + boolean allowCrossProtocolRedirects) +
      Constructs a new instance, optionally configured to follow cross-protocol redirects.
      +
      DefaultDataSource(android.content.Context context, + TransferListener<? super DataSource> listener, + java.lang.String userAgent, + int connectTimeoutMillis, + int readTimeoutMillis, + boolean allowCrossProtocolRedirects) +
      Constructs a new instance, optionally configured to follow cross-protocol redirects.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int readLength) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultDataSource

        +
        public DefaultDataSource(android.content.Context context,
        +                         TransferListener<? super DataSource> listener,
        +                         java.lang.String userAgent,
        +                         boolean allowCrossProtocolRedirects)
        +
        Constructs a new instance, optionally configured to follow cross-protocol redirects.
        +
        +
        Parameters:
        +
        context - A context.
        +
        listener - An optional listener.
        +
        userAgent - The User-Agent string that should be used when requesting remote data.
        +
        allowCrossProtocolRedirects - Whether cross-protocol redirects (i.e. redirects from HTTP + to HTTPS and vice versa) are enabled when fetching remote data.
        +
        +
      • +
      + + + +
        +
      • +

        DefaultDataSource

        +
        public DefaultDataSource(android.content.Context context,
        +                         TransferListener<? super DataSource> listener,
        +                         java.lang.String userAgent,
        +                         int connectTimeoutMillis,
        +                         int readTimeoutMillis,
        +                         boolean allowCrossProtocolRedirects)
        +
        Constructs a new instance, optionally configured to follow cross-protocol redirects.
        +
        +
        Parameters:
        +
        context - A context.
        +
        listener - An optional listener.
        +
        userAgent - The User-Agent string that should be used when requesting remote data.
        +
        connectTimeoutMillis - The connection timeout that should be used when requesting remote + data, in milliseconds. A timeout of zero is interpreted as an infinite timeout.
        +
        readTimeoutMillis - The read timeout that should be used when requesting remote data, + in milliseconds. A timeout of zero is interpreted as an infinite timeout.
        +
        allowCrossProtocolRedirects - Whether cross-protocol redirects (i.e. redirects from HTTP + to HTTPS and vice versa) are enabled when fetching remote data.
        +
        +
      • +
      + + + +
        +
      • +

        DefaultDataSource

        +
        public DefaultDataSource(android.content.Context context,
        +                         TransferListener<? super DataSource> listener,
        +                         DataSource baseDataSource)
        +
        Constructs a new instance that delegates to a provided DataSource for URI schemes other + than file, asset and content.
        +
        +
        Parameters:
        +
        context - A context.
        +
        listener - An optional listener.
        +
        baseDataSource - A DataSource to use for URI schemes other than file, asset and + content. This DataSource should normally support at least http(s).
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        open

        +
        public long open(DataSpec dataSpec)
        +          throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Opens the source to read the specified data. +

        + Note: If an IOException is thrown, callers must still call DataSource.close() to ensure + that any partial effects of the invocation are cleaned up.

        +
        +
        Specified by:
        +
        open in interface DataSource
        +
        Parameters:
        +
        dataSpec - Defines the data to be read.
        +
        Returns:
        +
        The number of bytes that can be read from the opened source. For unbounded requests + (i.e. requests where DataSpec.length equals C.LENGTH_UNSET) this value + is the resolved length of the request, or C.LENGTH_UNSET if the length is still + unresolved. For all other requests, the value returned will be equal to the request's + DataSpec.length.
        +
        Throws:
        +
        java.io.IOException - If an error occurs opening the source. DataSourceException can be + thrown or used as a cause of the thrown exception to specify the reason of the error.
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int readLength)
        +         throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the source.
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +           throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Closes the source. +

        + Note: This method must be called even if the corresponding call to DataSource.open(DataSpec) + threw an IOException. See DataSource.open(DataSpec) for more details.

        +
        +
        Specified by:
        +
        close in interface DataSource
        +
        Throws:
        +
        java.io.IOException - If an error occurs closing the source.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultDataSourceFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultDataSourceFactory.html new file mode 100644 index 00000000..539e8888 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultDataSourceFactory.html @@ -0,0 +1,338 @@ + + + + + +DefaultDataSourceFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class DefaultDataSourceFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.DefaultDataSourceFactory
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultHttpDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultHttpDataSource.html new file mode 100644 index 00000000..452282e2 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultHttpDataSource.html @@ -0,0 +1,772 @@ + + + + + +DefaultHttpDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class DefaultHttpDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.DefaultHttpDataSource
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_CONNECT_TIMEOUT_MILLIS

        +
        public static final int DEFAULT_CONNECT_TIMEOUT_MILLIS
        +
        The default connection timeout, in milliseconds.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEFAULT_READ_TIMEOUT_MILLIS

        +
        public static final int DEFAULT_READ_TIMEOUT_MILLIS
        +
        The default read timeout, in milliseconds.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultHttpDataSource

        +
        public DefaultHttpDataSource(java.lang.String userAgent,
        +                             Predicate<java.lang.String> contentTypePredicate)
        +
        +
        Parameters:
        +
        userAgent - The User-Agent string that should be used.
        +
        contentTypePredicate - An optional Predicate. If a content type is rejected by the + predicate then a HttpDataSource.InvalidContentTypeException is thrown from + open(DataSpec).
        +
        +
      • +
      + + + + + + + +
        +
      • +

        DefaultHttpDataSource

        +
        public DefaultHttpDataSource(java.lang.String userAgent,
        +                             Predicate<java.lang.String> contentTypePredicate,
        +                             TransferListener<? super DefaultHttpDataSource> listener,
        +                             int connectTimeoutMillis,
        +                             int readTimeoutMillis)
        +
        +
        Parameters:
        +
        userAgent - The User-Agent string that should be used.
        +
        contentTypePredicate - An optional Predicate. If a content type is rejected by the + predicate then a HttpDataSource.InvalidContentTypeException is thrown from + open(DataSpec).
        +
        listener - An optional listener.
        +
        connectTimeoutMillis - The connection timeout, in milliseconds. A timeout of zero is + interpreted as an infinite timeout.
        +
        readTimeoutMillis - The read timeout, in milliseconds. A timeout of zero is interpreted + as an infinite timeout.
        +
        +
      • +
      + + + +
        +
      • +

        DefaultHttpDataSource

        +
        public DefaultHttpDataSource(java.lang.String userAgent,
        +                             Predicate<java.lang.String> contentTypePredicate,
        +                             TransferListener<? super DefaultHttpDataSource> listener,
        +                             int connectTimeoutMillis,
        +                             int readTimeoutMillis,
        +                             boolean allowCrossProtocolRedirects)
        +
        +
        Parameters:
        +
        userAgent - The User-Agent string that should be used.
        +
        contentTypePredicate - An optional Predicate. If a content type is rejected by the + predicate then a HttpDataSource.InvalidContentTypeException is thrown from + open(DataSpec).
        +
        listener - An optional listener.
        +
        connectTimeoutMillis - The connection timeout, in milliseconds. A timeout of zero is + interpreted as an infinite timeout. Pass DEFAULT_CONNECT_TIMEOUT_MILLIS to use + the default value.
        +
        readTimeoutMillis - The read timeout, in milliseconds. A timeout of zero is interpreted + as an infinite timeout. Pass DEFAULT_READ_TIMEOUT_MILLIS to use the default value.
        +
        allowCrossProtocolRedirects - Whether cross-protocol redirects (i.e. redirects from HTTP + to HTTPS and vice versa) are enabled.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + +
        +
      • +

        getResponseHeaders

        +
        public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getResponseHeaders()
        +
        Description copied from interface: HttpDataSource
        +
        Returns the headers provided in the response, or null if response headers are + unavailable.
        +
        +
        Specified by:
        +
        getResponseHeaders in interface HttpDataSource
        +
        +
      • +
      + + + +
        +
      • +

        setRequestProperty

        +
        public void setRequestProperty(java.lang.String name,
        +                               java.lang.String value)
        +
        Description copied from interface: HttpDataSource
        +
        Sets the value of a request header field. The value will be used for subsequent connections + established by the source.
        +
        +
        Specified by:
        +
        setRequestProperty in interface HttpDataSource
        +
        Parameters:
        +
        name - The name of the header field.
        +
        value - The value of the field.
        +
        +
      • +
      + + + +
        +
      • +

        clearRequestProperty

        +
        public void clearRequestProperty(java.lang.String name)
        +
        Description copied from interface: HttpDataSource
        +
        Clears the value of a request header field. The change will apply to subsequent connections + established by the source.
        +
        +
        Specified by:
        +
        clearRequestProperty in interface HttpDataSource
        +
        Parameters:
        +
        name - The name of the header field.
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int readLength)
        +         throws HttpDataSource.HttpDataSourceException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Specified by:
        +
        read in interface HttpDataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        HttpDataSource.HttpDataSourceException
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getConnection

        +
        protected final java.net.HttpURLConnection getConnection()
        +
        Returns the current connection, or null if the source is not currently opened.
        +
        +
        Returns:
        +
        The current open connection, or null.
        +
        +
      • +
      + + + +
        +
      • +

        bytesSkipped

        +
        protected final long bytesSkipped()
        +
        Returns the number of bytes that have been skipped since the most recent call to + open(DataSpec).
        +
        +
        Returns:
        +
        The number of bytes skipped.
        +
        +
      • +
      + + + +
        +
      • +

        bytesRead

        +
        protected final long bytesRead()
        +
        Returns the number of bytes that have been read since the most recent call to + open(DataSpec).
        +
        +
        Returns:
        +
        The number of bytes read.
        +
        +
      • +
      + + + +
        +
      • +

        bytesRemaining

        +
        protected final long bytesRemaining()
        +
        Returns the number of bytes that are still to be read for the current DataSpec. +

        + If the total length of the data being read is known, then this length minus bytesRead() + is returned. If the total length is unknown, C.LENGTH_UNSET is returned.

        +
        +
        Returns:
        +
        The remaining length, or C.LENGTH_UNSET.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultHttpDataSourceFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultHttpDataSourceFactory.html new file mode 100644 index 00000000..195074b3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/DefaultHttpDataSourceFactory.html @@ -0,0 +1,349 @@ + + + + + +DefaultHttpDataSourceFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class DefaultHttpDataSourceFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/FileDataSource.FileDataSourceException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/FileDataSource.FileDataSourceException.html new file mode 100644 index 00000000..1193922d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/FileDataSource.FileDataSourceException.html @@ -0,0 +1,270 @@ + + + + + +FileDataSource.FileDataSourceException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class FileDataSource.FileDataSourceException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.upstream.FileDataSource.FileDataSourceException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    FileDataSource
    +
    +
    +
    +
    public static class FileDataSource.FileDataSourceException
    +extends java.io.IOException
    +
    Thrown when IOException is encountered during local file read operation.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      FileDataSourceException(java.io.IOException cause) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FileDataSourceException

        +
        public FileDataSourceException(java.io.IOException cause)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/FileDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/FileDataSource.html new file mode 100644 index 00000000..4c7ed01b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/FileDataSource.html @@ -0,0 +1,436 @@ + + + + + +FileDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class FileDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.FileDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class FileDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    A DataSource for reading local files.
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int readLength) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FileDataSource

        +
        public FileDataSource()
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int readLength)
        +         throws FileDataSource.FileDataSourceException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        FileDataSource.FileDataSourceException
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/FileDataSourceFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/FileDataSourceFactory.html new file mode 100644 index 00000000..71bab140 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/FileDataSourceFactory.html @@ -0,0 +1,295 @@ + + + + + +FileDataSourceFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class FileDataSourceFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.FileDataSourceFactory
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.Factory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.Factory.html new file mode 100644 index 00000000..27349cd4 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.Factory.html @@ -0,0 +1,241 @@ + + + + + +HttpDataSource.Factory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface HttpDataSource.Factory

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.HttpDataSourceException.Type.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.HttpDataSourceException.Type.html new file mode 100644 index 00000000..fcaecf0c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.HttpDataSourceException.Type.html @@ -0,0 +1,162 @@ + + + + + +HttpDataSource.HttpDataSourceException.Type (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Annotation Type HttpDataSource.HttpDataSourceException.Type

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface HttpDataSource.HttpDataSourceException.Type
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.HttpDataSourceException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.HttpDataSourceException.html new file mode 100644 index 00000000..81e2ab25 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.HttpDataSourceException.html @@ -0,0 +1,448 @@ + + + + + +HttpDataSource.HttpDataSourceException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class HttpDataSource.HttpDataSourceException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + + + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HttpDataSourceException

        +
        public HttpDataSourceException(DataSpec dataSpec,
        +                               int type)
        +
      • +
      + + + +
        +
      • +

        HttpDataSourceException

        +
        public HttpDataSourceException(java.lang.String message,
        +                               DataSpec dataSpec,
        +                               int type)
        +
      • +
      + + + +
        +
      • +

        HttpDataSourceException

        +
        public HttpDataSourceException(java.io.IOException cause,
        +                               DataSpec dataSpec,
        +                               int type)
        +
      • +
      + + + +
        +
      • +

        HttpDataSourceException

        +
        public HttpDataSourceException(java.lang.String message,
        +                               java.io.IOException cause,
        +                               DataSpec dataSpec,
        +                               int type)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.InvalidContentTypeException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.InvalidContentTypeException.html new file mode 100644 index 00000000..4dde9003 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.InvalidContentTypeException.html @@ -0,0 +1,335 @@ + + + + + +HttpDataSource.InvalidContentTypeException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class HttpDataSource.InvalidContentTypeException

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        contentType

        +
        public final java.lang.String contentType
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InvalidContentTypeException

        +
        public InvalidContentTypeException(java.lang.String contentType,
        +                                   DataSpec dataSpec)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.InvalidResponseCodeException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.InvalidResponseCodeException.html new file mode 100644 index 00000000..4356dd27 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.InvalidResponseCodeException.html @@ -0,0 +1,356 @@ + + + + + +HttpDataSource.InvalidResponseCodeException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class HttpDataSource.InvalidResponseCodeException

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing interface:
    +
    HttpDataSource
    +
    +
    +
    +
    public static final class HttpDataSource.InvalidResponseCodeException
    +extends HttpDataSource.HttpDataSourceException
    +
    Thrown when an attempt to open a connection results in a response code not in the 2xx range.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      InvalidResponseCodeException(int responseCode, + java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields, + DataSpec dataSpec) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        responseCode

        +
        public final int responseCode
        +
        The response code that was outside of the 2xx range.
        +
      • +
      + + + +
        +
      • +

        headerFields

        +
        public final java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields
        +
        An unmodifiable map of the response header fields and values.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InvalidResponseCodeException

        +
        public InvalidResponseCodeException(int responseCode,
        +                                    java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
        +                                    DataSpec dataSpec)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.html new file mode 100644 index 00000000..62abc883 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/HttpDataSource.html @@ -0,0 +1,484 @@ + + + + + +HttpDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface HttpDataSource

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        REJECT_PAYWALL_TYPES

        +
        static final Predicate<java.lang.String> REJECT_PAYWALL_TYPES
        +
        A Predicate that rejects content types often used for pay-walls.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        read

        +
        int read(byte[] buffer,
        +         int offset,
        +         int readLength)
        +  throws HttpDataSource.HttpDataSourceException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        HttpDataSource.HttpDataSourceException
        +
        +
      • +
      + + + +
        +
      • +

        setRequestProperty

        +
        void setRequestProperty(java.lang.String name,
        +                        java.lang.String value)
        +
        Sets the value of a request header field. The value will be used for subsequent connections + established by the source.
        +
        +
        Parameters:
        +
        name - The name of the header field.
        +
        value - The value of the field.
        +
        +
      • +
      + + + +
        +
      • +

        clearRequestProperty

        +
        void clearRequestProperty(java.lang.String name)
        +
        Clears the value of a request header field. The change will apply to subsequent connections + established by the source.
        +
        +
        Parameters:
        +
        name - The name of the header field.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getResponseHeaders

        +
        java.util.Map<java.lang.String,java.util.List<java.lang.String>> getResponseHeaders()
        +
        Returns the headers provided in the response, or null if response headers are + unavailable.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.Callback.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.Callback.html new file mode 100644 index 00000000..ec340407 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.Callback.html @@ -0,0 +1,321 @@ + + + + + +Loader.Callback (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface Loader.Callback<T extends Loader.Loadable>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidonLoadCanceled(T loadable, + long elapsedRealtimeMs, + long loadDurationMs, + boolean released) +
      Called when a load has been canceled.
      +
      voidonLoadCompleted(T loadable, + long elapsedRealtimeMs, + long loadDurationMs) +
      Called when a load has completed.
      +
      intonLoadError(T loadable, + long elapsedRealtimeMs, + long loadDurationMs, + java.io.IOException error) +
      Called when a load encounters an error.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        onLoadCompleted

        +
        void onLoadCompleted(T loadable,
        +                     long elapsedRealtimeMs,
        +                     long loadDurationMs)
        +
        Called when a load has completed. +

        + Note: There is guaranteed to be a memory barrier between Loader.Loadable.load() exiting and + this callback being called.

        +
        +
        Parameters:
        +
        loadable - The loadable whose load has completed.
        +
        elapsedRealtimeMs - SystemClock.elapsedRealtime() when the load ended.
        +
        loadDurationMs - The duration of the load.
        +
        +
      • +
      + + + + + +
        +
      • +

        onLoadCanceled

        +
        void onLoadCanceled(T loadable,
        +                    long elapsedRealtimeMs,
        +                    long loadDurationMs,
        +                    boolean released)
        +
        Called when a load has been canceled. +

        + Note: If the Loader has not been released then there is guaranteed to be a memory + barrier between Loader.Loadable.load() exiting and this callback being called. If the + Loader has been released then this callback may be called before + Loader.Loadable.load() exits.

        +
        +
        Parameters:
        +
        loadable - The loadable whose load has been canceled.
        +
        elapsedRealtimeMs - SystemClock.elapsedRealtime() when the load was canceled.
        +
        loadDurationMs - The duration of the load up to the point at which it was canceled.
        +
        released - True if the load was canceled because the Loader was released. False + otherwise.
        +
        +
      • +
      + + + + + +
        +
      • +

        onLoadError

        +
        int onLoadError(T loadable,
        +                long elapsedRealtimeMs,
        +                long loadDurationMs,
        +                java.io.IOException error)
        +
        Called when a load encounters an error. +

        + Note: There is guaranteed to be a memory barrier between Loader.Loadable.load() exiting and + this callback being called.

        +
        +
        Parameters:
        +
        loadable - The loadable whose load has encountered an error.
        +
        elapsedRealtimeMs - SystemClock.elapsedRealtime() when the error occurred.
        +
        loadDurationMs - The duration of the load up to the point at which the error occurred.
        +
        error - The load error.
        +
        Returns:
        +
        The desired retry action. One of Loader.RETRY, + Loader.RETRY_RESET_ERROR_COUNT, Loader.DONT_RETRY and + Loader.DONT_RETRY_FATAL.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.Loadable.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.Loadable.html new file mode 100644 index 00000000..5f9f3c80 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.Loadable.html @@ -0,0 +1,270 @@ + + + + + +Loader.Loadable (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface Loader.Loadable

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidcancelLoad() +
      Cancels the load.
      +
      booleanisLoadCanceled() +
      Returns whether the load has been canceled.
      +
      voidload() +
      Performs the load, returning on completion or cancellation.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        cancelLoad

        +
        void cancelLoad()
        +
        Cancels the load.
        +
      • +
      + + + +
        +
      • +

        isLoadCanceled

        +
        boolean isLoadCanceled()
        +
        Returns whether the load has been canceled.
        +
      • +
      + + + +
        +
      • +

        load

        +
        void load()
        +   throws java.io.IOException,
        +          java.lang.InterruptedException
        +
        Performs the load, returning on completion or cancellation.
        +
        +
        Throws:
        +
        java.io.IOException
        +
        java.lang.InterruptedException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.UnexpectedLoaderException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.UnexpectedLoaderException.html new file mode 100644 index 00000000..8ddc9831 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.UnexpectedLoaderException.html @@ -0,0 +1,270 @@ + + + + + +Loader.UnexpectedLoaderException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class Loader.UnexpectedLoaderException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.upstream.Loader.UnexpectedLoaderException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    Loader
    +
    +
    +
    +
    public static final class Loader.UnexpectedLoaderException
    +extends java.io.IOException
    +
    Thrown when an unexpected exception is encountered during loading.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      UnexpectedLoaderException(java.lang.Exception cause) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UnexpectedLoaderException

        +
        public UnexpectedLoaderException(java.lang.Exception cause)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.html new file mode 100644 index 00000000..ea2ea14c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/Loader.html @@ -0,0 +1,558 @@ + + + + + +Loader (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class Loader

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.Loader
    • +
    +
  • +
+
+ +
+
+
    +
  • + + + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Loader(java.lang.String threadName) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidcancelLoading() +
      Cancels the current load.
      +
      booleanisLoading() +
      Returns whether the Loader is currently loading a Loader.Loadable.
      +
      voidmaybeThrowError() +
      Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the Loaders default + minimum number of retries.
      +
      voidmaybeThrowError(int minRetryCount) +
      Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the specified minimum number + of retries.
      +
      voidrelease() +
      Releases the Loader.
      +
      voidrelease(java.lang.Runnable postLoadAction) +
      Releases the Loader, running postLoadAction on its thread.
      +
      <T extends Loader.Loadable>
      long
      startLoading(T loadable, + Loader.Callback<T> callback, + int defaultMinRetryCount) +
      Starts loading a Loader.Loadable.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Loader

        +
        public Loader(java.lang.String threadName)
        +
        +
        Parameters:
        +
        threadName - A name for the loader's thread.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        startLoading

        +
        public <T extends Loader.Loadable> long startLoading(T loadable,
        +                                                     Loader.Callback<T> callback,
        +                                                     int defaultMinRetryCount)
        +
        Starts loading a Loader.Loadable. +

        + The calling thread must be a Looper thread, which is the thread on which the + Loader.Callback will be called.

        +
        +
        Type Parameters:
        +
        T - The type of the loadable.
        +
        Parameters:
        +
        loadable - The Loader.Loadable to load.
        +
        callback - A callback to called when the load ends.
        +
        defaultMinRetryCount - The minimum number of times the load must be retried before + maybeThrowError() will propagate an error.
        +
        Returns:
        +
        SystemClock.elapsedRealtime() when the load started.
        +
        Throws:
        +
        java.lang.IllegalStateException - If the calling thread does not have an associated Looper.
        +
        +
      • +
      + + + +
        +
      • +

        isLoading

        +
        public boolean isLoading()
        +
        Returns whether the Loader is currently loading a Loader.Loadable.
        +
      • +
      + + + +
        +
      • +

        cancelLoading

        +
        public void cancelLoading()
        +
        Cancels the current load. This method should only be called when a load is in progress.
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release()
        +
        Releases the Loader. This method should be called when the Loader is no longer + required.
        +
      • +
      + + + +
        +
      • +

        release

        +
        public void release(java.lang.Runnable postLoadAction)
        +
        Releases the Loader, running postLoadAction on its thread. This method should + be called when the Loader is no longer required.
        +
        +
        Parameters:
        +
        postLoadAction - A Runnable to run on the loader's thread when + Loader.Loadable.load() is no longer running.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowError

        +
        public void maybeThrowError()
        +                     throws java.io.IOException
        +
        Description copied from interface: LoaderErrorThrower
        +
        Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the Loaders default + minimum number of retries. Else does nothing.
        +
        +
        Specified by:
        +
        maybeThrowError in interface LoaderErrorThrower
        +
        Throws:
        +
        java.io.IOException - The error.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowError

        +
        public void maybeThrowError(int minRetryCount)
        +                     throws java.io.IOException
        +
        Description copied from interface: LoaderErrorThrower
        +
        Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the specified minimum number + of retries. Else does nothing.
        +
        +
        Specified by:
        +
        maybeThrowError in interface LoaderErrorThrower
        +
        Parameters:
        +
        minRetryCount - A minimum retry count that must be exceeded for a non-fatal error to be + thrown. Should be non-negative.
        +
        Throws:
        +
        java.io.IOException - The error.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/LoaderErrorThrower.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/LoaderErrorThrower.html new file mode 100644 index 00000000..515c0138 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/LoaderErrorThrower.html @@ -0,0 +1,264 @@ + + + + + +LoaderErrorThrower (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface LoaderErrorThrower

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    Loader
    +
    +
    +
    +
    public interface LoaderErrorThrower
    +
    Conditionally throws errors affecting a Loader.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidmaybeThrowError() +
      Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the Loaders default + minimum number of retries.
      +
      voidmaybeThrowError(int minRetryCount) +
      Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the specified minimum number + of retries.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        maybeThrowError

        +
        void maybeThrowError()
        +              throws java.io.IOException
        +
        Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the Loaders default + minimum number of retries. Else does nothing.
        +
        +
        Throws:
        +
        java.io.IOException - The error.
        +
        +
      • +
      + + + +
        +
      • +

        maybeThrowError

        +
        void maybeThrowError(int minRetryCount)
        +              throws java.io.IOException
        +
        Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the specified minimum number + of retries. Else does nothing.
        +
        +
        Parameters:
        +
        minRetryCount - A minimum retry count that must be exceeded for a non-fatal error to be + thrown. Should be non-negative.
        +
        Throws:
        +
        java.io.IOException - The error.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ParsingLoadable.Parser.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ParsingLoadable.Parser.html new file mode 100644 index 00000000..98da6197 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ParsingLoadable.Parser.html @@ -0,0 +1,244 @@ + + + + + +ParsingLoadable.Parser (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface ParsingLoadable.Parser<T>

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      Tparse(android.net.Uri uri, + java.io.InputStream inputStream) +
      Parses an object from a response.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        T parse(android.net.Uri uri,
        +        java.io.InputStream inputStream)
        + throws java.io.IOException
        +
        Parses an object from a response.
        +
        +
        Parameters:
        +
        uri - The source Uri of the response, after any redirection.
        +
        inputStream - An InputStream from which the response data can be read.
        +
        Returns:
        +
        The parsed object.
        +
        Throws:
        +
        ParserException - If an error occurs parsing the data.
        +
        java.io.IOException - If an error occurs reading data from the stream.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ParsingLoadable.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ParsingLoadable.html new file mode 100644 index 00000000..1592f719 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/ParsingLoadable.html @@ -0,0 +1,461 @@ + + + + + +ParsingLoadable (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class ParsingLoadable<T>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.ParsingLoadable<T>
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface ParsingLoadable.Parser<T> +
      Parses an object from loaded data.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      DataSpecdataSpec +
      The DataSpec that defines the data to be loaded.
      +
      inttype +
      The type of the data.
      +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longbytesLoaded() +
      Returns the number of bytes loaded.
      +
      voidcancelLoad() +
      Cancels the load.
      +
      TgetResult() +
      Returns the loaded object, or null if an object has not been loaded.
      +
      booleanisLoadCanceled() +
      Returns whether the load has been canceled.
      +
      voidload() +
      Performs the load, returning on completion or cancellation.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        dataSpec

        +
        public final DataSpec dataSpec
        +
        The DataSpec that defines the data to be loaded.
        +
      • +
      + + + +
        +
      • +

        type

        +
        public final int type
        +
        The type of the data. One of the DATA_TYPE_* constants defined in C. For + reporting only.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ParsingLoadable

        +
        public ParsingLoadable(DataSource dataSource,
        +                       android.net.Uri uri,
        +                       int type,
        +                       ParsingLoadable.Parser<T> parser)
        +
        +
        Parameters:
        +
        dataSource - A DataSource to use when loading the data.
        +
        uri - The Uri from which the object should be loaded.
        +
        type - See type.
        +
        parser - Parses the object from the response.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getResult

        +
        public final T getResult()
        +
        Returns the loaded object, or null if an object has not been loaded.
        +
      • +
      + + + +
        +
      • +

        bytesLoaded

        +
        public long bytesLoaded()
        +
        Returns the number of bytes loaded. In the case that the network response was compressed, the + value returned is the size of the data after decompression.
        +
        +
        Returns:
        +
        The number of bytes loaded.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        isLoadCanceled

        +
        public final boolean isLoadCanceled()
        +
        Description copied from interface: Loader.Loadable
        +
        Returns whether the load has been canceled.
        +
        +
        Specified by:
        +
        isLoadCanceled in interface Loader.Loadable
        +
        +
      • +
      + + + +
        +
      • +

        load

        +
        public final void load()
        +                throws java.io.IOException,
        +                       java.lang.InterruptedException
        +
        Description copied from interface: Loader.Loadable
        +
        Performs the load, returning on completion or cancellation.
        +
        +
        Specified by:
        +
        load in interface Loader.Loadable
        +
        Throws:
        +
        java.io.IOException
        +
        java.lang.InterruptedException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/PriorityDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/PriorityDataSource.html new file mode 100644 index 00000000..67a08af8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/PriorityDataSource.html @@ -0,0 +1,427 @@ + + + + + +PriorityDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class PriorityDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.PriorityDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class PriorityDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    A DataSource that can be used as part of a task registered with a + PriorityTaskManager. +

    + Calls to open(DataSpec) and read(byte[], int, int) are allowed to proceed only + if there are no higher priority tasks registered to the PriorityTaskManager. If there + exists a higher priority task then PriorityTaskManager.PriorityTooLowException is thrown. +

    + Instances of this class are intended to be used as parts of (possibly larger) tasks that are + registered with the PriorityTaskManager, and hence do not register as tasks + themselves.

    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int max) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PriorityDataSource

        +
        public PriorityDataSource(DataSource upstream,
        +                          PriorityTaskManager priorityTaskManager,
        +                          int priority)
        +
        +
        Parameters:
        +
        upstream - The upstream DataSource.
        +
        priorityTaskManager - The priority manager to which the task is registered.
        +
        priority - The priority of the task.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        open

        +
        public long open(DataSpec dataSpec)
        +          throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Opens the source to read the specified data. +

        + Note: If an IOException is thrown, callers must still call DataSource.close() to ensure + that any partial effects of the invocation are cleaned up.

        +
        +
        Specified by:
        +
        open in interface DataSource
        +
        Parameters:
        +
        dataSpec - Defines the data to be read.
        +
        Returns:
        +
        The number of bytes that can be read from the opened source. For unbounded requests + (i.e. requests where DataSpec.length equals C.LENGTH_UNSET) this value + is the resolved length of the request, or C.LENGTH_UNSET if the length is still + unresolved. For all other requests, the value returned will be equal to the request's + DataSpec.length.
        +
        Throws:
        +
        java.io.IOException - If an error occurs opening the source. DataSourceException can be + thrown or used as a cause of the thrown exception to specify the reason of the error.
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int max)
        +         throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        max - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the source.
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +           throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Closes the source. +

        + Note: This method must be called even if the corresponding call to DataSource.open(DataSpec) + threw an IOException. See DataSource.open(DataSpec) for more details.

        +
        +
        Specified by:
        +
        close in interface DataSource
        +
        Throws:
        +
        java.io.IOException - If an error occurs closing the source.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/RawResourceDataSource.RawResourceDataSourceException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/RawResourceDataSource.RawResourceDataSourceException.html new file mode 100644 index 00000000..32f47e78 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/RawResourceDataSource.RawResourceDataSourceException.html @@ -0,0 +1,282 @@ + + + + + +RawResourceDataSource.RawResourceDataSourceException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class RawResourceDataSource.RawResourceDataSourceException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.upstream.RawResourceDataSource.RawResourceDataSourceException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    RawResourceDataSource
    +
    +
    +
    +
    public static class RawResourceDataSource.RawResourceDataSourceException
    +extends java.io.IOException
    +
    Thrown when an IOException is encountered reading from a raw resource.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RawResourceDataSourceException

        +
        public RawResourceDataSourceException(java.lang.String message)
        +
      • +
      + + + +
        +
      • +

        RawResourceDataSourceException

        +
        public RawResourceDataSourceException(java.io.IOException e)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/RawResourceDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/RawResourceDataSource.html new file mode 100644 index 00000000..ea5c9a89 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/RawResourceDataSource.html @@ -0,0 +1,469 @@ + + + + + +RawResourceDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class RawResourceDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.RawResourceDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class RawResourceDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    A DataSource for reading a raw resource inside the APK. +

    + URIs supported by this source are of the form rawresource:///rawResourceId, where + rawResourceId is the integer identifier of a raw resource. buildRawResourceUri(int) can + be used to build Uris in this format.

    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static android.net.UribuildRawResourceUri(int rawResourceId) +
      Builds a Uri for the specified raw resource identifier.
      +
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int readLength) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RawResourceDataSource

        +
        public RawResourceDataSource(android.content.Context context)
        +
        +
        Parameters:
        +
        context - A context.
        +
        +
      • +
      + + + +
        +
      • +

        RawResourceDataSource

        +
        public RawResourceDataSource(android.content.Context context,
        +                             TransferListener<? super RawResourceDataSource> listener)
        +
        +
        Parameters:
        +
        context - A context.
        +
        listener - An optional listener.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        buildRawResourceUri

        +
        public static final android.net.Uri buildRawResourceUri(int rawResourceId)
        +
        Builds a Uri for the specified raw resource identifier.
        +
        +
        Parameters:
        +
        rawResourceId - A raw resource identifier (i.e. a constant defined in R.raw).
        +
        Returns:
        +
        The corresponding Uri.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int readLength)
        +         throws RawResourceDataSource.RawResourceDataSourceException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        RawResourceDataSource.RawResourceDataSourceException
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/TeeDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/TeeDataSource.html new file mode 100644 index 00000000..d627057a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/TeeDataSource.html @@ -0,0 +1,415 @@ + + + + + +TeeDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class TeeDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.TeeDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class TeeDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    Tees data into a DataSink as the data is read.
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int max) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TeeDataSource

        +
        public TeeDataSource(DataSource upstream,
        +                     DataSink dataSink)
        +
        +
        Parameters:
        +
        upstream - The upstream DataSource.
        +
        dataSink - The DataSink into which data is written.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        open

        +
        public long open(DataSpec dataSpec)
        +          throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Opens the source to read the specified data. +

        + Note: If an IOException is thrown, callers must still call DataSource.close() to ensure + that any partial effects of the invocation are cleaned up.

        +
        +
        Specified by:
        +
        open in interface DataSource
        +
        Parameters:
        +
        dataSpec - Defines the data to be read.
        +
        Returns:
        +
        The number of bytes that can be read from the opened source. For unbounded requests + (i.e. requests where DataSpec.length equals C.LENGTH_UNSET) this value + is the resolved length of the request, or C.LENGTH_UNSET if the length is still + unresolved. For all other requests, the value returned will be equal to the request's + DataSpec.length.
        +
        Throws:
        +
        java.io.IOException - If an error occurs opening the source. DataSourceException can be + thrown or used as a cause of the thrown exception to specify the reason of the error.
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int max)
        +         throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        max - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the source.
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +           throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Closes the source. +

        + Note: This method must be called even if the corresponding call to DataSource.open(DataSpec) + threw an IOException. See DataSource.open(DataSpec) for more details.

        +
        +
        Specified by:
        +
        close in interface DataSource
        +
        Throws:
        +
        java.io.IOException - If an error occurs closing the source.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/TransferListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/TransferListener.html new file mode 100644 index 00000000..67193806 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/TransferListener.html @@ -0,0 +1,284 @@ + + + + + +TransferListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Interface TransferListener<S>

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    DefaultBandwidthMeter
    +
    +
    +
    +
    public interface TransferListener<S>
    +
    A listener of data transfer events.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        onTransferStart

        +
        void onTransferStart(S source,
        +                     DataSpec dataSpec)
        +
        Called when a transfer starts.
        +
        +
        Parameters:
        +
        source - The source performing the transfer.
        +
        dataSpec - Describes the data being transferred.
        +
        +
      • +
      + + + + + +
        +
      • +

        onBytesTransferred

        +
        void onBytesTransferred(S source,
        +                        int bytesTransferred)
        +
        Called incrementally during a transfer.
        +
        +
        Parameters:
        +
        source - The source performing the transfer.
        +
        bytesTransferred - The number of bytes transferred since the previous call to this + method (or if the first call, since the transfer was started).
        +
        +
      • +
      + + + + + +
        +
      • +

        onTransferEnd

        +
        void onTransferEnd(S source)
        +
        Called when a transfer ends.
        +
        +
        Parameters:
        +
        source - The source performing the transfer.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/UdpDataSource.UdpDataSourceException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/UdpDataSource.UdpDataSourceException.html new file mode 100644 index 00000000..90eb7f93 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/UdpDataSource.UdpDataSourceException.html @@ -0,0 +1,270 @@ + + + + + +UdpDataSource.UdpDataSourceException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class UdpDataSource.UdpDataSourceException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.upstream.UdpDataSource.UdpDataSourceException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    UdpDataSource
    +
    +
    +
    +
    public static final class UdpDataSource.UdpDataSourceException
    +extends java.io.IOException
    +
    Thrown when an error is encountered when trying to read from a UdpDataSource.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      UdpDataSourceException(java.io.IOException cause) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UdpDataSourceException

        +
        public UdpDataSourceException(java.io.IOException cause)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/UdpDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/UdpDataSource.html new file mode 100644 index 00000000..d4b1a4f3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/UdpDataSource.html @@ -0,0 +1,526 @@ + + + + + +UdpDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream
+

Class UdpDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.UdpDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class UdpDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    A UDP DataSource.
    +
  • +
+
+
+
    +
  • + + + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int readLength) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MAX_PACKET_SIZE

        +
        public static final int DEFAULT_MAX_PACKET_SIZE
        +
        The default maximum datagram packet size, in bytes.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DEAFULT_SOCKET_TIMEOUT_MILLIS

        +
        public static final int DEAFULT_SOCKET_TIMEOUT_MILLIS
        +
        The default socket timeout, in milliseconds.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UdpDataSource

        +
        public UdpDataSource(TransferListener<? super UdpDataSource> listener)
        +
        +
        Parameters:
        +
        listener - An optional listener.
        +
        +
      • +
      + + + +
        +
      • +

        UdpDataSource

        +
        public UdpDataSource(TransferListener<? super UdpDataSource> listener,
        +                     int maxPacketSize)
        +
        +
        Parameters:
        +
        listener - An optional listener.
        +
        maxPacketSize - The maximum datagram packet size, in bytes.
        +
        +
      • +
      + + + +
        +
      • +

        UdpDataSource

        +
        public UdpDataSource(TransferListener<? super UdpDataSource> listener,
        +                     int maxPacketSize,
        +                     int socketTimeoutMillis)
        +
        +
        Parameters:
        +
        listener - An optional listener.
        +
        maxPacketSize - The maximum datagram packet size, in bytes.
        +
        socketTimeoutMillis - The socket timeout in milliseconds. A timeout of zero is interpreted + as an infinite timeout.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int readLength)
        +         throws UdpDataSource.UdpDataSourceException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        UdpDataSource.UdpDataSourceException
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/Cache.Listener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/Cache.Listener.html new file mode 100644 index 00000000..fcb951d2 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/Cache.Listener.html @@ -0,0 +1,296 @@ + + + + + +Cache.Listener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Interface Cache.Listener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/Cache.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/Cache.html new file mode 100644 index 00000000..e4df3f26 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/Cache.html @@ -0,0 +1,581 @@ + + + + + +Cache (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Interface Cache

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    SimpleCache
    +
    +
    +
    +
    public interface Cache
    +
    An interface for cache.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeInterface and Description
      static interface Cache.Listener +
      Listener of Cache events.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addListener

        +
        java.util.NavigableSet<CacheSpan> addListener(java.lang.String key,
        +                                              Cache.Listener listener)
        +
        Registers a listener to listen for changes to a given key. +

        + No guarantees are made about the thread or threads on which the listener is called, but it is + guaranteed that listener methods will be called in a serial fashion (i.e. one at a time) and in + the same order as events occurred.

        +
        +
        Parameters:
        +
        key - The key to listen to.
        +
        listener - The listener to add.
        +
        Returns:
        +
        The current spans for the key.
        +
        +
      • +
      + + + +
        +
      • +

        removeListener

        +
        void removeListener(java.lang.String key,
        +                    Cache.Listener listener)
        +
        Unregisters a listener.
        +
        +
        Parameters:
        +
        key - The key to stop listening to.
        +
        listener - The listener to remove.
        +
        +
      • +
      + + + +
        +
      • +

        getCachedSpans

        +
        java.util.NavigableSet<CacheSpan> getCachedSpans(java.lang.String key)
        +
        Returns the cached spans for a given cache key.
        +
        +
        Parameters:
        +
        key - The key for which spans should be returned.
        +
        Returns:
        +
        The spans for the key. May be null if there are no such spans.
        +
        +
      • +
      + + + +
        +
      • +

        getKeys

        +
        java.util.Set<java.lang.String> getKeys()
        +
        Returns all keys in the cache.
        +
        +
        Returns:
        +
        All the keys in the cache.
        +
        +
      • +
      + + + +
        +
      • +

        getCacheSpace

        +
        long getCacheSpace()
        +
        Returns the total disk space in bytes used by the cache.
        +
        +
        Returns:
        +
        The total disk space in bytes.
        +
        +
      • +
      + + + +
        +
      • +

        startReadWrite

        +
        CacheSpan startReadWrite(java.lang.String key,
        +                         long position)
        +                  throws java.lang.InterruptedException
        +
        A caller should invoke this method when they require data from a given position for a given + key. +

        + If there is a cache entry that overlaps the position, then the returned CacheSpan + defines the file in which the data is stored. CacheSpan.isCached is true. The caller + may read from the cache file, but does not acquire any locks. +

        + If there is no cache entry overlapping offset, then the returned CacheSpan + defines a hole in the cache starting at position into which the caller may write as it + obtains the data from some other source. The returned CacheSpan serves as a lock. + Whilst the caller holds the lock it may write data into the hole. It may split data into + multiple files. When the caller has finished writing a file it should commit it to the cache + by calling commitFile(File). When the caller has finished writing, it must release + the lock by calling releaseHoleSpan(com.google.android.exoplayer2.upstream.cache.CacheSpan).

        +
        +
        Parameters:
        +
        key - The key of the data being requested.
        +
        position - The position of the data being requested.
        +
        Returns:
        +
        The CacheSpan.
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        startReadWriteNonBlocking

        +
        CacheSpan startReadWriteNonBlocking(java.lang.String key,
        +                                    long position)
        +
        Same as startReadWrite(String, long). However, if the cache entry is locked, then + instead of blocking, this method will return null as the CacheSpan.
        +
        +
        Parameters:
        +
        key - The key of the data being requested.
        +
        position - The position of the data being requested.
        +
        Returns:
        +
        The CacheSpan. Or null if the cache entry is locked.
        +
        +
      • +
      + + + +
        +
      • +

        startFile

        +
        java.io.File startFile(java.lang.String key,
        +                       long position,
        +                       long maxLength)
        +
        Obtains a cache file into which data can be written. Must only be called when holding a + corresponding hole CacheSpan obtained from startReadWrite(String, long).
        +
        +
        Parameters:
        +
        key - The cache key for the data.
        +
        position - The starting position of the data.
        +
        maxLength - The maximum length of the data to be written. Used only to ensure that there + is enough space in the cache.
        +
        Returns:
        +
        The file into which data should be written.
        +
        +
      • +
      + + + +
        +
      • +

        commitFile

        +
        void commitFile(java.io.File file)
        +
        Commits a file into the cache. Must only be called when holding a corresponding hole + CacheSpan obtained from startReadWrite(String, long)
        +
        +
        Parameters:
        +
        file - A newly written cache file.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        removeSpan

        +
        void removeSpan(CacheSpan span)
        +
        Removes a cached CacheSpan from the cache, deleting the underlying file.
        +
        +
        Parameters:
        +
        span - The CacheSpan to remove.
        +
        +
      • +
      + + + +
        +
      • +

        isCached

        +
        boolean isCached(java.lang.String key,
        +                 long position,
        +                 long length)
        +
        Queries if a range is entirely available in the cache.
        +
        +
        Parameters:
        +
        key - The cache key for the data.
        +
        position - The starting position of the data.
        +
        length - The length of the data.
        +
        Returns:
        +
        true if the data is available in the Cache otherwise false;
        +
        +
      • +
      + + + +
        +
      • +

        setContentLength

        +
        boolean setContentLength(java.lang.String key,
        +                         long length)
        +
        Sets the content length for the given key.
        +
        +
        Parameters:
        +
        key - The cache key for the data.
        +
        length - The length of the data.
        +
        Returns:
        +
        Whether the length was set successfully. Returns false if the length conflicts with the + existing contents of the cache.
        +
        +
      • +
      + + + +
        +
      • +

        getContentLength

        +
        long getContentLength(java.lang.String key)
        +
        Returns the content length for the given key if one set, or C.LENGTH_UNSET otherwise.
        +
        +
        Parameters:
        +
        key - The cache key for the data.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSink.CacheDataSinkException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSink.CacheDataSinkException.html new file mode 100644 index 00000000..531f8d75 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSink.CacheDataSinkException.html @@ -0,0 +1,270 @@ + + + + + +CacheDataSink.CacheDataSinkException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Class CacheDataSink.CacheDataSinkException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.upstream.cache.CacheDataSink.CacheDataSinkException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    CacheDataSink
    +
    +
    +
    +
    public static class CacheDataSink.CacheDataSinkException
    +extends java.io.IOException
    +
    Thrown when IOException is encountered when writing data into sink.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CacheDataSinkException(java.io.IOException cause) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CacheDataSinkException

        +
        public CacheDataSinkException(java.io.IOException cause)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSink.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSink.html new file mode 100644 index 00000000..616b7387 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSink.html @@ -0,0 +1,381 @@ + + + + + +CacheDataSink (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Class CacheDataSink

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.cache.CacheDataSink
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSink
    +
    +
    +
    +
    public final class CacheDataSink
    +extends java.lang.Object
    +implements DataSink
    +
    Writes data into a cache.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class CacheDataSink.CacheDataSinkException +
      Thrown when IOException is encountered when writing data into sink.
      +
      + +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CacheDataSink(Cache cache, + long maxCacheFileSize) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the sink.
      +
      voidopen(DataSpec dataSpec) +
      Opens the sink to consume the specified data.
      +
      voidwrite(byte[] buffer, + int offset, + int length) +
      Consumes the provided data.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSinkFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSinkFactory.html new file mode 100644 index 00000000..956c9f6d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSinkFactory.html @@ -0,0 +1,289 @@ + + + + + +CacheDataSinkFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Class CacheDataSinkFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.cache.CacheDataSinkFactory
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CacheDataSinkFactory(Cache cache, + long maxCacheFileSize) 
      +
    • +
    + + +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSource.EventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSource.EventListener.html new file mode 100644 index 00000000..fcad41ae --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSource.EventListener.html @@ -0,0 +1,234 @@ + + + + + +CacheDataSource.EventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Interface CacheDataSource.EventListener

+
+
+
+ +
+
+
    +
  • + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onCachedBytesRead

        +
        void onCachedBytesRead(long cacheSizeBytes,
        +                       long cachedBytesRead)
        +
        Called when bytes have been read from the cache.
        +
        +
        Parameters:
        +
        cacheSizeBytes - Current cache size in bytes.
        +
        cachedBytesRead - Total bytes read from the cache since this method was last called.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSource.Flags.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSource.Flags.html new file mode 100644 index 00000000..5f0c9c1a --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSource.Flags.html @@ -0,0 +1,163 @@ + + + + + +CacheDataSource.Flags (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Annotation Type CacheDataSource.Flags

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public static @interface CacheDataSource.Flags
    +
    Flags controlling the cache's behavior.
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSource.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSource.html new file mode 100644 index 00000000..d007161c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSource.html @@ -0,0 +1,620 @@ + + + + + +CacheDataSource (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Class CacheDataSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.cache.CacheDataSource
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    DataSource
    +
    +
    +
    +
    public final class CacheDataSource
    +extends java.lang.Object
    +implements DataSource
    +
    A DataSource that reads and writes a Cache. Requests are fulfilled from the cache + when possible. When data is not cached it is requested from an upstream DataSource and + written into the cache.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static longDEFAULT_MAX_CACHE_FILE_SIZE +
      Default maximum single cache file size.
      +
      static intFLAG_BLOCK_ON_CACHE +
      A flag indicating whether we will block reads if the cache key is locked.
      +
      static intFLAG_CACHE_UNBOUNDED_REQUESTS +
      A flag indicating whether the response is cached if the range of the request is unbounded.
      +
      static intFLAG_IGNORE_CACHE_ON_ERROR +
      A flag indicating whether the cache is bypassed following any cache related error.
      +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the source.
      +
      android.net.UrigetUri() +
      When the source is open, returns the Uri from which data is being read.
      +
      longopen(DataSpec dataSpec) +
      Opens the source to read the specified data.
      +
      intread(byte[] buffer, + int offset, + int readLength) +
      Reads up to length bytes of data and stores them into buffer, starting at + index offset.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        FLAG_BLOCK_ON_CACHE

        +
        public static final int FLAG_BLOCK_ON_CACHE
        +
        A flag indicating whether we will block reads if the cache key is locked. If this flag is + set, then we will read from upstream if the cache key is locked.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        FLAG_IGNORE_CACHE_ON_ERROR

        +
        public static final int FLAG_IGNORE_CACHE_ON_ERROR
        +
        A flag indicating whether the cache is bypassed following any cache related error. If set + then cache related exceptions may be thrown for one cycle of open, read and close calls. + Subsequent cycles of these calls will then bypass the cache.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        FLAG_CACHE_UNBOUNDED_REQUESTS

        +
        public static final int FLAG_CACHE_UNBOUNDED_REQUESTS
        +
        A flag indicating whether the response is cached if the range of the request is unbounded. + Disabled by default because, as a side effect, this may allow streams with every chunk from a + separate URL cached which is broken currently.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        open

        +
        public long open(DataSpec dataSpec)
        +          throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Opens the source to read the specified data. +

        + Note: If an IOException is thrown, callers must still call DataSource.close() to ensure + that any partial effects of the invocation are cleaned up.

        +
        +
        Specified by:
        +
        open in interface DataSource
        +
        Parameters:
        +
        dataSpec - Defines the data to be read.
        +
        Returns:
        +
        The number of bytes that can be read from the opened source. For unbounded requests + (i.e. requests where DataSpec.length equals C.LENGTH_UNSET) this value + is the resolved length of the request, or C.LENGTH_UNSET if the length is still + unresolved. For all other requests, the value returned will be equal to the request's + DataSpec.length.
        +
        Throws:
        +
        java.io.IOException - If an error occurs opening the source. DataSourceException can be + thrown or used as a cause of the thrown exception to specify the reason of the error.
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] buffer,
        +                int offset,
        +                int readLength)
        +         throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Reads up to length bytes of data and stores them into buffer, starting at + index offset. +

        + If length is zero then 0 is returned. Otherwise, if no data is available because the + end of the opened range has been reached, then C.RESULT_END_OF_INPUT is returned. + Otherwise, the call will block until at least one byte of data has been read and the number of + bytes read is returned.

        +
        +
        Specified by:
        +
        read in interface DataSource
        +
        Parameters:
        +
        buffer - The buffer into which the read data should be stored.
        +
        offset - The start offset into buffer at which data should be written.
        +
        readLength - The maximum number of bytes to read.
        +
        Returns:
        +
        The number of bytes read, or C.RESULT_END_OF_INPUT if no data is avaliable + because the end of the opened range has been reached.
        +
        Throws:
        +
        java.io.IOException - If an error occurs reading from the source.
        +
        +
      • +
      + + + +
        +
      • +

        getUri

        +
        public android.net.Uri getUri()
        +
        Description copied from interface: DataSource
        +
        When the source is open, returns the Uri from which data is being read. The returned + Uri will be identical to the one passed DataSource.open(DataSpec) in the DataSpec + unless redirection has occurred. If redirection has occurred, the Uri after redirection + is returned.
        +
        +
        Specified by:
        +
        getUri in interface DataSource
        +
        Returns:
        +
        The Uri from which data is being read, or null if the source is not open.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +           throws java.io.IOException
        +
        Description copied from interface: DataSource
        +
        Closes the source. +

        + Note: This method must be called even if the corresponding call to DataSource.open(DataSpec) + threw an IOException. See DataSource.open(DataSpec) for more details.

        +
        +
        Specified by:
        +
        close in interface DataSource
        +
        Throws:
        +
        java.io.IOException - If an error occurs closing the source.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSourceFactory.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSourceFactory.html new file mode 100644 index 00000000..a993d3aa --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheDataSourceFactory.html @@ -0,0 +1,340 @@ + + + + + +CacheDataSourceFactory (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Class CacheDataSourceFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.cache.CacheDataSourceFactory
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheEvictor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheEvictor.html new file mode 100644 index 00000000..0dd065d7 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheEvictor.html @@ -0,0 +1,269 @@ + + + + + +CacheEvictor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Interface CacheEvictor

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onCacheInitialized

        +
        void onCacheInitialized()
        +
        Called when cache has beeen initialized.
        +
      • +
      + + + +
        +
      • +

        onStartFile

        +
        void onStartFile(Cache cache,
        +                 java.lang.String key,
        +                 long position,
        +                 long maxLength)
        +
        Called when a writer starts writing to the cache.
        +
        +
        Parameters:
        +
        cache - The source of the event.
        +
        key - The key being written.
        +
        position - The starting position of the data being written.
        +
        maxLength - The maximum length of the data being written.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheSpan.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheSpan.html new file mode 100644 index 00000000..2b2a104c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/CacheSpan.html @@ -0,0 +1,488 @@ + + + + + +CacheSpan (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Class CacheSpan

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.cache.CacheSpan
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Comparable<CacheSpan>
    +
    +
    +
    +
    public final class CacheSpan
    +extends java.lang.Object
    +implements java.lang.Comparable<CacheSpan>
    +
    Defines a span of data that may or may not be cached (as indicated by isCached).
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        key

        +
        public final java.lang.String key
        +
        The cache key that uniquely identifies the original stream.
        +
      • +
      + + + +
        +
      • +

        position

        +
        public final long position
        +
        The position of the CacheSpan in the original stream.
        +
      • +
      + + + +
        +
      • +

        length

        +
        public final long length
        +
        The length of the CacheSpan, or C.LENGTH_UNSET if this is an open-ended hole.
        +
      • +
      + + + +
        +
      • +

        isCached

        +
        public final boolean isCached
        +
        Whether the CacheSpan is cached.
        +
      • +
      + + + +
        +
      • +

        file

        +
        public final java.io.File file
        +
        The file corresponding to this CacheSpan, or null if isCached is false.
        +
      • +
      + + + +
        +
      • +

        lastAccessTimestamp

        +
        public final long lastAccessTimestamp
        +
        The last access timestamp, or C.TIME_UNSET if isCached is false.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCacheFileName

        +
        public static java.io.File getCacheFileName(java.io.File cacheDir,
        +                                            java.lang.String key,
        +                                            long offset,
        +                                            long lastAccessTimestamp)
        +
      • +
      + + + +
        +
      • +

        createLookup

        +
        public static CacheSpan createLookup(java.lang.String key,
        +                                     long position)
        +
      • +
      + + + +
        +
      • +

        createOpenHole

        +
        public static CacheSpan createOpenHole(java.lang.String key,
        +                                       long position)
        +
      • +
      + + + +
        +
      • +

        createClosedHole

        +
        public static CacheSpan createClosedHole(java.lang.String key,
        +                                         long position,
        +                                         long length)
        +
      • +
      + + + +
        +
      • +

        createCacheEntry

        +
        public static CacheSpan createCacheEntry(java.io.File file)
        +
        Creates a cache span from an underlying cache file.
        +
        +
        Parameters:
        +
        file - The cache file.
        +
        Returns:
        +
        The span, or null if the file name is not correctly formatted.
        +
        +
      • +
      + + + +
        +
      • +

        isOpenEnded

        +
        public boolean isOpenEnded()
        +
        Returns whether this is an open-ended CacheSpan.
        +
      • +
      + + + +
        +
      • +

        touch

        +
        public CacheSpan touch()
        +
        Renames the file underlying this cache span to update its last access time.
        +
        +
        Returns:
        +
        A CacheSpan representing the updated cache file.
        +
        +
      • +
      + + + +
        +
      • +

        compareTo

        +
        public int compareTo(CacheSpan another)
        +
        +
        Specified by:
        +
        compareTo in interface java.lang.Comparable<CacheSpan>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/LeastRecentlyUsedCacheEvictor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/LeastRecentlyUsedCacheEvictor.html new file mode 100644 index 00000000..befbbc77 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/LeastRecentlyUsedCacheEvictor.html @@ -0,0 +1,427 @@ + + + + + +LeastRecentlyUsedCacheEvictor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Class LeastRecentlyUsedCacheEvictor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Cache.Listener, CacheEvictor, java.util.Comparator<CacheSpan>
    +
    +
    +
    +
    public final class LeastRecentlyUsedCacheEvictor
    +extends java.lang.Object
    +implements CacheEvictor, java.util.Comparator<CacheSpan>
    +
    Evicts least recently used cache files first.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intcompare(CacheSpan lhs, + CacheSpan rhs) 
      voidonCacheInitialized() +
      Called when cache has beeen initialized.
      +
      voidonSpanAdded(Cache cache, + CacheSpan span) +
      Called when a CacheSpan is added to the cache.
      +
      voidonSpanRemoved(Cache cache, + CacheSpan span) +
      Called when a CacheSpan is removed from the cache.
      +
      voidonSpanTouched(Cache cache, + CacheSpan oldSpan, + CacheSpan newSpan) +
      Called when an existing CacheSpan is accessed, causing it to be replaced.
      +
      voidonStartFile(Cache cache, + java.lang.String key, + long position, + long maxLength) +
      Called when a writer starts writing to the cache.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Comparator

        +comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/NoOpCacheEvictor.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/NoOpCacheEvictor.html new file mode 100644 index 00000000..45a69156 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/NoOpCacheEvictor.html @@ -0,0 +1,404 @@ + + + + + +NoOpCacheEvictor (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Class NoOpCacheEvictor

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.cache.NoOpCacheEvictor
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Cache.Listener, CacheEvictor
    +
    +
    +
    +
    public final class NoOpCacheEvictor
    +extends java.lang.Object
    +implements CacheEvictor
    +
    Evictor that doesn't ever evict cache files. + + Warning: Using this evictor might have unforeseeable consequences if cache + size is not managed elsewhere.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/SimpleCache.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/SimpleCache.html new file mode 100644 index 00000000..08b18525 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/SimpleCache.html @@ -0,0 +1,678 @@ + + + + + +SimpleCache (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.upstream.cache
+

Class SimpleCache

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.upstream.cache.SimpleCache
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Cache
    +
    +
    +
    +
    public final class SimpleCache
    +extends java.lang.Object
    +implements Cache
    +
    A Cache implementation that maintains an in-memory representation.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from interface com.google.android.exoplayer2.upstream.cache.Cache

        +Cache.Listener
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SimpleCache(java.io.File cacheDir, + CacheEvictor evictor) +
      Constructs the cache.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.util.NavigableSet<CacheSpan>addListener(java.lang.String key, + Cache.Listener listener) +
      Registers a listener to listen for changes to a given key.
      +
      voidcommitFile(java.io.File file) +
      Commits a file into the cache.
      +
      java.util.NavigableSet<CacheSpan>getCachedSpans(java.lang.String key) +
      Returns the cached spans for a given cache key.
      +
      longgetCacheSpace() +
      Returns the total disk space in bytes used by the cache.
      +
      longgetContentLength(java.lang.String key) +
      Returns the content length for the given key if one set, or C.LENGTH_UNSET otherwise.
      +
      java.util.Set<java.lang.String>getKeys() +
      Returns all keys in the cache.
      +
      booleanisCached(java.lang.String key, + long position, + long length) +
      Queries if a range is entirely available in the cache.
      +
      voidreleaseHoleSpan(CacheSpan holeSpan) +
      Releases a CacheSpan obtained from Cache.startReadWrite(String, long) which + corresponded to a hole in the cache.
      +
      voidremoveListener(java.lang.String key, + Cache.Listener listener) +
      Unregisters a listener.
      +
      voidremoveSpan(CacheSpan span) +
      Removes a cached CacheSpan from the cache, deleting the underlying file.
      +
      booleansetContentLength(java.lang.String key, + long length) +
      Sets the content length for the given key.
      +
      java.io.FilestartFile(java.lang.String key, + long position, + long maxLength) +
      Obtains a cache file into which data can be written.
      +
      CacheSpanstartReadWrite(java.lang.String key, + long position) +
      A caller should invoke this method when they require data from a given position for a given + key.
      +
      CacheSpanstartReadWriteNonBlocking(java.lang.String key, + long position) + +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SimpleCache

        +
        public SimpleCache(java.io.File cacheDir,
        +                   CacheEvictor evictor)
        +
        Constructs the cache. The cache will delete any unrecognized files from the directory. Hence + the directory cannot be used to store other files.
        +
        +
        Parameters:
        +
        cacheDir - A dedicated cache directory.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addListener

        +
        public java.util.NavigableSet<CacheSpan> addListener(java.lang.String key,
        +                                                     Cache.Listener listener)
        +
        Description copied from interface: Cache
        +
        Registers a listener to listen for changes to a given key. +

        + No guarantees are made about the thread or threads on which the listener is called, but it is + guaranteed that listener methods will be called in a serial fashion (i.e. one at a time) and in + the same order as events occurred.

        +
        +
        Specified by:
        +
        addListener in interface Cache
        +
        Parameters:
        +
        key - The key to listen to.
        +
        listener - The listener to add.
        +
        Returns:
        +
        The current spans for the key.
        +
        +
      • +
      + + + +
        +
      • +

        removeListener

        +
        public void removeListener(java.lang.String key,
        +                           Cache.Listener listener)
        +
        Description copied from interface: Cache
        +
        Unregisters a listener.
        +
        +
        Specified by:
        +
        removeListener in interface Cache
        +
        Parameters:
        +
        key - The key to stop listening to.
        +
        listener - The listener to remove.
        +
        +
      • +
      + + + +
        +
      • +

        getCachedSpans

        +
        public java.util.NavigableSet<CacheSpan> getCachedSpans(java.lang.String key)
        +
        Description copied from interface: Cache
        +
        Returns the cached spans for a given cache key.
        +
        +
        Specified by:
        +
        getCachedSpans in interface Cache
        +
        Parameters:
        +
        key - The key for which spans should be returned.
        +
        Returns:
        +
        The spans for the key. May be null if there are no such spans.
        +
        +
      • +
      + + + +
        +
      • +

        getKeys

        +
        public java.util.Set<java.lang.String> getKeys()
        +
        Description copied from interface: Cache
        +
        Returns all keys in the cache.
        +
        +
        Specified by:
        +
        getKeys in interface Cache
        +
        Returns:
        +
        All the keys in the cache.
        +
        +
      • +
      + + + +
        +
      • +

        getCacheSpace

        +
        public long getCacheSpace()
        +
        Description copied from interface: Cache
        +
        Returns the total disk space in bytes used by the cache.
        +
        +
        Specified by:
        +
        getCacheSpace in interface Cache
        +
        Returns:
        +
        The total disk space in bytes.
        +
        +
      • +
      + + + +
        +
      • +

        startReadWrite

        +
        public CacheSpan startReadWrite(java.lang.String key,
        +                                long position)
        +                         throws java.lang.InterruptedException
        +
        Description copied from interface: Cache
        +
        A caller should invoke this method when they require data from a given position for a given + key. +

        + If there is a cache entry that overlaps the position, then the returned CacheSpan + defines the file in which the data is stored. CacheSpan.isCached is true. The caller + may read from the cache file, but does not acquire any locks. +

        + If there is no cache entry overlapping offset, then the returned CacheSpan + defines a hole in the cache starting at position into which the caller may write as it + obtains the data from some other source. The returned CacheSpan serves as a lock. + Whilst the caller holds the lock it may write data into the hole. It may split data into + multiple files. When the caller has finished writing a file it should commit it to the cache + by calling Cache.commitFile(File). When the caller has finished writing, it must release + the lock by calling Cache.releaseHoleSpan(com.google.android.exoplayer2.upstream.cache.CacheSpan).

        +
        +
        Specified by:
        +
        startReadWrite in interface Cache
        +
        Parameters:
        +
        key - The key of the data being requested.
        +
        position - The position of the data being requested.
        +
        Returns:
        +
        The CacheSpan.
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        startReadWriteNonBlocking

        +
        public CacheSpan startReadWriteNonBlocking(java.lang.String key,
        +                                           long position)
        +
        Description copied from interface: Cache
        +
        Same as Cache.startReadWrite(String, long). However, if the cache entry is locked, then + instead of blocking, this method will return null as the CacheSpan.
        +
        +
        Specified by:
        +
        startReadWriteNonBlocking in interface Cache
        +
        Parameters:
        +
        key - The key of the data being requested.
        +
        position - The position of the data being requested.
        +
        Returns:
        +
        The CacheSpan. Or null if the cache entry is locked.
        +
        +
      • +
      + + + +
        +
      • +

        startFile

        +
        public java.io.File startFile(java.lang.String key,
        +                              long position,
        +                              long maxLength)
        +
        Description copied from interface: Cache
        +
        Obtains a cache file into which data can be written. Must only be called when holding a + corresponding hole CacheSpan obtained from Cache.startReadWrite(String, long).
        +
        +
        Specified by:
        +
        startFile in interface Cache
        +
        Parameters:
        +
        key - The cache key for the data.
        +
        position - The starting position of the data.
        +
        maxLength - The maximum length of the data to be written. Used only to ensure that there + is enough space in the cache.
        +
        Returns:
        +
        The file into which data should be written.
        +
        +
      • +
      + + + +
        +
      • +

        commitFile

        +
        public void commitFile(java.io.File file)
        +
        Description copied from interface: Cache
        +
        Commits a file into the cache. Must only be called when holding a corresponding hole + CacheSpan obtained from Cache.startReadWrite(String, long)
        +
        +
        Specified by:
        +
        commitFile in interface Cache
        +
        Parameters:
        +
        file - A newly written cache file.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        removeSpan

        +
        public void removeSpan(CacheSpan span)
        +
        Description copied from interface: Cache
        +
        Removes a cached CacheSpan from the cache, deleting the underlying file.
        +
        +
        Specified by:
        +
        removeSpan in interface Cache
        +
        Parameters:
        +
        span - The CacheSpan to remove.
        +
        +
      • +
      + + + +
        +
      • +

        isCached

        +
        public boolean isCached(java.lang.String key,
        +                        long position,
        +                        long length)
        +
        Description copied from interface: Cache
        +
        Queries if a range is entirely available in the cache.
        +
        +
        Specified by:
        +
        isCached in interface Cache
        +
        Parameters:
        +
        key - The cache key for the data.
        +
        position - The starting position of the data.
        +
        length - The length of the data.
        +
        Returns:
        +
        true if the data is available in the Cache otherwise false;
        +
        +
      • +
      + + + +
        +
      • +

        setContentLength

        +
        public boolean setContentLength(java.lang.String key,
        +                                long length)
        +
        Description copied from interface: Cache
        +
        Sets the content length for the given key.
        +
        +
        Specified by:
        +
        setContentLength in interface Cache
        +
        Parameters:
        +
        key - The cache key for the data.
        +
        length - The length of the data.
        +
        Returns:
        +
        Whether the length was set successfully. Returns false if the length conflicts with the + existing contents of the cache.
        +
        +
      • +
      + + + +
        +
      • +

        getContentLength

        +
        public long getContentLength(java.lang.String key)
        +
        Description copied from interface: Cache
        +
        Returns the content length for the given key if one set, or C.LENGTH_UNSET otherwise.
        +
        +
        Specified by:
        +
        getContentLength in interface Cache
        +
        Parameters:
        +
        key - The cache key for the data.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/package-frame.html new file mode 100644 index 00000000..f50154f6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/package-frame.html @@ -0,0 +1,42 @@ + + + + + +com.google.android.exoplayer2.upstream.cache (library API) + + + + + +

com.google.android.exoplayer2.upstream.cache

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/package-summary.html new file mode 100644 index 00000000..e48c59a6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/package-summary.html @@ -0,0 +1,253 @@ + + + + + +com.google.android.exoplayer2.upstream.cache (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.upstream.cache

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/package-tree.html new file mode 100644 index 00000000..d0756c29 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/cache/package-tree.html @@ -0,0 +1,169 @@ + + + + + +com.google.android.exoplayer2.upstream.cache Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.upstream.cache

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+

Interface Hierarchy

+ +

Annotation Type Hierarchy

+
    +
  • com.google.android.exoplayer2.upstream.cache.CacheDataSource.Flags (implements java.lang.annotation.Annotation)
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/package-frame.html new file mode 100644 index 00000000..b97357b3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/package-frame.html @@ -0,0 +1,75 @@ + + + + + +com.google.android.exoplayer2.upstream (library API) + + + + + +

com.google.android.exoplayer2.upstream

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/package-summary.html new file mode 100644 index 00000000..88fd1515 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/package-summary.html @@ -0,0 +1,452 @@ + + + + + +com.google.android.exoplayer2.upstream (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.upstream

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/package-tree.html new file mode 100644 index 00000000..c576547d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/upstream/package-tree.html @@ -0,0 +1,212 @@ + + + + + +com.google.android.exoplayer2.upstream Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.upstream

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Assertions.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Assertions.html new file mode 100644 index 00000000..ec9fc53d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Assertions.html @@ -0,0 +1,483 @@ + + + + + +Assertions (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class Assertions

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.Assertions
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class Assertions
    +extends java.lang.Object
    +
    Provides methods for asserting the truth of expressions and properties.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidcheckArgument(boolean expression) +
      Throws IllegalArgumentException if expression evaluates to false.
      +
      static voidcheckArgument(boolean expression, + java.lang.Object errorMessage) +
      Throws IllegalArgumentException if expression evaluates to false.
      +
      static intcheckIndex(int index, + int start, + int limit) +
      Throws IndexOutOfBoundsException if index falls outside the specified bounds.
      +
      static voidcheckMainThread() +
      Throws IllegalStateException if the calling thread is not the application's main + thread.
      +
      static java.lang.StringcheckNotEmpty(java.lang.String string) +
      Throws IllegalArgumentException if string is null or zero length.
      +
      static java.lang.StringcheckNotEmpty(java.lang.String string, + java.lang.Object errorMessage) +
      Throws IllegalArgumentException if string is null or zero length.
      +
      static <T> TcheckNotNull(T reference) +
      Throws NullPointerException if reference is null.
      +
      static <T> TcheckNotNull(T reference, + java.lang.Object errorMessage) +
      Throws NullPointerException if reference is null.
      +
      static voidcheckState(boolean expression) +
      Throws IllegalStateException if expression evaluates to false.
      +
      static voidcheckState(boolean expression, + java.lang.Object errorMessage) +
      Throws IllegalStateException if expression evaluates to false.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        checkArgument

        +
        public static void checkArgument(boolean expression)
        +
        Throws IllegalArgumentException if expression evaluates to false.
        +
        +
        Parameters:
        +
        expression - The expression to evaluate.
        +
        Throws:
        +
        java.lang.IllegalArgumentException - If expression is false.
        +
        +
      • +
      + + + +
        +
      • +

        checkArgument

        +
        public static void checkArgument(boolean expression,
        +                                 java.lang.Object errorMessage)
        +
        Throws IllegalArgumentException if expression evaluates to false.
        +
        +
        Parameters:
        +
        expression - The expression to evaluate.
        +
        errorMessage - The exception message if an exception is thrown. The message is converted + to a String using String.valueOf(Object).
        +
        Throws:
        +
        java.lang.IllegalArgumentException - If expression is false.
        +
        +
      • +
      + + + +
        +
      • +

        checkIndex

        +
        public static int checkIndex(int index,
        +                             int start,
        +                             int limit)
        +
        Throws IndexOutOfBoundsException if index falls outside the specified bounds.
        +
        +
        Parameters:
        +
        index - The index to test.
        +
        start - The start of the allowed range (inclusive).
        +
        limit - The end of the allowed range (exclusive).
        +
        Returns:
        +
        The index that was validated.
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - If index falls outside the specified bounds.
        +
        +
      • +
      + + + +
        +
      • +

        checkState

        +
        public static void checkState(boolean expression)
        +
        Throws IllegalStateException if expression evaluates to false.
        +
        +
        Parameters:
        +
        expression - The expression to evaluate.
        +
        Throws:
        +
        java.lang.IllegalStateException - If expression is false.
        +
        +
      • +
      + + + +
        +
      • +

        checkState

        +
        public static void checkState(boolean expression,
        +                              java.lang.Object errorMessage)
        +
        Throws IllegalStateException if expression evaluates to false.
        +
        +
        Parameters:
        +
        expression - The expression to evaluate.
        +
        errorMessage - The exception message if an exception is thrown. The message is converted + to a String using String.valueOf(Object).
        +
        Throws:
        +
        java.lang.IllegalStateException - If expression is false.
        +
        +
      • +
      + + + + + +
        +
      • +

        checkNotNull

        +
        public static <T> T checkNotNull(T reference)
        +
        Throws NullPointerException if reference is null.
        +
        +
        Type Parameters:
        +
        T - The type of the reference.
        +
        Parameters:
        +
        reference - The reference.
        +
        Returns:
        +
        The non-null reference that was validated.
        +
        Throws:
        +
        java.lang.NullPointerException - If reference is null.
        +
        +
      • +
      + + + + + +
        +
      • +

        checkNotNull

        +
        public static <T> T checkNotNull(T reference,
        +                                 java.lang.Object errorMessage)
        +
        Throws NullPointerException if reference is null.
        +
        +
        Type Parameters:
        +
        T - The type of the reference.
        +
        Parameters:
        +
        reference - The reference.
        +
        errorMessage - The exception message to use if the check fails. The message is converted + to a string using String.valueOf(Object).
        +
        Returns:
        +
        The non-null reference that was validated.
        +
        Throws:
        +
        java.lang.NullPointerException - If reference is null.
        +
        +
      • +
      + + + +
        +
      • +

        checkNotEmpty

        +
        public static java.lang.String checkNotEmpty(java.lang.String string)
        +
        Throws IllegalArgumentException if string is null or zero length.
        +
        +
        Parameters:
        +
        string - The string to check.
        +
        Returns:
        +
        The non-null, non-empty string that was validated.
        +
        Throws:
        +
        java.lang.IllegalArgumentException - If string is null or 0-length.
        +
        +
      • +
      + + + +
        +
      • +

        checkNotEmpty

        +
        public static java.lang.String checkNotEmpty(java.lang.String string,
        +                                             java.lang.Object errorMessage)
        +
        Throws IllegalArgumentException if string is null or zero length.
        +
        +
        Parameters:
        +
        string - The string to check.
        +
        errorMessage - The exception message to use if the check fails. The message is converted + to a string using String.valueOf(Object).
        +
        Returns:
        +
        The non-null, non-empty string that was validated.
        +
        Throws:
        +
        java.lang.IllegalArgumentException - If string is null or 0-length.
        +
        +
      • +
      + + + +
        +
      • +

        checkMainThread

        +
        public static void checkMainThread()
        +
        Throws IllegalStateException if the calling thread is not the application's main + thread.
        +
        +
        Throws:
        +
        java.lang.IllegalStateException - If the calling thread is not the application's main thread.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Clock.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Clock.html new file mode 100644 index 00000000..bfb43582 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Clock.html @@ -0,0 +1,232 @@ + + + + + +Clock (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Interface Clock

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    SystemClock
    +
    +
    +
    +
    public interface Clock
    +
    An interface through which system clocks can be read. The SystemClock implementation + must be used for all non-test cases.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        elapsedRealtime

        +
        long elapsedRealtime()
        +
        Returns SystemClock.elapsedRealtime().
        +
        +
        Returns:
        +
        Elapsed milliseconds since boot.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/CodecSpecificDataUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/CodecSpecificDataUtil.html new file mode 100644 index 00000000..f1f26edd --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/CodecSpecificDataUtil.html @@ -0,0 +1,353 @@ + + + + + +CodecSpecificDataUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class CodecSpecificDataUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.CodecSpecificDataUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class CodecSpecificDataUtil
    +extends java.lang.Object
    +
    Provides static utility methods for manipulating various types of codec specific data.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static byte[]buildAacAudioSpecificConfig(int audioObjectType, + int sampleRateIndex, + int channelConfig) +
      Builds a simple AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
      +
      static byte[]buildAacLcAudioSpecificConfig(int sampleRate, + int numChannels) +
      Builds a simple HE-AAC LC AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
      +
      static byte[]buildNalUnit(byte[] data, + int offset, + int length) +
      Constructs a NAL unit consisting of the NAL start code followed by the specified data.
      +
      static android.util.Pair<java.lang.Integer,java.lang.Integer>parseAacAudioSpecificConfig(byte[] audioSpecificConfig) +
      Parses an AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
      +
      static byte[][]splitNalUnits(byte[] data) +
      Splits an array of NAL units.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parseAacAudioSpecificConfig

        +
        public static android.util.Pair<java.lang.Integer,java.lang.Integer> parseAacAudioSpecificConfig(byte[] audioSpecificConfig)
        +
        Parses an AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
        +
        +
        Parameters:
        +
        audioSpecificConfig - The AudioSpecificConfig to parse.
        +
        Returns:
        +
        A pair consisting of the sample rate in Hz and the channel count.
        +
        +
      • +
      + + + +
        +
      • +

        buildAacLcAudioSpecificConfig

        +
        public static byte[] buildAacLcAudioSpecificConfig(int sampleRate,
        +                                                   int numChannels)
        +
        Builds a simple HE-AAC LC AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
        +
        +
        Parameters:
        +
        sampleRate - The sample rate in Hz.
        +
        numChannels - The number of channels.
        +
        Returns:
        +
        The AudioSpecificConfig.
        +
        +
      • +
      + + + +
        +
      • +

        buildAacAudioSpecificConfig

        +
        public static byte[] buildAacAudioSpecificConfig(int audioObjectType,
        +                                                 int sampleRateIndex,
        +                                                 int channelConfig)
        +
        Builds a simple AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
        +
        +
        Parameters:
        +
        audioObjectType - The audio object type.
        +
        sampleRateIndex - The sample rate index.
        +
        channelConfig - The channel configuration.
        +
        Returns:
        +
        The AudioSpecificConfig.
        +
        +
      • +
      + + + +
        +
      • +

        buildNalUnit

        +
        public static byte[] buildNalUnit(byte[] data,
        +                                  int offset,
        +                                  int length)
        +
        Constructs a NAL unit consisting of the NAL start code followed by the specified data.
        +
        +
        Parameters:
        +
        data - An array containing the data that should follow the NAL start code.
        +
        offset - The start offset into data.
        +
        length - The number of bytes to copy from data
        +
        Returns:
        +
        The constructed NAL unit.
        +
        +
      • +
      + + + +
        +
      • +

        splitNalUnits

        +
        public static byte[][] splitNalUnits(byte[] data)
        +
        Splits an array of NAL units. +

        + If the input consists of NAL start code delimited units, then the returned array consists of + the split NAL units, each of which is still prefixed with the NAL start code. For any other + input, null is returned.

        +
        +
        Parameters:
        +
        data - An array of data.
        +
        Returns:
        +
        The individual NAL units, or null if the input did not consist of NAL start code + delimited units.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ColorParser.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ColorParser.html new file mode 100644 index 00000000..9fdf65cd --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ColorParser.html @@ -0,0 +1,306 @@ + + + + + +ColorParser (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class ColorParser

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.ColorParser
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ColorParser() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static intparseCssColor(java.lang.String colorExpression) +
      Parses a CSS color expression.
      +
      static intparseTtmlColor(java.lang.String colorExpression) +
      Parses a TTML color expression.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ColorParser

        +
        public ColorParser()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parseTtmlColor

        +
        public static int parseTtmlColor(java.lang.String colorExpression)
        +
        Parses a TTML color expression.
        +
        +
        Parameters:
        +
        colorExpression - The color expression.
        +
        Returns:
        +
        The parsed ARGB color.
        +
        +
      • +
      + + + +
        +
      • +

        parseCssColor

        +
        public static int parseCssColor(java.lang.String colorExpression)
        +
        Parses a CSS color expression.
        +
        +
        Parameters:
        +
        colorExpression - The color expression.
        +
        Returns:
        +
        The parsed ARGB color.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ConditionVariable.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ConditionVariable.html new file mode 100644 index 00000000..be261079 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ConditionVariable.html @@ -0,0 +1,319 @@ + + + + + +ConditionVariable (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class ConditionVariable

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.ConditionVariable
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class ConditionVariable
    +extends java.lang.Object
    +
    A condition variable whose open() and close() methods return whether they + resulted in a change of state.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ConditionVariable() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidblock() +
      Blocks until the condition is opened.
      +
      booleanclose() +
      Closes the condition.
      +
      booleanopen() +
      Opens the condition and releases all threads that are blocked.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConditionVariable

        +
        public ConditionVariable()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        open

        +
        public boolean open()
        +
        Opens the condition and releases all threads that are blocked.
        +
        +
        Returns:
        +
        True if the condition variable was opened. False if it was already open.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public boolean close()
        +
        Closes the condition.
        +
        +
        Returns:
        +
        True if the condition variable was closed. False if it was already closed.
        +
        +
      • +
      + + + +
        +
      • +

        block

        +
        public void block()
        +           throws java.lang.InterruptedException
        +
        Blocks until the condition is opened.
        +
        +
        Throws:
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/FlacStreamInfo.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/FlacStreamInfo.html new file mode 100644 index 00000000..03571321 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/FlacStreamInfo.html @@ -0,0 +1,462 @@ + + + + + +FlacStreamInfo (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class FlacStreamInfo

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.FlacStreamInfo
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class FlacStreamInfo
    +extends java.lang.Object
    +
    Holder for FLAC stream info.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      FlacStreamInfo(byte[] data, + int offset) +
      Constructs a FlacStreamInfo parsing the given binary FLAC stream info metadata structure.
      +
      FlacStreamInfo(int minBlockSize, + int maxBlockSize, + int minFrameSize, + int maxFrameSize, + int sampleRate, + int channels, + int bitsPerSample, + long totalSamples) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        minBlockSize

        +
        public final int minBlockSize
        +
      • +
      + + + +
        +
      • +

        maxBlockSize

        +
        public final int maxBlockSize
        +
      • +
      + + + +
        +
      • +

        minFrameSize

        +
        public final int minFrameSize
        +
      • +
      + + + +
        +
      • +

        maxFrameSize

        +
        public final int maxFrameSize
        +
      • +
      + + + +
        +
      • +

        sampleRate

        +
        public final int sampleRate
        +
      • +
      + + + +
        +
      • +

        channels

        +
        public final int channels
        +
      • +
      + + + +
        +
      • +

        bitsPerSample

        +
        public final int bitsPerSample
        +
      • +
      + + + +
        +
      • +

        totalSamples

        +
        public final long totalSamples
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FlacStreamInfo

        +
        public FlacStreamInfo(byte[] data,
        +                      int offset)
        +
        Constructs a FlacStreamInfo parsing the given binary FLAC stream info metadata structure.
        +
        +
        Parameters:
        +
        data - An array holding FLAC stream info metadata structure
        +
        offset - Offset of the structure in the array
        +
        See Also:
        +
        FLAC format + METADATA_BLOCK_STREAMINFO
        +
        +
      • +
      + + + +
        +
      • +

        FlacStreamInfo

        +
        public FlacStreamInfo(int minBlockSize,
        +                      int maxBlockSize,
        +                      int minFrameSize,
        +                      int maxFrameSize,
        +                      int sampleRate,
        +                      int channels,
        +                      int bitsPerSample,
        +                      long totalSamples)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        maxDecodedFrameSize

        +
        public int maxDecodedFrameSize()
        +
      • +
      + + + +
        +
      • +

        bitRate

        +
        public int bitRate()
        +
      • +
      + + + +
        +
      • +

        durationUs

        +
        public long durationUs()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/LibraryLoader.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/LibraryLoader.html new file mode 100644 index 00000000..bb6fa0ea --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/LibraryLoader.html @@ -0,0 +1,294 @@ + + + + + +LibraryLoader (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class LibraryLoader

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.LibraryLoader
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class LibraryLoader
    +extends java.lang.Object
    +
    Configurable loader for native libraries.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      LibraryLoader(java.lang.String... libraries) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanisAvailable() +
      Returns whether the underlying libraries are available, loading them if necessary.
      +
      voidsetLibraries(java.lang.String... libraries) +
      Overrides the names of the libraries to load.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LibraryLoader

        +
        public LibraryLoader(java.lang.String... libraries)
        +
        +
        Parameters:
        +
        libraries - The names of the libraries to load.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setLibraries

        +
        public void setLibraries(java.lang.String... libraries)
        +
        Overrides the names of the libraries to load. Must be called before any call to + isAvailable().
        +
      • +
      + + + +
        +
      • +

        isAvailable

        +
        public boolean isAvailable()
        +
        Returns whether the underlying libraries are available, loading them if necessary.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/LongArray.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/LongArray.html new file mode 100644 index 00000000..ad9c50ef --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/LongArray.html @@ -0,0 +1,354 @@ + + + + + +LongArray (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class LongArray

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.LongArray
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class LongArray
    +extends java.lang.Object
    +
    An append-only, auto-growing long[].
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      LongArray() 
      LongArray(int initialCapacity) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidadd(long value) +
      Appends a value.
      +
      longget(int index) +
      Returns the value at a specified index.
      +
      intsize() +
      Returns the current size of the array.
      +
      long[]toArray() +
      Copies the current values into a newly allocated primitive array.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LongArray

        +
        public LongArray()
        +
      • +
      + + + +
        +
      • +

        LongArray

        +
        public LongArray(int initialCapacity)
        +
        +
        Parameters:
        +
        initialCapacity - The initial capacity of the array.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        add

        +
        public void add(long value)
        +
        Appends a value.
        +
        +
        Parameters:
        +
        value - The value to append.
        +
        +
      • +
      + + + +
        +
      • +

        get

        +
        public long get(int index)
        +
        Returns the value at a specified index.
        +
        +
        Parameters:
        +
        index - The index.
        +
        Returns:
        +
        The corresponding value.
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException - If the index is less than zero, or greater than or equal to + size().
        +
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
        Returns the current size of the array.
        +
      • +
      + + + +
        +
      • +

        toArray

        +
        public long[] toArray()
        +
        Copies the current values into a newly allocated primitive array.
        +
        +
        Returns:
        +
        The primitive array containing the copied values.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/MediaClock.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/MediaClock.html new file mode 100644 index 00000000..65ae1200 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/MediaClock.html @@ -0,0 +1,227 @@ + + + + + +MediaClock (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Interface MediaClock

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPositionUs

        +
        long getPositionUs()
        +
        Returns the current media position in microseconds.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/MimeTypes.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/MimeTypes.html new file mode 100644 index 00000000..513edc03 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/MimeTypes.html @@ -0,0 +1,1245 @@ + + + + + +MimeTypes (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class MimeTypes

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.MimeTypes
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class MimeTypes
    +extends java.lang.Object
    +
    Defines common MIME types and helper methods.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isAudio

        +
        public static boolean isAudio(java.lang.String mimeType)
        +
        Whether the top-level type of mimeType is audio.
        +
        +
        Parameters:
        +
        mimeType - The mimeType to test.
        +
        Returns:
        +
        Whether the top level type is audio.
        +
        +
      • +
      + + + +
        +
      • +

        isVideo

        +
        public static boolean isVideo(java.lang.String mimeType)
        +
        Whether the top-level type of mimeType is video.
        +
        +
        Parameters:
        +
        mimeType - The mimeType to test.
        +
        Returns:
        +
        Whether the top level type is video.
        +
        +
      • +
      + + + +
        +
      • +

        isText

        +
        public static boolean isText(java.lang.String mimeType)
        +
        Whether the top-level type of mimeType is text.
        +
        +
        Parameters:
        +
        mimeType - The mimeType to test.
        +
        Returns:
        +
        Whether the top level type is text.
        +
        +
      • +
      + + + +
        +
      • +

        isApplication

        +
        public static boolean isApplication(java.lang.String mimeType)
        +
        Whether the top-level type of mimeType is application.
        +
        +
        Parameters:
        +
        mimeType - The mimeType to test.
        +
        Returns:
        +
        Whether the top level type is application.
        +
        +
      • +
      + + + +
        +
      • +

        getVideoMediaMimeType

        +
        public static java.lang.String getVideoMediaMimeType(java.lang.String codecs)
        +
        Derives a video sample mimeType from a codecs attribute.
        +
        +
        Parameters:
        +
        codecs - The codecs attribute.
        +
        Returns:
        +
        The derived video mimeType, or null if it could not be derived.
        +
        +
      • +
      + + + +
        +
      • +

        getAudioMediaMimeType

        +
        public static java.lang.String getAudioMediaMimeType(java.lang.String codecs)
        +
        Derives a audio sample mimeType from a codecs attribute.
        +
        +
        Parameters:
        +
        codecs - The codecs attribute.
        +
        Returns:
        +
        The derived audio mimeType, or null if it could not be derived.
        +
        +
      • +
      + + + +
        +
      • +

        getMediaMimeType

        +
        public static java.lang.String getMediaMimeType(java.lang.String codec)
        +
        Derives a mimeType from a codec identifier, as defined in RFC 6381.
        +
        +
        Parameters:
        +
        codec - The codec identifier to derive.
        +
        Returns:
        +
        The mimeType, or null if it could not be derived.
        +
        +
      • +
      + + + +
        +
      • +

        getTrackType

        +
        public static int getTrackType(java.lang.String mimeType)
        +
        Returns the C.TRACK_TYPE_* constant that corresponds to a specified mime type. + C.TRACK_TYPE_UNKNOWN if the mime type is not known or the mapping cannot be + established.
        +
        +
        Parameters:
        +
        mimeType - The mimeType.
        +
        Returns:
        +
        The C.TRACK_TYPE_* constant that corresponds to a specified mime type.
        +
        +
      • +
      + + + +
        +
      • +

        getTrackTypeOfCodec

        +
        public static int getTrackTypeOfCodec(java.lang.String codec)
        +
        Equivalent to getTrackType(getMediaMimeType(codec)).
        +
        +
        Parameters:
        +
        codec - The codec.
        +
        Returns:
        +
        The C.TRACK_TYPE_* constant that corresponds to a specified codec.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/NalUnitUtil.PpsData.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/NalUnitUtil.PpsData.html new file mode 100644 index 00000000..d418effb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/NalUnitUtil.PpsData.html @@ -0,0 +1,306 @@ + + + + + +NalUnitUtil.PpsData (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class NalUnitUtil.PpsData

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.NalUnitUtil.PpsData
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    NalUnitUtil
    +
    +
    +
    +
    public static final class NalUnitUtil.PpsData
    +extends java.lang.Object
    +
    Holds data parsed from a picture parameter set NAL unit.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PpsData(int picParameterSetId, + int seqParameterSetId, + boolean bottomFieldPicOrderInFramePresentFlag) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        picParameterSetId

        +
        public final int picParameterSetId
        +
      • +
      + + + +
        +
      • +

        seqParameterSetId

        +
        public final int seqParameterSetId
        +
      • +
      + + + +
        +
      • +

        bottomFieldPicOrderInFramePresentFlag

        +
        public final boolean bottomFieldPicOrderInFramePresentFlag
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PpsData

        +
        public PpsData(int picParameterSetId,
        +               int seqParameterSetId,
        +               boolean bottomFieldPicOrderInFramePresentFlag)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/NalUnitUtil.SpsData.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/NalUnitUtil.SpsData.html new file mode 100644 index 00000000..ba9371a0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/NalUnitUtil.SpsData.html @@ -0,0 +1,411 @@ + + + + + +NalUnitUtil.SpsData (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class NalUnitUtil.SpsData

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.NalUnitUtil.SpsData
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    NalUnitUtil
    +
    +
    +
    +
    public static final class NalUnitUtil.SpsData
    +extends java.lang.Object
    +
    Holds data parsed from a sequence parameter set NAL unit.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SpsData(int seqParameterSetId, + int width, + int height, + float pixelWidthAspectRatio, + boolean separateColorPlaneFlag, + boolean frameMbsOnlyFlag, + int frameNumLength, + int picOrderCountType, + int picOrderCntLsbLength, + boolean deltaPicOrderAlwaysZeroFlag) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        seqParameterSetId

        +
        public final int seqParameterSetId
        +
      • +
      + + + +
        +
      • +

        width

        +
        public final int width
        +
      • +
      + + + +
        +
      • +

        height

        +
        public final int height
        +
      • +
      + + + +
        +
      • +

        pixelWidthAspectRatio

        +
        public final float pixelWidthAspectRatio
        +
      • +
      + + + +
        +
      • +

        separateColorPlaneFlag

        +
        public final boolean separateColorPlaneFlag
        +
      • +
      + + + +
        +
      • +

        frameMbsOnlyFlag

        +
        public final boolean frameMbsOnlyFlag
        +
      • +
      + + + +
        +
      • +

        frameNumLength

        +
        public final int frameNumLength
        +
      • +
      + + + +
        +
      • +

        picOrderCountType

        +
        public final int picOrderCountType
        +
      • +
      + + + +
        +
      • +

        picOrderCntLsbLength

        +
        public final int picOrderCntLsbLength
        +
      • +
      + + + +
        +
      • +

        deltaPicOrderAlwaysZeroFlag

        +
        public final boolean deltaPicOrderAlwaysZeroFlag
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SpsData

        +
        public SpsData(int seqParameterSetId,
        +               int width,
        +               int height,
        +               float pixelWidthAspectRatio,
        +               boolean separateColorPlaneFlag,
        +               boolean frameMbsOnlyFlag,
        +               int frameNumLength,
        +               int picOrderCountType,
        +               int picOrderCntLsbLength,
        +               boolean deltaPicOrderAlwaysZeroFlag)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/NalUnitUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/NalUnitUtil.html new file mode 100644 index 00000000..a7692afa --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/NalUnitUtil.html @@ -0,0 +1,555 @@ + + + + + +NalUnitUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class NalUnitUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.NalUnitUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class NalUnitUtil
    +extends java.lang.Object
    +
    Utility methods for handling H.264/AVC and H.265/HEVC NAL units.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class NalUnitUtil.PpsData +
      Holds data parsed from a picture parameter set NAL unit.
      +
      static class NalUnitUtil.SpsData +
      Holds data parsed from a sequence parameter set NAL unit.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static float[]ASPECT_RATIO_IDC_VALUES +
      Aspect ratios indexed by aspect_ratio_idc, in H.264 and H.265 SPSs.
      +
      static intEXTENDED_SAR +
      Value for aspect_ratio_idc indicating an extended aspect ratio, in H.264 and H.265 SPSs.
      +
      static byte[]NAL_START_CODE +
      Four initial bytes that must prefix NAL units for decoding.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidclearPrefixFlags(boolean[] prefixFlags) +
      Clears prefix flags, as used by findNalUnit(byte[], int, int, boolean[]).
      +
      static voiddiscardToSps(java.nio.ByteBuffer data) +
      Discards data from the buffer up to the first SPS, where data.position() is interpreted + as the length of the buffer.
      +
      static intfindNalUnit(byte[] data, + int startOffset, + int endOffset, + boolean[] prefixFlags) +
      Finds the first NAL unit in data.
      +
      static intgetH265NalUnitType(byte[] data, + int offset) +
      Returns the type of the H.265 NAL unit in data that starts at offset.
      +
      static intgetNalUnitType(byte[] data, + int offset) +
      Returns the type of the NAL unit in data that starts at offset.
      +
      static NalUnitUtil.PpsDataparsePpsNalUnit(byte[] nalData, + int nalOffset, + int nalLimit) +
      Parses a PPS NAL unit using the syntax defined in ITU-T Recommendation H.264 (2013) subsection + 7.3.2.2.
      +
      static NalUnitUtil.SpsDataparseSpsNalUnit(byte[] nalData, + int nalOffset, + int nalLimit) +
      Parses an SPS NAL unit using the syntax defined in ITU-T Recommendation H.264 (2013) subsection + 7.3.2.1.1.
      +
      static intunescapeStream(byte[] data, + int limit) +
      Unescapes data up to the specified limit, replacing occurrences of [0, 0, 3] with + [0, 0].
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NAL_START_CODE

        +
        public static final byte[] NAL_START_CODE
        +
        Four initial bytes that must prefix NAL units for decoding.
        +
      • +
      + + + +
        +
      • +

        EXTENDED_SAR

        +
        public static final int EXTENDED_SAR
        +
        Value for aspect_ratio_idc indicating an extended aspect ratio, in H.264 and H.265 SPSs.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ASPECT_RATIO_IDC_VALUES

        +
        public static final float[] ASPECT_RATIO_IDC_VALUES
        +
        Aspect ratios indexed by aspect_ratio_idc, in H.264 and H.265 SPSs.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        unescapeStream

        +
        public static int unescapeStream(byte[] data,
        +                                 int limit)
        +
        Unescapes data up to the specified limit, replacing occurrences of [0, 0, 3] with + [0, 0]. The unescaped data is returned in-place, with the return value indicating its length. +

        + Executions of this method are mutually exclusive, so it should not be called with very large + buffers.

        +
        +
        Parameters:
        +
        data - The data to unescape.
        +
        limit - The limit (exclusive) of the data to unescape.
        +
        Returns:
        +
        The length of the unescaped data.
        +
        +
      • +
      + + + +
        +
      • +

        discardToSps

        +
        public static void discardToSps(java.nio.ByteBuffer data)
        +
        Discards data from the buffer up to the first SPS, where data.position() is interpreted + as the length of the buffer. +

        + When the method returns, data.position() will contain the new length of the buffer. If + the buffer is not empty it is guaranteed to start with an SPS.

        +
        +
        Parameters:
        +
        data - Buffer containing start code delimited NAL units.
        +
        +
      • +
      + + + +
        +
      • +

        getNalUnitType

        +
        public static int getNalUnitType(byte[] data,
        +                                 int offset)
        +
        Returns the type of the NAL unit in data that starts at offset.
        +
        +
        Parameters:
        +
        data - The data to search.
        +
        offset - The start offset of a NAL unit. Must lie between -3 (inclusive) and + data.length - 3 (exclusive).
        +
        Returns:
        +
        The type of the unit.
        +
        +
      • +
      + + + +
        +
      • +

        getH265NalUnitType

        +
        public static int getH265NalUnitType(byte[] data,
        +                                     int offset)
        +
        Returns the type of the H.265 NAL unit in data that starts at offset.
        +
        +
        Parameters:
        +
        data - The data to search.
        +
        offset - The start offset of a NAL unit. Must lie between -3 (inclusive) and + data.length - 3 (exclusive).
        +
        Returns:
        +
        The type of the unit.
        +
        +
      • +
      + + + +
        +
      • +

        parseSpsNalUnit

        +
        public static NalUnitUtil.SpsData parseSpsNalUnit(byte[] nalData,
        +                                                  int nalOffset,
        +                                                  int nalLimit)
        +
        Parses an SPS NAL unit using the syntax defined in ITU-T Recommendation H.264 (2013) subsection + 7.3.2.1.1.
        +
        +
        Parameters:
        +
        nalData - A buffer containing escaped SPS data.
        +
        nalOffset - The offset of the NAL unit header in nalData.
        +
        nalLimit - The limit of the NAL unit in nalData.
        +
        Returns:
        +
        A parsed representation of the SPS data.
        +
        +
      • +
      + + + +
        +
      • +

        parsePpsNalUnit

        +
        public static NalUnitUtil.PpsData parsePpsNalUnit(byte[] nalData,
        +                                                  int nalOffset,
        +                                                  int nalLimit)
        +
        Parses a PPS NAL unit using the syntax defined in ITU-T Recommendation H.264 (2013) subsection + 7.3.2.2.
        +
        +
        Parameters:
        +
        nalData - A buffer containing escaped PPS data.
        +
        nalOffset - The offset of the NAL unit header in nalData.
        +
        nalLimit - The limit of the NAL unit in nalData.
        +
        Returns:
        +
        A parsed representation of the PPS data.
        +
        +
      • +
      + + + +
        +
      • +

        findNalUnit

        +
        public static int findNalUnit(byte[] data,
        +                              int startOffset,
        +                              int endOffset,
        +                              boolean[] prefixFlags)
        +
        Finds the first NAL unit in data. +

        + If prefixFlags is null then the first three bytes of a NAL unit must be entirely + contained within the part of the array being searched in order for it to be found. +

        + When prefixFlags is non-null, this method supports finding NAL units whose first four + bytes span data arrays passed to successive calls. To use this feature, pass the same + prefixFlags parameter to successive calls. State maintained in this parameter enables + the detection of such NAL units. Note that when using this feature, the return value may be 3, + 2 or 1 less than startOffset, to indicate a NAL unit starting 3, 2 or 1 bytes before + the first byte in the current array.

        +
        +
        Parameters:
        +
        data - The data to search.
        +
        startOffset - The offset (inclusive) in the data to start the search.
        +
        endOffset - The offset (exclusive) in the data to end the search.
        +
        prefixFlags - A boolean array whose first three elements are used to store the state + required to detect NAL units where the NAL unit prefix spans array boundaries. The array + must be at least 3 elements long.
        +
        Returns:
        +
        The offset of the NAL unit, or endOffset if a NAL unit was not found.
        +
        +
      • +
      + + + +
        +
      • +

        clearPrefixFlags

        +
        public static void clearPrefixFlags(boolean[] prefixFlags)
        +
        Clears prefix flags, as used by findNalUnit(byte[], int, int, boolean[]).
        +
        +
        Parameters:
        +
        prefixFlags - The flags to clear.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ParsableBitArray.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ParsableBitArray.html new file mode 100644 index 00000000..f1552e9d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ParsableBitArray.html @@ -0,0 +1,494 @@ + + + + + +ParsableBitArray (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class ParsableBitArray

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.ParsableBitArray
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class ParsableBitArray
    +extends java.lang.Object
    +
    Wraps a byte array, providing methods that allow it to be read as a bitstream.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      byte[]data 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      ParsableBitArray() +
      Creates a new instance that initially has no backing data.
      +
      ParsableBitArray(byte[] data) +
      Creates a new instance that wraps an existing array.
      +
      ParsableBitArray(byte[] data, + int limit) +
      Creates a new instance that wraps an existing array.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intbitsLeft() +
      Returns the number of bits yet to be read.
      +
      intgetPosition() +
      Returns the current bit offset.
      +
      booleanreadBit() +
      Reads a single bit.
      +
      intreadBits(int numBits) +
      Reads up to 32 bits.
      +
      voidreset(byte[] data) +
      Updates the instance to wrap data, and resets the position to zero.
      +
      voidreset(byte[] data, + int limit) +
      Updates the instance to wrap data, and resets the position to zero.
      +
      voidsetPosition(int position) +
      Sets the current bit offset.
      +
      voidskipBits(int n) +
      Skips bits and moves current reading position forward.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        data

        +
        public byte[] data
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ParsableBitArray

        +
        public ParsableBitArray()
        +
        Creates a new instance that initially has no backing data.
        +
      • +
      + + + +
        +
      • +

        ParsableBitArray

        +
        public ParsableBitArray(byte[] data)
        +
        Creates a new instance that wraps an existing array.
        +
        +
        Parameters:
        +
        data - The data to wrap.
        +
        +
      • +
      + + + +
        +
      • +

        ParsableBitArray

        +
        public ParsableBitArray(byte[] data,
        +                        int limit)
        +
        Creates a new instance that wraps an existing array.
        +
        +
        Parameters:
        +
        data - The data to wrap.
        +
        limit - The limit in bytes.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        reset

        +
        public void reset(byte[] data)
        +
        Updates the instance to wrap data, and resets the position to zero.
        +
        +
        Parameters:
        +
        data - The array to wrap.
        +
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public void reset(byte[] data,
        +                  int limit)
        +
        Updates the instance to wrap data, and resets the position to zero.
        +
        +
        Parameters:
        +
        data - The array to wrap.
        +
        limit - The limit in bytes.
        +
        +
      • +
      + + + +
        +
      • +

        bitsLeft

        +
        public int bitsLeft()
        +
        Returns the number of bits yet to be read.
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public int getPosition()
        +
        Returns the current bit offset.
        +
      • +
      + + + +
        +
      • +

        setPosition

        +
        public void setPosition(int position)
        +
        Sets the current bit offset.
        +
        +
        Parameters:
        +
        position - The position to set.
        +
        +
      • +
      + + + +
        +
      • +

        skipBits

        +
        public void skipBits(int n)
        +
        Skips bits and moves current reading position forward.
        +
        +
        Parameters:
        +
        n - The number of bits to skip.
        +
        +
      • +
      + + + +
        +
      • +

        readBit

        +
        public boolean readBit()
        +
        Reads a single bit.
        +
        +
        Returns:
        +
        Whether the bit is set.
        +
        +
      • +
      + + + +
        +
      • +

        readBits

        +
        public int readBits(int numBits)
        +
        Reads up to 32 bits.
        +
        +
        Parameters:
        +
        numBits - The number of bits to read.
        +
        Returns:
        +
        An integer whose bottom n bits hold the read data.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ParsableByteArray.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ParsableByteArray.html new file mode 100644 index 00000000..7e4cbac2 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ParsableByteArray.html @@ -0,0 +1,1092 @@ + + + + + +ParsableByteArray (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class ParsableByteArray

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.ParsableByteArray
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class ParsableByteArray
    +extends java.lang.Object
    +
    Wraps a byte array, providing a set of methods for parsing data from it. Numerical values are + parsed with the assumption that their constituent bytes are in big endian order.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      byte[]data 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      ParsableByteArray() +
      Creates a new instance that initially has no backing data.
      +
      ParsableByteArray(byte[] data) +
      Creates a new instance wrapping data, and sets the limit to data.length.
      +
      ParsableByteArray(byte[] data, + int limit) +
      Creates a new instance that wraps an existing array.
      +
      ParsableByteArray(int limit) +
      Creates a new instance with limit bytes and sets the limit.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intbytesLeft() +
      Returns the number of bytes yet to be read.
      +
      intcapacity() +
      Returns the capacity of the array, which may be larger than the limit.
      +
      intgetPosition() +
      Returns the current offset in the array, in bytes.
      +
      intlimit() +
      Returns the limit.
      +
      intpeekUnsignedByte() +
      Peeks at the next byte as an unsigned value.
      +
      voidreadBytes(byte[] buffer, + int offset, + int length) +
      Reads the next length bytes into buffer at offset.
      +
      voidreadBytes(java.nio.ByteBuffer buffer, + int length) +
      Reads the next length bytes into buffer.
      +
      voidreadBytes(ParsableBitArray bitArray, + int length) +
      Reads the next length bytes into bitArray, and resets the position of + bitArray to zero.
      +
      doublereadDouble() +
      Reads the next eight bytes as a 64-bit floating point value.
      +
      floatreadFloat() +
      Reads the next four bytes as a 32-bit floating point value.
      +
      intreadInt() +
      Reads the next four bytes as a signed value
      +
      java.lang.StringreadLine() +
      Reads a line of text.
      +
      intreadLittleEndianInt() +
      Reads the next four bytes as an signed value in little endian order.
      +
      intreadLittleEndianInt24() +
      Reads the next three bytes as a signed value in little endian order.
      +
      longreadLittleEndianLong() +
      Reads the next eight bytes as a signed value in little endian order.
      +
      shortreadLittleEndianShort() +
      Reads the next two bytes as a signed value.
      +
      longreadLittleEndianUnsignedInt() +
      Reads the next four bytes as an unsigned value in little endian order.
      +
      intreadLittleEndianUnsignedInt24() +
      Reads the next three bytes as an unsigned value in little endian order.
      +
      intreadLittleEndianUnsignedIntToInt() +
      Reads the next four bytes as a little endian unsigned integer into an integer, if the top bit + is a zero.
      +
      intreadLittleEndianUnsignedShort() +
      Reads the next two bytes as an unsigned value.
      +
      longreadLong() +
      Reads the next eight bytes as a signed value.
      +
      shortreadShort() +
      Reads the next two bytes as an signed value.
      +
      java.lang.StringreadString(int length) +
      Reads the next length bytes as UTF-8 characters.
      +
      java.lang.StringreadString(int length, + java.nio.charset.Charset charset) +
      Reads the next length bytes as characters in the specified Charset.
      +
      intreadSynchSafeInt() +
      Reads a Synchsafe integer.
      +
      intreadUnsignedByte() +
      Reads the next byte as an unsigned value.
      +
      intreadUnsignedFixedPoint1616() +
      Reads the next four bytes, returning the integer portion of the fixed point 16.16 integer.
      +
      longreadUnsignedInt() +
      Reads the next four bytes as an unsigned value.
      +
      intreadUnsignedInt24() +
      Reads the next three bytes as an unsigned value.
      +
      intreadUnsignedIntToInt() +
      Reads the next four bytes as an unsigned integer into an integer, if the top bit is a zero.
      +
      longreadUnsignedLongToLong() +
      Reads the next eight bytes as an unsigned long into a long, if the top bit is a zero.
      +
      intreadUnsignedShort() +
      Reads the next two bytes as an unsigned value.
      +
      longreadUtf8EncodedLong() +
      Reads a long value encoded by UTF-8 encoding
      +
      voidreset() +
      Sets the position and limit to zero.
      +
      voidreset(byte[] data, + int limit) +
      Updates the instance to wrap data, and resets the position to zero.
      +
      voidreset(int limit) +
      Resets the position to zero and the limit to the specified value.
      +
      voidsetLimit(int limit) +
      Sets the limit.
      +
      voidsetPosition(int position) +
      Sets the reading offset in the array.
      +
      voidskipBytes(int bytes) +
      Moves the reading offset by bytes.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        data

        +
        public byte[] data
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ParsableByteArray

        +
        public ParsableByteArray()
        +
        Creates a new instance that initially has no backing data.
        +
      • +
      + + + +
        +
      • +

        ParsableByteArray

        +
        public ParsableByteArray(int limit)
        +
        Creates a new instance with limit bytes and sets the limit.
        +
        +
        Parameters:
        +
        limit - The limit to set.
        +
        +
      • +
      + + + +
        +
      • +

        ParsableByteArray

        +
        public ParsableByteArray(byte[] data)
        +
        Creates a new instance wrapping data, and sets the limit to data.length.
        +
        +
        Parameters:
        +
        data - The array to wrap.
        +
        +
      • +
      + + + +
        +
      • +

        ParsableByteArray

        +
        public ParsableByteArray(byte[] data,
        +                         int limit)
        +
        Creates a new instance that wraps an existing array.
        +
        +
        Parameters:
        +
        data - The data to wrap.
        +
        limit - The limit to set.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        reset

        +
        public void reset(int limit)
        +
        Resets the position to zero and the limit to the specified value. If the limit exceeds the + capacity, data is replaced with a new array of sufficient size.
        +
        +
        Parameters:
        +
        limit - The limit to set.
        +
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public void reset(byte[] data,
        +                  int limit)
        +
        Updates the instance to wrap data, and resets the position to zero.
        +
        +
        Parameters:
        +
        data - The array to wrap.
        +
        limit - The limit to set.
        +
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public void reset()
        +
        Sets the position and limit to zero.
        +
      • +
      + + + +
        +
      • +

        bytesLeft

        +
        public int bytesLeft()
        +
        Returns the number of bytes yet to be read.
        +
      • +
      + + + +
        +
      • +

        limit

        +
        public int limit()
        +
        Returns the limit.
        +
      • +
      + + + +
        +
      • +

        setLimit

        +
        public void setLimit(int limit)
        +
        Sets the limit.
        +
        +
        Parameters:
        +
        limit - The limit to set.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public int getPosition()
        +
        Returns the current offset in the array, in bytes.
        +
      • +
      + + + +
        +
      • +

        capacity

        +
        public int capacity()
        +
        Returns the capacity of the array, which may be larger than the limit.
        +
      • +
      + + + +
        +
      • +

        setPosition

        +
        public void setPosition(int position)
        +
        Sets the reading offset in the array.
        +
        +
        Parameters:
        +
        position - Byte offset in the array from which to read.
        +
        Throws:
        +
        java.lang.IllegalArgumentException - Thrown if the new position is neither in nor at the end of the + array.
        +
        +
      • +
      + + + +
        +
      • +

        skipBytes

        +
        public void skipBytes(int bytes)
        +
        Moves the reading offset by bytes.
        +
        +
        Parameters:
        +
        bytes - The number of bytes to skip.
        +
        Throws:
        +
        java.lang.IllegalArgumentException - Thrown if the new position is neither in nor at the end of the + array.
        +
        +
      • +
      + + + +
        +
      • +

        readBytes

        +
        public void readBytes(ParsableBitArray bitArray,
        +                      int length)
        +
        Reads the next length bytes into bitArray, and resets the position of + bitArray to zero.
        +
        +
        Parameters:
        +
        bitArray - The ParsableBitArray into which the bytes should be read.
        +
        length - The number of bytes to write.
        +
        +
      • +
      + + + +
        +
      • +

        readBytes

        +
        public void readBytes(byte[] buffer,
        +                      int offset,
        +                      int length)
        +
        Reads the next length bytes into buffer at offset.
        +
        +
        Parameters:
        +
        buffer - The array into which the read data should be written.
        +
        offset - The offset in buffer at which the read data should be written.
        +
        length - The number of bytes to read.
        +
        See Also:
        +
        System.arraycopy(Object, int, Object, int, int)
        +
        +
      • +
      + + + +
        +
      • +

        readBytes

        +
        public void readBytes(java.nio.ByteBuffer buffer,
        +                      int length)
        +
        Reads the next length bytes into buffer.
        +
        +
        Parameters:
        +
        buffer - The ByteBuffer into which the read data should be written.
        +
        length - The number of bytes to read.
        +
        See Also:
        +
        ByteBuffer.put(byte[], int, int)
        +
        +
      • +
      + + + +
        +
      • +

        peekUnsignedByte

        +
        public int peekUnsignedByte()
        +
        Peeks at the next byte as an unsigned value.
        +
      • +
      + + + +
        +
      • +

        readUnsignedByte

        +
        public int readUnsignedByte()
        +
        Reads the next byte as an unsigned value.
        +
      • +
      + + + +
        +
      • +

        readUnsignedShort

        +
        public int readUnsignedShort()
        +
        Reads the next two bytes as an unsigned value.
        +
      • +
      + + + +
        +
      • +

        readLittleEndianUnsignedShort

        +
        public int readLittleEndianUnsignedShort()
        +
        Reads the next two bytes as an unsigned value.
        +
      • +
      + + + +
        +
      • +

        readShort

        +
        public short readShort()
        +
        Reads the next two bytes as an signed value.
        +
      • +
      + + + +
        +
      • +

        readLittleEndianShort

        +
        public short readLittleEndianShort()
        +
        Reads the next two bytes as a signed value.
        +
      • +
      + + + +
        +
      • +

        readUnsignedInt24

        +
        public int readUnsignedInt24()
        +
        Reads the next three bytes as an unsigned value.
        +
      • +
      + + + +
        +
      • +

        readLittleEndianInt24

        +
        public int readLittleEndianInt24()
        +
        Reads the next three bytes as a signed value in little endian order.
        +
      • +
      + + + +
        +
      • +

        readLittleEndianUnsignedInt24

        +
        public int readLittleEndianUnsignedInt24()
        +
        Reads the next three bytes as an unsigned value in little endian order.
        +
      • +
      + + + +
        +
      • +

        readUnsignedInt

        +
        public long readUnsignedInt()
        +
        Reads the next four bytes as an unsigned value.
        +
      • +
      + + + +
        +
      • +

        readLittleEndianUnsignedInt

        +
        public long readLittleEndianUnsignedInt()
        +
        Reads the next four bytes as an unsigned value in little endian order.
        +
      • +
      + + + +
        +
      • +

        readInt

        +
        public int readInt()
        +
        Reads the next four bytes as a signed value
        +
      • +
      + + + +
        +
      • +

        readLittleEndianInt

        +
        public int readLittleEndianInt()
        +
        Reads the next four bytes as an signed value in little endian order.
        +
      • +
      + + + +
        +
      • +

        readLong

        +
        public long readLong()
        +
        Reads the next eight bytes as a signed value.
        +
      • +
      + + + +
        +
      • +

        readLittleEndianLong

        +
        public long readLittleEndianLong()
        +
        Reads the next eight bytes as a signed value in little endian order.
        +
      • +
      + + + +
        +
      • +

        readUnsignedFixedPoint1616

        +
        public int readUnsignedFixedPoint1616()
        +
        Reads the next four bytes, returning the integer portion of the fixed point 16.16 integer.
        +
      • +
      + + + +
        +
      • +

        readSynchSafeInt

        +
        public int readSynchSafeInt()
        +
        Reads a Synchsafe integer. +

        + Synchsafe integers keep the highest bit of every byte zeroed. A 32 bit synchsafe integer can + store 28 bits of information.

        +
        +
        Returns:
        +
        The parsed value.
        +
        +
      • +
      + + + +
        +
      • +

        readUnsignedIntToInt

        +
        public int readUnsignedIntToInt()
        +
        Reads the next four bytes as an unsigned integer into an integer, if the top bit is a zero.
        +
        +
        Throws:
        +
        java.lang.IllegalStateException - Thrown if the top bit of the input data is set.
        +
        +
      • +
      + + + +
        +
      • +

        readLittleEndianUnsignedIntToInt

        +
        public int readLittleEndianUnsignedIntToInt()
        +
        Reads the next four bytes as a little endian unsigned integer into an integer, if the top bit + is a zero.
        +
        +
        Throws:
        +
        java.lang.IllegalStateException - Thrown if the top bit of the input data is set.
        +
        +
      • +
      + + + +
        +
      • +

        readUnsignedLongToLong

        +
        public long readUnsignedLongToLong()
        +
        Reads the next eight bytes as an unsigned long into a long, if the top bit is a zero.
        +
        +
        Throws:
        +
        java.lang.IllegalStateException - Thrown if the top bit of the input data is set.
        +
        +
      • +
      + + + +
        +
      • +

        readFloat

        +
        public float readFloat()
        +
        Reads the next four bytes as a 32-bit floating point value.
        +
      • +
      + + + +
        +
      • +

        readDouble

        +
        public double readDouble()
        +
        Reads the next eight bytes as a 64-bit floating point value.
        +
      • +
      + + + +
        +
      • +

        readString

        +
        public java.lang.String readString(int length)
        +
        Reads the next length bytes as UTF-8 characters.
        +
        +
        Parameters:
        +
        length - The number of bytes to read.
        +
        Returns:
        +
        The string encoded by the bytes.
        +
        +
      • +
      + + + +
        +
      • +

        readString

        +
        public java.lang.String readString(int length,
        +                                   java.nio.charset.Charset charset)
        +
        Reads the next length bytes as characters in the specified Charset.
        +
        +
        Parameters:
        +
        length - The number of bytes to read.
        +
        charset - The character set of the encoded characters.
        +
        Returns:
        +
        The string encoded by the bytes in the specified character set.
        +
        +
      • +
      + + + +
        +
      • +

        readLine

        +
        public java.lang.String readLine()
        +
        Reads a line of text. +

        + A line is considered to be terminated by any one of a carriage return ('\r'), a line feed + ('\n'), or a carriage return followed immediately by a line feed ('\r\n'). The system's default + charset (UTF-8) is used.

        +
        +
        Returns:
        +
        A String containing the contents of the line, not including any line-termination + characters, or null if the end of the stream has been reached.
        +
        +
      • +
      + + + +
        +
      • +

        readUtf8EncodedLong

        +
        public long readUtf8EncodedLong()
        +
        Reads a long value encoded by UTF-8 encoding
        +
        +
        Returns:
        +
        Decoded long value
        +
        Throws:
        +
        java.lang.NumberFormatException - if there is a problem with decoding
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ParsableNalUnitBitArray.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ParsableNalUnitBitArray.html new file mode 100644 index 00000000..d8087890 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/ParsableNalUnitBitArray.html @@ -0,0 +1,443 @@ + + + + + +ParsableNalUnitBitArray (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class ParsableNalUnitBitArray

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.ParsableNalUnitBitArray
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class ParsableNalUnitBitArray
    +extends java.lang.Object
    +
    Wraps a byte array, providing methods that allow it to be read as a NAL unit bitstream. +

    + Whenever the byte sequence [0, 0, 3] appears in the wrapped byte array, it is treated as [0, 0] + for all reading/skipping operations, which makes the bitstream appear to be unescaped.

    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ParsableNalUnitBitArray(byte[] data, + int offset, + int limit) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleancanReadBits(int n) +
      Returns whether it's possible to read n bits starting from the current offset.
      +
      booleancanReadExpGolombCodedNum() +
      Returns whether it is possible to read an Exp-Golomb-coded integer starting from the current + offset.
      +
      booleanreadBit() +
      Reads a single bit.
      +
      intreadBits(int numBits) +
      Reads up to 32 bits.
      +
      intreadSignedExpGolombCodedInt() +
      Reads an signed Exp-Golomb-coded format integer.
      +
      intreadUnsignedExpGolombCodedInt() +
      Reads an unsigned Exp-Golomb-coded format integer.
      +
      voidreset(byte[] data, + int offset, + int limit) +
      Resets the wrapped data, limit and offset.
      +
      voidskipBits(int n) +
      Skips bits and moves current reading position forward.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ParsableNalUnitBitArray

        +
        public ParsableNalUnitBitArray(byte[] data,
        +                               int offset,
        +                               int limit)
        +
        +
        Parameters:
        +
        data - The data to wrap.
        +
        offset - The byte offset in data to start reading from.
        +
        limit - The byte offset of the end of the bitstream in data.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        reset

        +
        public void reset(byte[] data,
        +                  int offset,
        +                  int limit)
        +
        Resets the wrapped data, limit and offset.
        +
        +
        Parameters:
        +
        data - The data to wrap.
        +
        offset - The byte offset in data to start reading from.
        +
        limit - The byte offset of the end of the bitstream in data.
        +
        +
      • +
      + + + +
        +
      • +

        skipBits

        +
        public void skipBits(int n)
        +
        Skips bits and moves current reading position forward.
        +
        +
        Parameters:
        +
        n - The number of bits to skip.
        +
        +
      • +
      + + + +
        +
      • +

        canReadBits

        +
        public boolean canReadBits(int n)
        +
        Returns whether it's possible to read n bits starting from the current offset. The + offset is not modified.
        +
        +
        Parameters:
        +
        n - The number of bits.
        +
        Returns:
        +
        Whether it is possible to read n bits.
        +
        +
      • +
      + + + +
        +
      • +

        readBit

        +
        public boolean readBit()
        +
        Reads a single bit.
        +
        +
        Returns:
        +
        Whether the bit is set.
        +
        +
      • +
      + + + +
        +
      • +

        readBits

        +
        public int readBits(int numBits)
        +
        Reads up to 32 bits.
        +
        +
        Parameters:
        +
        numBits - The number of bits to read.
        +
        Returns:
        +
        An integer whose bottom n bits hold the read data.
        +
        +
      • +
      + + + +
        +
      • +

        canReadExpGolombCodedNum

        +
        public boolean canReadExpGolombCodedNum()
        +
        Returns whether it is possible to read an Exp-Golomb-coded integer starting from the current + offset. The offset is not modified.
        +
        +
        Returns:
        +
        Whether it is possible to read an Exp-Golomb-coded integer.
        +
        +
      • +
      + + + +
        +
      • +

        readUnsignedExpGolombCodedInt

        +
        public int readUnsignedExpGolombCodedInt()
        +
        Reads an unsigned Exp-Golomb-coded format integer.
        +
        +
        Returns:
        +
        The value of the parsed Exp-Golomb-coded integer.
        +
        +
      • +
      + + + +
        +
      • +

        readSignedExpGolombCodedInt

        +
        public int readSignedExpGolombCodedInt()
        +
        Reads an signed Exp-Golomb-coded format integer.
        +
        +
        Returns:
        +
        The value of the parsed Exp-Golomb-coded integer.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Predicate.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Predicate.html new file mode 100644 index 00000000..be573787 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Predicate.html @@ -0,0 +1,235 @@ + + + + + +Predicate (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Interface Predicate<T>

+
+
+
+
    +
  • +
    +
    Type Parameters:
    +
    T - The input type of the predicate.
    +
    +
    +
    +
    public interface Predicate<T>
    +
    Determines a true of false value for a given input.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        evaluate

        +
        boolean evaluate(T input)
        +
        Evaluates an input.
        +
        +
        Parameters:
        +
        input - The input to evaluate.
        +
        Returns:
        +
        The evaluated result.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/PriorityHandlerThread.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/PriorityHandlerThread.html new file mode 100644 index 00000000..1c259bfc --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/PriorityHandlerThread.html @@ -0,0 +1,341 @@ + + + + + +PriorityHandlerThread (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class PriorityHandlerThread

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Thread
    • +
    • +
        +
      • android.os.HandlerThread
      • +
      • +
          +
        • com.google.android.exoplayer2.util.PriorityHandlerThread
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public final class PriorityHandlerThread
    +extends android.os.HandlerThread
    +
    A HandlerThread with a specified process priority.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.lang.Thread

        +java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class java.lang.Thread

        +MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PriorityHandlerThread(java.lang.String name, + int priority) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidrun() 
      +
        +
      • + + +

        Methods inherited from class android.os.HandlerThread

        +getLooper, getThreadId, onLooperPrepared, quit, quitSafely
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Thread

        +activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PriorityHandlerThread

        +
        public PriorityHandlerThread(java.lang.String name,
        +                             int priority)
        +
        +
        Parameters:
        +
        name - The name of the thread.
        +
        priority - The priority level. See Process.setThreadPriority(int) for details.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        Overrides:
        +
        run in class android.os.HandlerThread
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/PriorityTaskManager.PriorityTooLowException.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/PriorityTaskManager.PriorityTooLowException.html new file mode 100644 index 00000000..a703d58e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/PriorityTaskManager.PriorityTooLowException.html @@ -0,0 +1,272 @@ + + + + + +PriorityTaskManager.PriorityTooLowException (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class PriorityTaskManager.PriorityTooLowException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.io.IOException
        • +
        • +
            +
          • com.google.android.exoplayer2.util.PriorityTaskManager.PriorityTooLowException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    Enclosing class:
    +
    PriorityTaskManager
    +
    +
    +
    +
    public static class PriorityTaskManager.PriorityTooLowException
    +extends java.io.IOException
    +
    Thrown when task attempts to proceed when another registered task has a higher priority.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PriorityTooLowException(int priority, + int highestPriority) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PriorityTooLowException

        +
        public PriorityTooLowException(int priority,
        +                               int highestPriority)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/PriorityTaskManager.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/PriorityTaskManager.html new file mode 100644 index 00000000..9a8f0c0d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/PriorityTaskManager.html @@ -0,0 +1,357 @@ + + + + + +PriorityTaskManager (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class PriorityTaskManager

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.PriorityTaskManager
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class PriorityTaskManager
    +extends java.lang.Object
    +
    Allows tasks with associated priorities to control how they proceed relative to one another. +

    + A task should call add(int) to register with the manager and remove(int) to + unregister. A registered task will prevent tasks of lower priority from proceeding, and should + call proceed(int), proceedNonBlocking(int) or proceedOrThrow(int) each + time it wishes to check whether it is itself allowed to proceed.

    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class PriorityTaskManager.PriorityTooLowException +
      Thrown when task attempts to proceed when another registered task has a higher priority.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidadd(int priority) +
      Register a new task.
      +
      voidproceed(int priority) +
      Blocks until the task is allowed to proceed.
      +
      booleanproceedNonBlocking(int priority) +
      A non-blocking variant of proceed(int).
      +
      voidproceedOrThrow(int priority) +
      A throwing variant of proceed(int).
      +
      voidremove(int priority) +
      Unregister a task.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        add

        +
        public void add(int priority)
        +
        Register a new task. The task must call remove(int) when done.
        +
        +
        Parameters:
        +
        priority - The priority of the task.
        +
        +
      • +
      + + + +
        +
      • +

        proceed

        +
        public void proceed(int priority)
        +             throws java.lang.InterruptedException
        +
        Blocks until the task is allowed to proceed.
        +
        +
        Parameters:
        +
        priority - The priority of the task.
        +
        Throws:
        +
        java.lang.InterruptedException - If the thread is interrupted.
        +
        +
      • +
      + + + +
        +
      • +

        proceedNonBlocking

        +
        public boolean proceedNonBlocking(int priority)
        +
        A non-blocking variant of proceed(int).
        +
        +
        Parameters:
        +
        priority - The priority of the task.
        +
        Returns:
        +
        Whether the task is allowed to proceed.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        remove

        +
        public void remove(int priority)
        +
        Unregister a task.
        +
        +
        Parameters:
        +
        priority - The priority of the task.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/SlidingPercentile.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/SlidingPercentile.html new file mode 100644 index 00000000..fb63cedb --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/SlidingPercentile.html @@ -0,0 +1,318 @@ + + + + + +SlidingPercentile (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class SlidingPercentile

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.SlidingPercentile
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class SlidingPercentile
    +extends java.lang.Object
    +
    Calculate any percentile over a sliding window of weighted values. A maximum weight is + configured. Once the total weight of the values reaches the maximum weight, the oldest value is + reduced in weight until it reaches zero and is removed. This maintains a constant total weight, + equal to the maximum allowed, at the steady state. +

    + This class can be used for bandwidth estimation based on a sliding window of past transfer rate + observations. This is an alternative to sliding mean and exponential averaging which suffer from + susceptibility to outliers and slow adaptation to step functions.

    +
    +
    See Also:
    +
    Wiki: Moving average, +Wiki: Selection algorithm
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SlidingPercentile(int maxWeight) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddSample(int weight, + float value) +
      Adds a new weighted value.
      +
      floatgetPercentile(float percentile) +
      Computes a percentile by integration.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SlidingPercentile

        +
        public SlidingPercentile(int maxWeight)
        +
        +
        Parameters:
        +
        maxWeight - The maximum weight.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addSample

        +
        public void addSample(int weight,
        +                      float value)
        +
        Adds a new weighted value.
        +
        +
        Parameters:
        +
        weight - The weight of the new observation.
        +
        value - The value of the new observation.
        +
        +
      • +
      + + + +
        +
      • +

        getPercentile

        +
        public float getPercentile(float percentile)
        +
        Computes a percentile by integration.
        +
        +
        Parameters:
        +
        percentile - The desired percentile, expressed as a fraction in the range (0,1].
        +
        Returns:
        +
        The requested percentile value or Float.NaN if no samples have been added.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/StandaloneMediaClock.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/StandaloneMediaClock.html new file mode 100644 index 00000000..4b1ec505 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/StandaloneMediaClock.html @@ -0,0 +1,333 @@ + + + + + +StandaloneMediaClock (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class StandaloneMediaClock

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.StandaloneMediaClock
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MediaClock
    +
    +
    +
    +
    public final class StandaloneMediaClock
    +extends java.lang.Object
    +implements MediaClock
    +
    A standalone MediaClock. The clock can be started, stopped and its time can be set and + retrieved. When started, this clock is based on SystemClock.elapsedRealtime().
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longgetPositionUs() +
      Returns the current media position in microseconds.
      +
      voidsetPositionUs(long timeUs) 
      voidstart() +
      Starts the clock.
      +
      voidstop() +
      Stops the clock.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StandaloneMediaClock

        +
        public StandaloneMediaClock()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        start

        +
        public void start()
        +
        Starts the clock. Does nothing if the clock is already started.
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public void stop()
        +
        Stops the clock. Does nothing if the clock is already stopped.
        +
      • +
      + + + +
        +
      • +

        setPositionUs

        +
        public void setPositionUs(long timeUs)
        +
        +
        Parameters:
        +
        timeUs - The position to set in microseconds.
        +
        +
      • +
      + + + +
        +
      • +

        getPositionUs

        +
        public long getPositionUs()
        +
        Description copied from interface: MediaClock
        +
        Returns the current media position in microseconds.
        +
        +
        Specified by:
        +
        getPositionUs in interface MediaClock
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/SystemClock.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/SystemClock.html new file mode 100644 index 00000000..dc366c9c --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/SystemClock.html @@ -0,0 +1,285 @@ + + + + + +SystemClock (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class SystemClock

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.SystemClock
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Clock
    +
    +
    +
    +
    public final class SystemClock
    +extends java.lang.Object
    +implements Clock
    +
    The standard implementation of Clock.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SystemClock() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longelapsedRealtime() +
      Returns SystemClock.elapsedRealtime().
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SystemClock

        +
        public SystemClock()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        elapsedRealtime

        +
        public long elapsedRealtime()
        +
        Description copied from interface: Clock
        +
        Returns SystemClock.elapsedRealtime().
        +
        +
        Specified by:
        +
        elapsedRealtime in interface Clock
        +
        Returns:
        +
        Elapsed milliseconds since boot.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/TraceUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/TraceUtil.html new file mode 100644 index 00000000..aed66cd6 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/TraceUtil.html @@ -0,0 +1,266 @@ + + + + + +TraceUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class TraceUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.TraceUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class TraceUtil
    +extends java.lang.Object
    +
    Calls through to Trace methods on supported API levels.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidbeginSection(java.lang.String sectionName) +
      Writes a trace message to indicate that a given section of code has begun.
      +
      static voidendSection() +
      Writes a trace message to indicate that a given section of code has ended.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        beginSection

        +
        public static void beginSection(java.lang.String sectionName)
        +
        Writes a trace message to indicate that a given section of code has begun.
        +
        +
        Parameters:
        +
        sectionName - The name of the code section to appear in the trace. This may be at most 127 + Unicode code units long.
        +
        See Also:
        +
        Trace.beginSection(String)
        +
        +
      • +
      + + + +
        +
      • +

        endSection

        +
        public static void endSection()
        +
        Writes a trace message to indicate that a given section of code has ended.
        +
        +
        See Also:
        +
        Trace.endSection()
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/UriUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/UriUtil.html new file mode 100644 index 00000000..33c871c9 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/UriUtil.html @@ -0,0 +1,271 @@ + + + + + +UriUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class UriUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.UriUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class UriUtil
    +extends java.lang.Object
    +
    Utility methods for manipulating URIs.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static java.lang.Stringresolve(java.lang.String baseUri, + java.lang.String referenceUri) +
      Performs relative resolution of a referenceUri with respect to a baseUri.
      +
      static android.net.UriresolveToUri(java.lang.String baseUri, + java.lang.String referenceUri) +
      Like resolve(String, String), but returns a Uri instead of a String.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        resolveToUri

        +
        public static android.net.Uri resolveToUri(java.lang.String baseUri,
        +                                           java.lang.String referenceUri)
        +
        Like resolve(String, String), but returns a Uri instead of a String.
        +
        +
        Parameters:
        +
        baseUri - The base URI.
        +
        referenceUri - The reference URI to resolve.
        +
        +
      • +
      + + + +
        +
      • +

        resolve

        +
        public static java.lang.String resolve(java.lang.String baseUri,
        +                                       java.lang.String referenceUri)
        +
        Performs relative resolution of a referenceUri with respect to a baseUri. +

        + The resolution is performed as specified by RFC-3986.

        +
        +
        Parameters:
        +
        baseUri - The base URI.
        +
        referenceUri - The reference URI to resolve.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Util.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Util.html new file mode 100644 index 00000000..547110da --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/Util.html @@ -0,0 +1,1362 @@ + + + + + +Util (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class Util

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.Util
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class Util
    +extends java.lang.Object
    +
    Miscellaneous utility methods.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.StringDEVICE +
      Like Build.DEVICE, but in a place where it can be conveniently overridden for local + testing.
      +
      static java.lang.StringMANUFACTURER +
      Like Build.MANUFACTURER, but in a place where it can be conveniently overridden for + local testing.
      +
      static java.lang.StringMODEL +
      Like Build.MODEL, but in a place where it can be conveniently overridden for local + testing.
      +
      static intSDK_INT +
      Like Build.VERSION.SDK_INT, but in a place where it can be conveniently + overridden for local testing.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static booleanareEqual(java.lang.Object o1, + java.lang.Object o2) +
      Tests two objects for Object.equals(Object) equality, handling the case where one or + both may be null.
      +
      static <T> intbinarySearchCeil(java.util.List<? extends java.lang.Comparable<? super T>> list, + T value, + boolean inclusive, + boolean stayInBounds) +
      Returns the index of the smallest value in an list that is greater than (or optionally equal + to) a specified value.
      +
      static intbinarySearchCeil(long[] a, + long value, + boolean inclusive, + boolean stayInBounds) +
      Returns the index of the smallest value in an array that is greater than (or optionally equal + to) a specified value.
      +
      static intbinarySearchFloor(int[] a, + int value, + boolean inclusive, + boolean stayInBounds) +
      Returns the index of the largest value in an array that is less than (or optionally equal to) + a specified value.
      +
      static <T> intbinarySearchFloor(java.util.List<? extends java.lang.Comparable<? super T>> list, + T value, + boolean inclusive, + boolean stayInBounds) +
      Returns the index of the largest value in an list that is less than (or optionally equal to) + a specified value.
      +
      static intbinarySearchFloor(long[] a, + long value, + boolean inclusive, + boolean stayInBounds) +
      Returns the index of the largest value in an array that is less than (or optionally equal to) + a specified value.
      +
      static intceilDivide(int numerator, + int denominator) +
      Divides a numerator by a denominator, returning the ceiled result.
      +
      static longceilDivide(long numerator, + long denominator) +
      Divides a numerator by a denominator, returning the ceiled result.
      +
      static voidcloseQuietly(DataSource dataSource) +
      Closes a DataSource, suppressing any IOException that may occur.
      +
      static voidcloseQuietly(java.io.OutputStream outputStream) +
      Closes an OutputStream, suppressing any IOException that may occur.
      +
      static intconstrainValue(int value, + int min, + int max) +
      Constrains a value to the specified bounds.
      +
      static booleancontains(java.lang.Object[] items, + java.lang.Object item) +
      Tests whether an items array contains an object equal to item, according to + Object.equals(Object).
      +
      static intcrc(byte[] bytes, + int start, + int end, + int initialValue) +
      Returns the result of updating a CRC with the specified bytes in a "most significant bit first" + order.
      +
      static java.lang.StringescapeFileName(java.lang.String fileName) +
      Escapes a string so that it's safe for use as a file or directory name on at least FAT32 + filesystems.
      +
      static byte[]getBytesFromHexString(java.lang.String hexString) +
      Returns a byte array containing values parsed from the hex string provided.
      +
      static java.lang.StringgetCommaDelimitedSimpleClassNames(java.lang.Object[] objects) +
      Returns a string with comma delimited simple names of each object's class.
      +
      static intgetDefaultBufferSize(int trackType) +
      Maps a C TRACK_TYPE_* constant to the corresponding C + DEFAULT_*_BUFFER_SIZE constant.
      +
      static java.lang.StringgetHexString(byte[] bytes) +
      Returns a hex string representation of the given byte array.
      +
      static intgetIntegerCodeForString(java.lang.String string) +
      Returns the integer equal to the big-endian concatenation of the characters in string + as bytes.
      +
      static intgetPcmEncoding(int bitDepth) +
      Converts a sample bit depth to a corresponding PCM encoding constant.
      +
      static android.graphics.PointgetPhysicalDisplaySize(android.content.Context context) +
      Gets the physical size of the default display, in pixels.
      +
      static android.graphics.PointgetPhysicalDisplaySize(android.content.Context context, + android.view.Display display) +
      Gets the physical size of the specified display, in pixels.
      +
      static DataSpecgetRemainderDataSpec(DataSpec dataSpec, + int bytesLoaded) +
      Given a DataSpec and a number of bytes already loaded, returns a DataSpec + that represents the remainder of the data.
      +
      static java.lang.StringgetUserAgent(android.content.Context context, + java.lang.String applicationName) +
      Returns a user agent string based on the given application name and the library version.
      +
      static byte[]getUtf8Bytes(java.lang.String value) +
      Returns a new byte array containing the code points of a String encoded using UTF-8.
      +
      static intinferContentType(java.lang.String fileName) +
      Makes a best guess to infer the type from a file name.
      +
      static booleanisLocalFileUri(android.net.Uri uri) +
      Returns true if the URI is a path to a local file or a reference to a local file.
      +
      static booleanmaybeRequestReadExternalStoragePermission(android.app.Activity activity, + android.net.Uri... uris) +
      Checks whether it's necessary to request the Manifest.permission.READ_EXTERNAL_STORAGE + permission read the specified Uris, requesting the permission if necessary.
      +
      static java.util.concurrent.ExecutorServicenewSingleThreadExecutor(java.lang.String threadName) +
      Instantiates a new single threaded executor whose thread has the specified name.
      +
      static java.lang.StringnormalizeLanguageCode(java.lang.String language) +
      Returns a normalized RFC 5646 language code.
      +
      static longparseXsDateTime(java.lang.String value) +
      Parses an xs:dateTime attribute value, returning the parsed timestamp in milliseconds since + the epoch.
      +
      static longparseXsDuration(java.lang.String value) +
      Parses an xs:duration attribute value, returning the parsed duration in milliseconds.
      +
      static longscaleLargeTimestamp(long timestamp, + long multiplier, + long divisor) +
      Scales a large timestamp.
      +
      static long[]scaleLargeTimestamps(java.util.List<java.lang.Long> timestamps, + long multiplier, + long divisor) +
      Applies scaleLargeTimestamp(long, long, long) to a list of unscaled timestamps.
      +
      static voidscaleLargeTimestampsInPlace(long[] timestamps, + long multiplier, + long divisor) +
      Applies scaleLargeTimestamp(long, long, long) to an array of unscaled timestamps.
      +
      static java.lang.Stringsha1(java.lang.String input) +
      Returns the SHA-1 digest of input as a hex string.
      +
      static int[]toArray(java.util.List<java.lang.Integer> list) +
      Converts a list of integers to a primitive array.
      +
      static byte[]toByteArray(java.io.InputStream inputStream) +
      Converts the entirety of an InputStream to a byte array.
      +
      static java.lang.StringtoLowerInvariant(java.lang.String text) +
      Converts text to lower case using Locale.US.
      +
      static java.lang.StringunescapeFileName(java.lang.String fileName) +
      Unescapes an escaped file or directory name back to its original value.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        SDK_INT

        +
        public static final int SDK_INT
        +
        Like Build.VERSION.SDK_INT, but in a place where it can be conveniently + overridden for local testing.
        +
      • +
      + + + +
        +
      • +

        DEVICE

        +
        public static final java.lang.String DEVICE
        +
        Like Build.DEVICE, but in a place where it can be conveniently overridden for local + testing.
        +
      • +
      + + + +
        +
      • +

        MANUFACTURER

        +
        public static final java.lang.String MANUFACTURER
        +
        Like Build.MANUFACTURER, but in a place where it can be conveniently overridden for + local testing.
        +
      • +
      + + + +
        +
      • +

        MODEL

        +
        public static final java.lang.String MODEL
        +
        Like Build.MODEL, but in a place where it can be conveniently overridden for local + testing.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toByteArray

        +
        public static byte[] toByteArray(java.io.InputStream inputStream)
        +                          throws java.io.IOException
        +
        Converts the entirety of an InputStream to a byte array.
        +
        +
        Parameters:
        +
        inputStream - the InputStream to be read. The input stream is not closed by this + method.
        +
        Returns:
        +
        a byte array containing all of the inputStream's bytes.
        +
        Throws:
        +
        java.io.IOException - if an error occurs reading from the stream.
        +
        +
      • +
      + + + +
        +
      • +

        maybeRequestReadExternalStoragePermission

        +
        public static boolean maybeRequestReadExternalStoragePermission(android.app.Activity activity,
        +                                                                android.net.Uri... uris)
        +
        Checks whether it's necessary to request the Manifest.permission.READ_EXTERNAL_STORAGE + permission read the specified Uris, requesting the permission if necessary.
        +
        +
        Parameters:
        +
        activity - The host activity for checking and requesting the permission.
        +
        uris - Uris that may require Manifest.permission.READ_EXTERNAL_STORAGE to read.
        +
        Returns:
        +
        Whether a permission request was made.
        +
        +
      • +
      + + + +
        +
      • +

        isLocalFileUri

        +
        public static boolean isLocalFileUri(android.net.Uri uri)
        +
        Returns true if the URI is a path to a local file or a reference to a local file.
        +
        +
        Parameters:
        +
        uri - The uri to test.
        +
        +
      • +
      + + + +
        +
      • +

        areEqual

        +
        public static boolean areEqual(java.lang.Object o1,
        +                               java.lang.Object o2)
        +
        Tests two objects for Object.equals(Object) equality, handling the case where one or + both may be null.
        +
        +
        Parameters:
        +
        o1 - The first object.
        +
        o2 - The second object.
        +
        Returns:
        +
        o1 == null ? o2 == null : o1.equals(o2).
        +
        +
      • +
      + + + +
        +
      • +

        contains

        +
        public static boolean contains(java.lang.Object[] items,
        +                               java.lang.Object item)
        +
        Tests whether an items array contains an object equal to item, according to + Object.equals(Object). +

        + If item is null then true is returned if and only if items contains null.

        +
        +
        Parameters:
        +
        items - The array of items to search.
        +
        item - The item to search for.
        +
        Returns:
        +
        True if the array contains an object equal to the item being searched for.
        +
        +
      • +
      + + + +
        +
      • +

        newSingleThreadExecutor

        +
        public static java.util.concurrent.ExecutorService newSingleThreadExecutor(java.lang.String threadName)
        +
        Instantiates a new single threaded executor whose thread has the specified name.
        +
        +
        Parameters:
        +
        threadName - The name of the thread.
        +
        Returns:
        +
        The executor.
        +
        +
      • +
      + + + +
        +
      • +

        closeQuietly

        +
        public static void closeQuietly(DataSource dataSource)
        +
        Closes a DataSource, suppressing any IOException that may occur.
        +
        +
        Parameters:
        +
        dataSource - The DataSource to close.
        +
        +
      • +
      + + + +
        +
      • +

        closeQuietly

        +
        public static void closeQuietly(java.io.OutputStream outputStream)
        +
        Closes an OutputStream, suppressing any IOException that may occur.
        +
        +
        Parameters:
        +
        outputStream - The OutputStream to close.
        +
        +
      • +
      + + + +
        +
      • +

        normalizeLanguageCode

        +
        public static java.lang.String normalizeLanguageCode(java.lang.String language)
        +
        Returns a normalized RFC 5646 language code.
        +
        +
        Parameters:
        +
        language - A possibly non-normalized RFC 5646 language code.
        +
        Returns:
        +
        The normalized code, or null if the input was null.
        +
        +
      • +
      + + + +
        +
      • +

        getUtf8Bytes

        +
        public static byte[] getUtf8Bytes(java.lang.String value)
        +
        Returns a new byte array containing the code points of a String encoded using UTF-8.
        +
        +
        Parameters:
        +
        value - The String whose bytes should be obtained.
        +
        Returns:
        +
        The code points encoding using UTF-8.
        +
        +
      • +
      + + + +
        +
      • +

        toLowerInvariant

        +
        public static java.lang.String toLowerInvariant(java.lang.String text)
        +
        Converts text to lower case using Locale.US.
        +
        +
        Parameters:
        +
        text - The text to convert.
        +
        Returns:
        +
        The lower case text, or null if text is null.
        +
        +
      • +
      + + + +
        +
      • +

        ceilDivide

        +
        public static int ceilDivide(int numerator,
        +                             int denominator)
        +
        Divides a numerator by a denominator, returning the ceiled result.
        +
        +
        Parameters:
        +
        numerator - The numerator to divide.
        +
        denominator - The denominator to divide by.
        +
        Returns:
        +
        The ceiled result of the division.
        +
        +
      • +
      + + + +
        +
      • +

        ceilDivide

        +
        public static long ceilDivide(long numerator,
        +                              long denominator)
        +
        Divides a numerator by a denominator, returning the ceiled result.
        +
        +
        Parameters:
        +
        numerator - The numerator to divide.
        +
        denominator - The denominator to divide by.
        +
        Returns:
        +
        The ceiled result of the division.
        +
        +
      • +
      + + + +
        +
      • +

        constrainValue

        +
        public static int constrainValue(int value,
        +                                 int min,
        +                                 int max)
        +
        Constrains a value to the specified bounds.
        +
        +
        Parameters:
        +
        value - The value to constrain.
        +
        min - The lower bound.
        +
        max - The upper bound.
        +
        Returns:
        +
        The constrained value Math.max(min, Math.min(value, max)).
        +
        +
      • +
      + + + +
        +
      • +

        binarySearchFloor

        +
        public static int binarySearchFloor(int[] a,
        +                                    int value,
        +                                    boolean inclusive,
        +                                    boolean stayInBounds)
        +
        Returns the index of the largest value in an array that is less than (or optionally equal to) + a specified value. +

        + The search is performed using a binary search algorithm, so the array must be sorted.

        +
        +
        Parameters:
        +
        a - The array to search.
        +
        value - The value being searched for.
        +
        inclusive - If the value is present in the array, whether to return the corresponding + index. If false then the returned index corresponds to the largest value in the array that + is strictly less than the value.
        +
        stayInBounds - If true, then 0 will be returned in the case that the value is smaller than + the smallest value in the array. If false then -1 will be returned.
        +
        +
      • +
      + + + +
        +
      • +

        binarySearchFloor

        +
        public static int binarySearchFloor(long[] a,
        +                                    long value,
        +                                    boolean inclusive,
        +                                    boolean stayInBounds)
        +
        Returns the index of the largest value in an array that is less than (or optionally equal to) + a specified value. +

        + The search is performed using a binary search algorithm, so the array must be sorted.

        +
        +
        Parameters:
        +
        a - The array to search.
        +
        value - The value being searched for.
        +
        inclusive - If the value is present in the array, whether to return the corresponding + index. If false then the returned index corresponds to the largest value in the array that + is strictly less than the value.
        +
        stayInBounds - If true, then 0 will be returned in the case that the value is smaller than + the smallest value in the array. If false then -1 will be returned.
        +
        +
      • +
      + + + +
        +
      • +

        binarySearchCeil

        +
        public static int binarySearchCeil(long[] a,
        +                                   long value,
        +                                   boolean inclusive,
        +                                   boolean stayInBounds)
        +
        Returns the index of the smallest value in an array that is greater than (or optionally equal + to) a specified value. +

        + The search is performed using a binary search algorithm, so the array must be sorted.

        +
        +
        Parameters:
        +
        a - The array to search.
        +
        value - The value being searched for.
        +
        inclusive - If the value is present in the array, whether to return the corresponding + index. If false then the returned index corresponds to the largest value in the array that + is strictly less than the value.
        +
        stayInBounds - If true, then (a.length - 1) will be returned in the case that the + value is greater than the largest value in the array. If false then a.length will + be returned.
        +
        +
      • +
      + + + + + +
        +
      • +

        binarySearchFloor

        +
        public static <T> int binarySearchFloor(java.util.List<? extends java.lang.Comparable<? super T>> list,
        +                                        T value,
        +                                        boolean inclusive,
        +                                        boolean stayInBounds)
        +
        Returns the index of the largest value in an list that is less than (or optionally equal to) + a specified value. +

        + The search is performed using a binary search algorithm, so the list must be sorted.

        +
        +
        Type Parameters:
        +
        T - The type of values being searched.
        +
        Parameters:
        +
        list - The list to search.
        +
        value - The value being searched for.
        +
        inclusive - If the value is present in the list, whether to return the corresponding + index. If false then the returned index corresponds to the largest value in the list that + is strictly less than the value.
        +
        stayInBounds - If true, then 0 will be returned in the case that the value is smaller than + the smallest value in the list. If false then -1 will be returned.
        +
        +
      • +
      + + + + + +
        +
      • +

        binarySearchCeil

        +
        public static <T> int binarySearchCeil(java.util.List<? extends java.lang.Comparable<? super T>> list,
        +                                       T value,
        +                                       boolean inclusive,
        +                                       boolean stayInBounds)
        +
        Returns the index of the smallest value in an list that is greater than (or optionally equal + to) a specified value. +

        + The search is performed using a binary search algorithm, so the list must be sorted.

        +
        +
        Type Parameters:
        +
        T - The type of values being searched.
        +
        Parameters:
        +
        list - The list to search.
        +
        value - The value being searched for.
        +
        inclusive - If the value is present in the list, whether to return the corresponding + index. If false then the returned index corresponds to the smallest value in the list that + is strictly greater than the value.
        +
        stayInBounds - If true, then (list.size() - 1) will be returned in the case that + the value is greater than the largest value in the list. If false then list.size() + will be returned.
        +
        +
      • +
      + + + +
        +
      • +

        parseXsDuration

        +
        public static long parseXsDuration(java.lang.String value)
        +
        Parses an xs:duration attribute value, returning the parsed duration in milliseconds.
        +
        +
        Parameters:
        +
        value - The attribute value to decode.
        +
        Returns:
        +
        The parsed duration in milliseconds.
        +
        +
      • +
      + + + +
        +
      • +

        parseXsDateTime

        +
        public static long parseXsDateTime(java.lang.String value)
        +                            throws java.text.ParseException
        +
        Parses an xs:dateTime attribute value, returning the parsed timestamp in milliseconds since + the epoch.
        +
        +
        Parameters:
        +
        value - The attribute value to decode.
        +
        Returns:
        +
        The parsed timestamp in milliseconds since the epoch.
        +
        Throws:
        +
        java.text.ParseException
        +
        +
      • +
      + + + +
        +
      • +

        scaleLargeTimestamp

        +
        public static long scaleLargeTimestamp(long timestamp,
        +                                       long multiplier,
        +                                       long divisor)
        +
        Scales a large timestamp. +

        + Logically, scaling consists of a multiplication followed by a division. The actual operations + performed are designed to minimize the probability of overflow.

        +
        +
        Parameters:
        +
        timestamp - The timestamp to scale.
        +
        multiplier - The multiplier.
        +
        divisor - The divisor.
        +
        Returns:
        +
        The scaled timestamp.
        +
        +
      • +
      + + + +
        +
      • +

        scaleLargeTimestamps

        +
        public static long[] scaleLargeTimestamps(java.util.List<java.lang.Long> timestamps,
        +                                          long multiplier,
        +                                          long divisor)
        +
        Applies scaleLargeTimestamp(long, long, long) to a list of unscaled timestamps.
        +
        +
        Parameters:
        +
        timestamps - The timestamps to scale.
        +
        multiplier - The multiplier.
        +
        divisor - The divisor.
        +
        Returns:
        +
        The scaled timestamps.
        +
        +
      • +
      + + + +
        +
      • +

        scaleLargeTimestampsInPlace

        +
        public static void scaleLargeTimestampsInPlace(long[] timestamps,
        +                                               long multiplier,
        +                                               long divisor)
        +
        Applies scaleLargeTimestamp(long, long, long) to an array of unscaled timestamps.
        +
        +
        Parameters:
        +
        timestamps - The timestamps to scale.
        +
        multiplier - The multiplier.
        +
        divisor - The divisor.
        +
        +
      • +
      + + + +
        +
      • +

        toArray

        +
        public static int[] toArray(java.util.List<java.lang.Integer> list)
        +
        Converts a list of integers to a primitive array.
        +
        +
        Parameters:
        +
        list - A list of integers.
        +
        Returns:
        +
        The list in array form, or null if the input list was null.
        +
        +
      • +
      + + + +
        +
      • +

        getRemainderDataSpec

        +
        public static DataSpec getRemainderDataSpec(DataSpec dataSpec,
        +                                            int bytesLoaded)
        +
        Given a DataSpec and a number of bytes already loaded, returns a DataSpec + that represents the remainder of the data.
        +
        +
        Parameters:
        +
        dataSpec - The original DataSpec.
        +
        bytesLoaded - The number of bytes already loaded.
        +
        Returns:
        +
        A DataSpec that represents the remainder of the data.
        +
        +
      • +
      + + + +
        +
      • +

        getIntegerCodeForString

        +
        public static int getIntegerCodeForString(java.lang.String string)
        +
        Returns the integer equal to the big-endian concatenation of the characters in string + as bytes. The string must be no more than four characters long.
        +
        +
        Parameters:
        +
        string - A string no more than four characters long.
        +
        +
      • +
      + + + +
        +
      • +

        getBytesFromHexString

        +
        public static byte[] getBytesFromHexString(java.lang.String hexString)
        +
        Returns a byte array containing values parsed from the hex string provided.
        +
        +
        Parameters:
        +
        hexString - The hex string to convert to bytes.
        +
        Returns:
        +
        A byte array containing values parsed from the hex string provided.
        +
        +
      • +
      + + + +
        +
      • +

        getHexString

        +
        public static java.lang.String getHexString(byte[] bytes)
        +
        Returns a hex string representation of the given byte array.
        +
        +
        Parameters:
        +
        bytes - The byte array.
        +
        +
      • +
      + + + +
        +
      • +

        getCommaDelimitedSimpleClassNames

        +
        public static java.lang.String getCommaDelimitedSimpleClassNames(java.lang.Object[] objects)
        +
        Returns a string with comma delimited simple names of each object's class.
        +
        +
        Parameters:
        +
        objects - The objects whose simple class names should be comma delimited and returned.
        +
        Returns:
        +
        A string with comma delimited simple names of each object's class.
        +
        +
      • +
      + + + +
        +
      • +

        getUserAgent

        +
        public static java.lang.String getUserAgent(android.content.Context context,
        +                                            java.lang.String applicationName)
        +
        Returns a user agent string based on the given application name and the library version.
        +
        +
        Parameters:
        +
        context - A valid context of the calling application.
        +
        applicationName - String that will be prefix'ed to the generated user agent.
        +
        Returns:
        +
        A user agent string generated using the applicationName and the library version.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        inferContentType

        +
        public static int inferContentType(java.lang.String fileName)
        +
        Makes a best guess to infer the type from a file name.
        +
        +
        Parameters:
        +
        fileName - Name of the file. It can include the path of the file.
        +
        Returns:
        +
        The content type.
        +
        +
      • +
      + + + +
        +
      • +

        getDefaultBufferSize

        +
        public static int getDefaultBufferSize(int trackType)
        +
        Maps a C TRACK_TYPE_* constant to the corresponding C + DEFAULT_*_BUFFER_SIZE constant.
        +
        +
        Parameters:
        +
        trackType - The track type.
        +
        Returns:
        +
        The corresponding default buffer size in bytes.
        +
        +
      • +
      + + + +
        +
      • +

        escapeFileName

        +
        public static java.lang.String escapeFileName(java.lang.String fileName)
        +
        Escapes a string so that it's safe for use as a file or directory name on at least FAT32 + filesystems. FAT32 is the most restrictive of all filesystems still commonly used today. + +

        For simplicity, this only handles common characters known to be illegal on FAT32: + <, >, :, ", /, \, |, ?, and *. % is also escaped since it is used as the escape + character. Escaping is performed in a consistent way so that no collisions occur and + unescapeFileName(String) can be used to retrieve the original file name.

        +
        +
        Parameters:
        +
        fileName - File name to be escaped.
        +
        Returns:
        +
        An escaped file name which will be safe for use on at least FAT32 filesystems.
        +
        +
      • +
      + + + +
        +
      • +

        unescapeFileName

        +
        public static java.lang.String unescapeFileName(java.lang.String fileName)
        +
        Unescapes an escaped file or directory name back to its original value. + +

        See escapeFileName(String) for more information.

        +
        +
        Parameters:
        +
        fileName - File name to be unescaped.
        +
        Returns:
        +
        The original value of the file name before it was escaped, or null if the escaped + fileName seems invalid.
        +
        +
      • +
      + + + +
        +
      • +

        crc

        +
        public static int crc(byte[] bytes,
        +                      int start,
        +                      int end,
        +                      int initialValue)
        +
        Returns the result of updating a CRC with the specified bytes in a "most significant bit first" + order.
        +
        +
        Parameters:
        +
        bytes - Array containing the bytes to update the crc value with.
        +
        start - The index to the first byte in the byte range to update the crc with.
        +
        end - The index after the last byte in the byte range to update the crc with.
        +
        initialValue - The initial value for the crc calculation.
        +
        Returns:
        +
        The result of updating the initial value with the specified bytes.
        +
        +
      • +
      + + + +
        +
      • +

        sha1

        +
        public static java.lang.String sha1(java.lang.String input)
        +
        Returns the SHA-1 digest of input as a hex string.
        +
        +
        Parameters:
        +
        input - The string whose SHA-1 digest is required.
        +
        +
      • +
      + + + +
        +
      • +

        getPhysicalDisplaySize

        +
        public static android.graphics.Point getPhysicalDisplaySize(android.content.Context context)
        +
        Gets the physical size of the default display, in pixels.
        +
        +
        Parameters:
        +
        context - Any context.
        +
        Returns:
        +
        The physical display size, in pixels.
        +
        +
      • +
      + + + +
        +
      • +

        getPhysicalDisplaySize

        +
        public static android.graphics.Point getPhysicalDisplaySize(android.content.Context context,
        +                                                            android.view.Display display)
        +
        Gets the physical size of the specified display, in pixels.
        +
        +
        Parameters:
        +
        context - Any context.
        +
        display - The display whose size is to be returned.
        +
        Returns:
        +
        The physical display size, in pixels.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/XmlPullParserUtil.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/XmlPullParserUtil.html new file mode 100644 index 00000000..cff6f51e --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/XmlPullParserUtil.html @@ -0,0 +1,355 @@ + + + + + +XmlPullParserUtil (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.util
+

Class XmlPullParserUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.util.XmlPullParserUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class XmlPullParserUtil
    +extends java.lang.Object
    +
    XmlPullParser utility methods.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static java.lang.StringgetAttributeValue(org.xmlpull.v1.XmlPullParser xpp, + java.lang.String attributeName) +
      Returns the value of an attribute of the current start tag.
      +
      static booleanisEndTag(org.xmlpull.v1.XmlPullParser xpp) +
      Returns whether the current event is an end tag.
      +
      static booleanisEndTag(org.xmlpull.v1.XmlPullParser xpp, + java.lang.String name) +
      Returns whether the current event is an end tag with the specified name.
      +
      static booleanisStartTag(org.xmlpull.v1.XmlPullParser xpp) +
      Returns whether the current event is a start tag.
      +
      static booleanisStartTag(org.xmlpull.v1.XmlPullParser xpp, + java.lang.String name) +
      Returns whether the current event is a start tag with the specified name.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isEndTag

        +
        public static boolean isEndTag(org.xmlpull.v1.XmlPullParser xpp,
        +                               java.lang.String name)
        +                        throws org.xmlpull.v1.XmlPullParserException
        +
        Returns whether the current event is an end tag with the specified name.
        +
        +
        Parameters:
        +
        xpp - The XmlPullParser to query.
        +
        name - The specified name.
        +
        Returns:
        +
        Whether the current event is an end tag with the specified name.
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException - If an error occurs querying the parser.
        +
        +
      • +
      + + + +
        +
      • +

        isEndTag

        +
        public static boolean isEndTag(org.xmlpull.v1.XmlPullParser xpp)
        +                        throws org.xmlpull.v1.XmlPullParserException
        +
        Returns whether the current event is an end tag.
        +
        +
        Parameters:
        +
        xpp - The XmlPullParser to query.
        +
        Returns:
        +
        Whether the current event is an end tag.
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException - If an error occurs querying the parser.
        +
        +
      • +
      + + + +
        +
      • +

        isStartTag

        +
        public static boolean isStartTag(org.xmlpull.v1.XmlPullParser xpp,
        +                                 java.lang.String name)
        +                          throws org.xmlpull.v1.XmlPullParserException
        +
        Returns whether the current event is a start tag with the specified name.
        +
        +
        Parameters:
        +
        xpp - The XmlPullParser to query.
        +
        name - The specified name.
        +
        Returns:
        +
        Whether the current event is a start tag with the specified name.
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException - If an error occurs querying the parser.
        +
        +
      • +
      + + + +
        +
      • +

        isStartTag

        +
        public static boolean isStartTag(org.xmlpull.v1.XmlPullParser xpp)
        +                          throws org.xmlpull.v1.XmlPullParserException
        +
        Returns whether the current event is a start tag.
        +
        +
        Parameters:
        +
        xpp - The XmlPullParser to query.
        +
        Returns:
        +
        Whether the current event is a start tag.
        +
        Throws:
        +
        org.xmlpull.v1.XmlPullParserException - If an error occurs querying the parser.
        +
        +
      • +
      + + + +
        +
      • +

        getAttributeValue

        +
        public static java.lang.String getAttributeValue(org.xmlpull.v1.XmlPullParser xpp,
        +                                                 java.lang.String attributeName)
        +
        Returns the value of an attribute of the current start tag.
        +
        +
        Parameters:
        +
        xpp - The XmlPullParser to query.
        +
        attributeName - The name of the attribute.
        +
        Returns:
        +
        The value of the attribute, or null if the current event is not a start tag or if no + no such attribute was found.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/package-frame.html new file mode 100644 index 00000000..c8f1b1a3 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/package-frame.html @@ -0,0 +1,52 @@ + + + + + +com.google.android.exoplayer2.util (library API) + + + + + +

com.google.android.exoplayer2.util

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/package-summary.html new file mode 100644 index 00000000..e1c3f3a0 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/package-summary.html @@ -0,0 +1,321 @@ + + + + + +com.google.android.exoplayer2.util (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.util

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    Clock +
    An interface through which system clocks can be read.
    +
    MediaClock +
    Tracks the progression of media time.
    +
    Predicate<T> +
    Determines a true of false value for a given input.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    Assertions +
    Provides methods for asserting the truth of expressions and properties.
    +
    CodecSpecificDataUtil +
    Provides static utility methods for manipulating various types of codec specific data.
    +
    ColorParser +
    Parser for color expressions found in styling formats, e.g.
    +
    ConditionVariable +
    A condition variable whose ConditionVariable.open() and ConditionVariable.close() methods return whether they + resulted in a change of state.
    +
    FlacStreamInfo +
    Holder for FLAC stream info.
    +
    LibraryLoader +
    Configurable loader for native libraries.
    +
    LongArray +
    An append-only, auto-growing long[].
    +
    MimeTypes +
    Defines common MIME types and helper methods.
    +
    NalUnitUtil +
    Utility methods for handling H.264/AVC and H.265/HEVC NAL units.
    +
    NalUnitUtil.PpsData +
    Holds data parsed from a picture parameter set NAL unit.
    +
    NalUnitUtil.SpsData +
    Holds data parsed from a sequence parameter set NAL unit.
    +
    ParsableBitArray +
    Wraps a byte array, providing methods that allow it to be read as a bitstream.
    +
    ParsableByteArray +
    Wraps a byte array, providing a set of methods for parsing data from it.
    +
    ParsableNalUnitBitArray +
    Wraps a byte array, providing methods that allow it to be read as a NAL unit bitstream.
    +
    PriorityHandlerThread +
    A HandlerThread with a specified process priority.
    +
    PriorityTaskManager +
    Allows tasks with associated priorities to control how they proceed relative to one another.
    +
    SlidingPercentile +
    Calculate any percentile over a sliding window of weighted values.
    +
    StandaloneMediaClock +
    A standalone MediaClock.
    +
    SystemClock +
    The standard implementation of Clock.
    +
    TraceUtil +
    Calls through to Trace methods on supported API levels.
    +
    UriUtil +
    Utility methods for manipulating URIs.
    +
    Util +
    Miscellaneous utility methods.
    +
    XmlPullParserUtil +
    XmlPullParser utility methods.
    +
    +
  • +
  • + + + + + + + + + + + + +
    Exception Summary 
    ExceptionDescription
    PriorityTaskManager.PriorityTooLowException +
    Thrown when task attempts to proceed when another registered task has a higher priority.
    +
    +
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/package-tree.html new file mode 100644 index 00000000..54cb1e47 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/util/package-tree.html @@ -0,0 +1,184 @@ + + + + + +com.google.android.exoplayer2.util Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.util

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+
    +
  • com.google.android.exoplayer2.util.Clock
  • +
  • com.google.android.exoplayer2.util.MediaClock
  • +
  • com.google.android.exoplayer2.util.Predicate<T>
  • +
+
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/AvcConfig.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/AvcConfig.html new file mode 100644 index 00000000..3bd12f86 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/AvcConfig.html @@ -0,0 +1,337 @@ + + + + + +AvcConfig (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.video
+

Class AvcConfig

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.video.AvcConfig
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class AvcConfig
    +extends java.lang.Object
    +
    AVC configuration data.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        initializationData

        +
        public final java.util.List<byte[]> initializationData
        +
      • +
      + + + +
        +
      • +

        nalUnitLengthFieldLength

        +
        public final int nalUnitLengthFieldLength
        +
      • +
      + + + +
        +
      • +

        width

        +
        public final int width
        +
      • +
      + + + +
        +
      • +

        height

        +
        public final int height
        +
      • +
      + + + +
        +
      • +

        pixelWidthAspectRatio

        +
        public final float pixelWidthAspectRatio
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public static AvcConfig parse(ParsableByteArray data)
        +                       throws ParserException
        +
        Parses AVC configuration data.
        +
        +
        Parameters:
        +
        data - A ParsableByteArray, whose position is set to the start of the AVC + configuration data to parse.
        +
        Returns:
        +
        A parsed representation of the HEVC configuration data.
        +
        Throws:
        +
        ParserException - If an error occurred parsing the data.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/HevcConfig.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/HevcConfig.html new file mode 100644 index 00000000..f655f19d --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/HevcConfig.html @@ -0,0 +1,298 @@ + + + + + +HevcConfig (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.video
+

Class HevcConfig

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.video.HevcConfig
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class HevcConfig
    +extends java.lang.Object
    +
    HEVC configuration data.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        initializationData

        +
        public final java.util.List<byte[]> initializationData
        +
      • +
      + + + +
        +
      • +

        nalUnitLengthFieldLength

        +
        public final int nalUnitLengthFieldLength
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public static HevcConfig parse(ParsableByteArray data)
        +                        throws ParserException
        +
        Parses HEVC configuration data.
        +
        +
        Parameters:
        +
        data - A ParsableByteArray, whose position is set to the start of the HEVC + configuration data to parse.
        +
        Returns:
        +
        A parsed representation of the HEVC configuration data.
        +
        Throws:
        +
        ParserException - If an error occurred parsing the data.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.html new file mode 100644 index 00000000..fe640721 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.html @@ -0,0 +1,948 @@ + + + + + +MediaCodecVideoRenderer (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.video
+

Class MediaCodecVideoRenderer

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MediaCodecVideoRenderer

        +
        public MediaCodecVideoRenderer(android.content.Context context,
        +                               MediaCodecSelector mediaCodecSelector,
        +                               int videoScalingMode)
        +
        +
        Parameters:
        +
        context - A context.
        +
        mediaCodecSelector - A decoder selector.
        +
        videoScalingMode - The scaling mode to pass to + MediaCodec.setVideoScalingMode(int).
        +
        +
      • +
      + + + +
        +
      • +

        MediaCodecVideoRenderer

        +
        public MediaCodecVideoRenderer(android.content.Context context,
        +                               MediaCodecSelector mediaCodecSelector,
        +                               int videoScalingMode,
        +                               long allowedJoiningTimeMs)
        +
        +
        Parameters:
        +
        context - A context.
        +
        mediaCodecSelector - A decoder selector.
        +
        videoScalingMode - The scaling mode to pass to + MediaCodec.setVideoScalingMode(int).
        +
        allowedJoiningTimeMs - The maximum duration in milliseconds for which this video renderer + can attempt to seamlessly join an ongoing playback.
        +
        +
      • +
      + + + +
        +
      • +

        MediaCodecVideoRenderer

        +
        public MediaCodecVideoRenderer(android.content.Context context,
        +                               MediaCodecSelector mediaCodecSelector,
        +                               int videoScalingMode,
        +                               long allowedJoiningTimeMs,
        +                               android.os.Handler eventHandler,
        +                               VideoRendererEventListener eventListener,
        +                               int maxDroppedFrameCountToNotify)
        +
        +
        Parameters:
        +
        context - A context.
        +
        mediaCodecSelector - A decoder selector.
        +
        videoScalingMode - The scaling mode to pass to + MediaCodec.setVideoScalingMode(int).
        +
        allowedJoiningTimeMs - The maximum duration in milliseconds for which this video renderer + can attempt to seamlessly join an ongoing playback.
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        maxDroppedFrameCountToNotify - The maximum number of frames that can be dropped between + invocations of VideoRendererEventListener.onDroppedFrames(int, long).
        +
        +
      • +
      + + + +
        +
      • +

        MediaCodecVideoRenderer

        +
        public MediaCodecVideoRenderer(android.content.Context context,
        +                               MediaCodecSelector mediaCodecSelector,
        +                               int videoScalingMode,
        +                               long allowedJoiningTimeMs,
        +                               DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
        +                               boolean playClearSamplesWithoutKeys,
        +                               android.os.Handler eventHandler,
        +                               VideoRendererEventListener eventListener,
        +                               int maxDroppedFramesToNotify)
        +
        +
        Parameters:
        +
        context - A context.
        +
        mediaCodecSelector - A decoder selector.
        +
        videoScalingMode - The scaling mode to pass to + MediaCodec.setVideoScalingMode(int).
        +
        allowedJoiningTimeMs - The maximum duration in milliseconds for which this video renderer + can attempt to seamlessly join an ongoing playback.
        +
        drmSessionManager - For use with encrypted content. May be null if support for encrypted + content is not required.
        +
        playClearSamplesWithoutKeys - Encrypted media may contain clear (un-encrypted) regions. + For example a media file may start with a short clear region so as to allow playback to + begin in parallel with key acquisition. This parameter specifies whether the renderer is + permitted to play clear regions of encrypted media files before drmSessionManager + has obtained the keys necessary to decrypt encrypted regions of the media.
        +
        eventHandler - A handler to use when delivering events to eventListener. May be + null if delivery of events is not required.
        +
        eventListener - A listener of events. May be null if delivery of events is not required.
        +
        maxDroppedFramesToNotify - The maximum number of frames that can be dropped between + invocations of VideoRendererEventListener.onDroppedFrames(int, long).
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        onEnabled

        +
        protected void onEnabled(boolean joining)
        +                  throws ExoPlaybackException
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is enabled. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onEnabled in class MediaCodecRenderer
        +
        Parameters:
        +
        joining - Whether this renderer is being enabled to join an ongoing playback.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        onStreamChanged

        +
        protected void onStreamChanged(Format[] formats)
        +                        throws ExoPlaybackException
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer's stream has changed. This occurs when the renderer is enabled after + BaseRenderer.onEnabled(boolean) has been called, and also when the stream has been replaced whilst + the renderer is enabled or started. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onStreamChanged in class BaseRenderer
        +
        Parameters:
        +
        formats - The enabled formats.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        onPositionReset

        +
        protected void onPositionReset(long positionUs,
        +                               boolean joining)
        +                        throws ExoPlaybackException
        +
        Description copied from class: BaseRenderer
        +
        Called when the position is reset. This occurs when the renderer is enabled after + BaseRenderer.onStreamChanged(Format[]) has been called, and also when a position discontinuity + is encountered. +

        + After a position reset, the renderer's SampleStream is guaranteed to provide samples + starting from a key frame. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onPositionReset in class MediaCodecRenderer
        +
        Parameters:
        +
        positionUs - The new playback position in microseconds.
        +
        joining - Whether this renderer is being enabled to join an ongoing playback.
        +
        Throws:
        +
        ExoPlaybackException - If an error occurs.
        +
        +
      • +
      + + + +
        +
      • +

        isReady

        +
        public boolean isReady()
        +
        Description copied from interface: Renderer
        +
        Whether the renderer is able to immediately render media from the current position. +

        + If the renderer is in the Renderer.STATE_STARTED state then returning true indicates that the + renderer has everything that it needs to continue playback. Returning false indicates that + the player should pause until the renderer is ready. +

        + If the renderer is in the Renderer.STATE_ENABLED state then returning true indicates that the + renderer is ready for playback to be started. Returning false indicates that it is not. +

        + This method may be called when the renderer is in the following states: + Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        +
        +
        Specified by:
        +
        isReady in interface Renderer
        +
        Overrides:
        +
        isReady in class MediaCodecRenderer
        +
        Returns:
        +
        Whether the renderer is ready to render media.
        +
        +
      • +
      + + + +
        +
      • +

        onStarted

        +
        protected void onStarted()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is started. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onStarted in class MediaCodecRenderer
        +
        +
      • +
      + + + +
        +
      • +

        onStopped

        +
        protected void onStopped()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is stopped. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onStopped in class MediaCodecRenderer
        +
        +
      • +
      + + + +
        +
      • +

        onDisabled

        +
        protected void onDisabled()
        +
        Description copied from class: BaseRenderer
        +
        Called when the renderer is disabled. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onDisabled in class MediaCodecRenderer
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        configureCodec

        +
        protected void configureCodec(android.media.MediaCodec codec,
        +                              Format format,
        +                              android.media.MediaCrypto crypto)
        +
        Description copied from class: MediaCodecRenderer
        +
        Configures a newly created MediaCodec.
        +
        +
        Specified by:
        +
        configureCodec in class MediaCodecRenderer
        +
        Parameters:
        +
        codec - The MediaCodec to configure.
        +
        format - The format for which the codec is being configured.
        +
        crypto - For drm protected playbacks, a MediaCrypto to use for decryption.
        +
        +
      • +
      + + + +
        +
      • +

        onCodecInitialized

        +
        protected void onCodecInitialized(java.lang.String name,
        +                                  long initializedTimestampMs,
        +                                  long initializationDurationMs)
        +
        Description copied from class: MediaCodecRenderer
        +
        Called when a MediaCodec has been created and configured. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onCodecInitialized in class MediaCodecRenderer
        +
        Parameters:
        +
        name - The name of the codec that was initialized.
        +
        initializedTimestampMs - SystemClock.elapsedRealtime() when initialization + finished.
        +
        initializationDurationMs - The time taken to initialize the codec in milliseconds.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        onOutputFormatChanged

        +
        protected void onOutputFormatChanged(android.media.MediaCodec codec,
        +                                     android.media.MediaFormat outputFormat)
        +
        Description copied from class: MediaCodecRenderer
        +
        Called when the output format of the MediaCodec changes. +

        + The default implementation is a no-op.

        +
        +
        Overrides:
        +
        onOutputFormatChanged in class MediaCodecRenderer
        +
        Parameters:
        +
        codec - The MediaCodec instance.
        +
        outputFormat - The new output format.
        +
        +
      • +
      + + + +
        +
      • +

        canReconfigureCodec

        +
        protected boolean canReconfigureCodec(android.media.MediaCodec codec,
        +                                      boolean codecIsAdaptive,
        +                                      Format oldFormat,
        +                                      Format newFormat)
        +
        Description copied from class: MediaCodecRenderer
        +
        Determines whether the existing MediaCodec should be reconfigured for a new format by + sending codec specific initialization data at the start of the next input buffer. If true is + returned then the MediaCodec instance will be reconfigured in this way. If false is + returned then the instance will be released, and a new instance will be created for the new + format. +

        + The default implementation returns false.

        +
        +
        Overrides:
        +
        canReconfigureCodec in class MediaCodecRenderer
        +
        Parameters:
        +
        codec - The existing MediaCodec instance.
        +
        codecIsAdaptive - Whether the codec is adaptive.
        +
        oldFormat - The format for which the existing instance is configured.
        +
        newFormat - The new format.
        +
        Returns:
        +
        Whether the existing instance can be reconfigured.
        +
        +
      • +
      + + + +
        +
      • +

        processOutputBuffer

        +
        protected boolean processOutputBuffer(long positionUs,
        +                                      long elapsedRealtimeUs,
        +                                      android.media.MediaCodec codec,
        +                                      java.nio.ByteBuffer buffer,
        +                                      int bufferIndex,
        +                                      int bufferFlags,
        +                                      long bufferPresentationTimeUs,
        +                                      boolean shouldSkip)
        +
        Description copied from class: MediaCodecRenderer
        +
        Processes an output media buffer. +

        + When a new ByteBuffer is passed to this method its position and limit delineate the + data to be processed. The return value indicates whether the buffer was processed in full. If + true is returned then the next call to this method will receive a new buffer to be processed. + If false is returned then the same buffer will be passed to the next call. An implementation of + this method is free to modify the buffer and can assume that the buffer will not be externally + modified between successive calls. Hence an implementation can, for example, modify the + buffer's position to keep track of how much of the data it has processed. +

        + Note that the first call to this method following a call to + MediaCodecRenderer.onPositionReset(long, boolean) will always receive a new ByteBuffer to be + processed.

        +
        +
        Specified by:
        +
        processOutputBuffer in class MediaCodecRenderer
        +
        Parameters:
        +
        positionUs - The current media time in microseconds, measured at the start of the + current iteration of the rendering loop.
        +
        elapsedRealtimeUs - SystemClock.elapsedRealtime() in microseconds, + measured at the start of the current iteration of the rendering loop.
        +
        codec - The MediaCodec instance.
        +
        buffer - The output buffer to process.
        +
        bufferIndex - The index of the output buffer.
        +
        bufferFlags - The flags attached to the output buffer.
        +
        bufferPresentationTimeUs - The presentation time of the output buffer in microseconds.
        +
        shouldSkip - Whether the buffer should be skipped (i.e. not rendered).
        +
        Returns:
        +
        Whether the output buffer was fully processed (e.g. rendered or skipped).
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/VideoFrameReleaseTimeHelper.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/VideoFrameReleaseTimeHelper.html new file mode 100644 index 00000000..54e7a99b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/VideoFrameReleaseTimeHelper.html @@ -0,0 +1,355 @@ + + + + + +VideoFrameReleaseTimeHelper (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.video
+

Class VideoFrameReleaseTimeHelper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.video.VideoFrameReleaseTimeHelper
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class VideoFrameReleaseTimeHelper
    +extends java.lang.Object
    +
    Makes a best effort to adjust frame release timestamps for a smoother visual result.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      VideoFrameReleaseTimeHelper() +
      Constructs an instance that smoothes frame release timestamps but does not align them with + the default display's vsync signal.
      +
      VideoFrameReleaseTimeHelper(android.content.Context context) +
      Constructs an instance that smoothes frame release timestamps and aligns them with the default + display's vsync signal.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longadjustReleaseTime(long framePresentationTimeUs, + long unadjustedReleaseTimeNs) +
      Adjusts a frame release timestamp.
      +
      voiddisable() +
      Disables the helper.
      +
      voidenable() +
      Enables the helper.
      +
      protected voidonSynced() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VideoFrameReleaseTimeHelper

        +
        public VideoFrameReleaseTimeHelper()
        +
        Constructs an instance that smoothes frame release timestamps but does not align them with + the default display's vsync signal.
        +
      • +
      + + + +
        +
      • +

        VideoFrameReleaseTimeHelper

        +
        public VideoFrameReleaseTimeHelper(android.content.Context context)
        +
        Constructs an instance that smoothes frame release timestamps and aligns them with the default + display's vsync signal.
        +
        +
        Parameters:
        +
        context - A context from which information about the default display can be retrieved.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        enable

        +
        public void enable()
        +
        Enables the helper.
        +
      • +
      + + + +
        +
      • +

        disable

        +
        public void disable()
        +
        Disables the helper.
        +
      • +
      + + + +
        +
      • +

        adjustReleaseTime

        +
        public long adjustReleaseTime(long framePresentationTimeUs,
        +                              long unadjustedReleaseTimeNs)
        +
        Adjusts a frame release timestamp.
        +
        +
        Parameters:
        +
        framePresentationTimeUs - The frame's presentation time, in microseconds.
        +
        unadjustedReleaseTimeNs - The frame's unadjusted release time, in nanoseconds and in + the same time base as System.nanoTime().
        +
        Returns:
        +
        The adjusted frame release timestamp, in nanoseconds and in the same time base as + System.nanoTime().
        +
        +
      • +
      + + + +
        +
      • +

        onSynced

        +
        protected void onSynced()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/VideoRendererEventListener.EventDispatcher.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/VideoRendererEventListener.EventDispatcher.html new file mode 100644 index 00000000..3bcf6d56 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/VideoRendererEventListener.EventDispatcher.html @@ -0,0 +1,393 @@ + + + + + +VideoRendererEventListener.EventDispatcher (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.video
+

Class VideoRendererEventListener.EventDispatcher

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/VideoRendererEventListener.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/VideoRendererEventListener.html new file mode 100644 index 00000000..b2c2ac8b --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/VideoRendererEventListener.html @@ -0,0 +1,404 @@ + + + + + +VideoRendererEventListener (library API) + + + + + + + + + + + + +
+
com.google.android.exoplayer2.video
+

Interface VideoRendererEventListener

+
+
+
+
    +
  • +
    +
    +
    public interface VideoRendererEventListener
    +
    Listener of video Renderer events.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidonDroppedFrames(int count, + long elapsedMs) +
      Called to report the number of frames dropped by the renderer.
      +
      voidonRenderedFirstFrame(android.view.Surface surface) +
      Called when a frame is rendered for the first time since setting the surface, and when a frame + is rendered for the first time since the renderer was reset.
      +
      voidonVideoDecoderInitialized(java.lang.String decoderName, + long initializedTimestampMs, + long initializationDurationMs) +
      Called when a decoder is created.
      +
      voidonVideoDisabled(DecoderCounters counters) +
      Called when the renderer is disabled.
      +
      voidonVideoEnabled(DecoderCounters counters) +
      Called when the renderer is enabled.
      +
      voidonVideoInputFormatChanged(Format format) +
      Called when the format of the media being consumed by the renderer changes.
      +
      voidonVideoSizeChanged(int width, + int height, + int unappliedRotationDegrees, + float pixelWidthHeightRatio) +
      Called each time there's a change in the size of the video being rendered.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onVideoEnabled

        +
        void onVideoEnabled(DecoderCounters counters)
        +
        Called when the renderer is enabled.
        +
        +
        Parameters:
        +
        counters - DecoderCounters that will be updated by the renderer for as long as it + remains enabled.
        +
        +
      • +
      + + + +
        +
      • +

        onVideoDecoderInitialized

        +
        void onVideoDecoderInitialized(java.lang.String decoderName,
        +                               long initializedTimestampMs,
        +                               long initializationDurationMs)
        +
        Called when a decoder is created.
        +
        +
        Parameters:
        +
        decoderName - The decoder that was created.
        +
        initializedTimestampMs - SystemClock.elapsedRealtime() when initialization + finished.
        +
        initializationDurationMs - The time taken to initialize the decoder in milliseconds.
        +
        +
      • +
      + + + +
        +
      • +

        onVideoInputFormatChanged

        +
        void onVideoInputFormatChanged(Format format)
        +
        Called when the format of the media being consumed by the renderer changes.
        +
        +
        Parameters:
        +
        format - The new format.
        +
        +
      • +
      + + + +
        +
      • +

        onDroppedFrames

        +
        void onDroppedFrames(int count,
        +                     long elapsedMs)
        +
        Called to report the number of frames dropped by the renderer. Dropped frames are reported + whenever the renderer is stopped having dropped frames, and optionally, whenever the count + reaches a specified threshold whilst the renderer is started.
        +
        +
        Parameters:
        +
        count - The number of dropped frames.
        +
        elapsedMs - The duration in milliseconds over which the frames were dropped. This + duration is timed from when the renderer was started or from when dropped frames were + last reported (whichever was more recent), and not from when the first of the reported + drops occurred.
        +
        +
      • +
      + + + +
        +
      • +

        onVideoSizeChanged

        +
        void onVideoSizeChanged(int width,
        +                        int height,
        +                        int unappliedRotationDegrees,
        +                        float pixelWidthHeightRatio)
        +
        Called each time there's a change in the size of the video being rendered.
        +
        +
        Parameters:
        +
        width - The video width in pixels.
        +
        height - The video height in pixels.
        +
        unappliedRotationDegrees - For videos that require a rotation, this is the clockwise + rotation in degrees that the application should apply for the video for it to be rendered + in the correct orientation. This value will always be zero on API levels 21 and above, + since the renderer will apply all necessary rotations internally. On earlier API levels + this is not possible. Applications that use TextureView can apply the rotation by + calling TextureView.setTransform(android.graphics.Matrix). Applications that do not expect to encounter + rotated videos can safely ignore this parameter.
        +
        pixelWidthHeightRatio - The width to height ratio of each pixel. For the normal case + of square pixels this will be equal to 1.0. Different values are indicative of anamorphic + content.
        +
        +
      • +
      + + + +
        +
      • +

        onRenderedFirstFrame

        +
        void onRenderedFirstFrame(android.view.Surface surface)
        +
        Called when a frame is rendered for the first time since setting the surface, and when a frame + is rendered for the first time since the renderer was reset.
        +
        +
        Parameters:
        +
        surface - The Surface to which a first frame has been rendered, or null if + the renderer renders to something that isn't a Surface.
        +
        +
      • +
      + + + +
        +
      • +

        onVideoDisabled

        +
        void onVideoDisabled(DecoderCounters counters)
        +
        Called when the renderer is disabled.
        +
        +
        Parameters:
        +
        counters - DecoderCounters that were updated by the renderer.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/package-frame.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/package-frame.html new file mode 100644 index 00000000..034069b8 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/package-frame.html @@ -0,0 +1,28 @@ + + + + + +com.google.android.exoplayer2.video (library API) + + + + + +

com.google.android.exoplayer2.video

+ + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/package-summary.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/package-summary.html new file mode 100644 index 00000000..4e445533 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/package-summary.html @@ -0,0 +1,183 @@ + + + + + +com.google.android.exoplayer2.video (library API) + + + + + + + + + + + +
+

Package com.google.android.exoplayer2.video

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/package-tree.html b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/package-tree.html new file mode 100644 index 00000000..cefdb673 --- /dev/null +++ b/ExoPlayer/JavaDoc/com/google/android/exoplayer2/video/package-tree.html @@ -0,0 +1,151 @@ + + + + + +com.google.android.exoplayer2.video Class Hierarchy (library API) + + + + + + + + + + + +
+

Hierarchy For Package com.google.android.exoplayer2.video

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/constant-values.html b/ExoPlayer/JavaDoc/constant-values.html new file mode 100644 index 00000000..d17659eb --- /dev/null +++ b/ExoPlayer/JavaDoc/constant-values.html @@ -0,0 +1,2706 @@ + + + + + +Constant Field Values (library API) + + + + + + + + + + + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

com.google.*

+ + + + + + + +
    +
  • + + + + + + + + + + + + + + +
    com.google.android.exoplayer2.metadata.id3.ApicFrame 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringID"APIC"
    +
  • +
  • + + + + + + + + + + + + + + +
    com.google.android.exoplayer2.metadata.id3.GeobFrame 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringID"GEOB"
    +
  • +
  • + + + + + + + + + + + + + + +
    com.google.android.exoplayer2.metadata.id3.PrivFrame 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringID"PRIV"
    +
  • +
  • + + + + + + + + + + + + + + +
    com.google.android.exoplayer2.metadata.id3.TxxxFrame 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringID"TXXX"
    +
  • +
+ + + +
    +
  • + + + + + + + + + + + + + + +
    com.google.android.exoplayer2.source.dash.manifest.AdaptationSet 
    Modifier and TypeConstant FieldValue
    + +public static final intUNSET_ID-1
    +
  • +
  • + + + + + + + + + + + + + + +
    com.google.android.exoplayer2.source.dash.manifest.Representation 
    Modifier and TypeConstant FieldValue
    + +public static final longREVISION_ID_DEFAULT-1L
    +
  • +
+ + + +
    +
  • + + + + + + + + + + + + + + +
    com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest 
    Modifier and TypeConstant FieldValue
    + +public static final intUNSET_LOOKAHEAD-1
    +
  • +
+ + + + + + +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/deprecated-list.html b/ExoPlayer/JavaDoc/deprecated-list.html new file mode 100644 index 00000000..c88a450c --- /dev/null +++ b/ExoPlayer/JavaDoc/deprecated-list.html @@ -0,0 +1,122 @@ + + + + + +Deprecated List (library API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + + + +
+ + + + diff --git a/ExoPlayer/JavaDoc/help-doc.html b/ExoPlayer/JavaDoc/help-doc.html new file mode 100644 index 00000000..082d4cda --- /dev/null +++ b/ExoPlayer/JavaDoc/help-doc.html @@ -0,0 +1,223 @@ + + + + + +API Help (library API) + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
    +
  • +

    Overview

    +

    The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    +
  • +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static final fields and their values.

    +
  • +
+This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + + + diff --git a/ExoPlayer/JavaDoc/index-all.html b/ExoPlayer/JavaDoc/index-all.html new file mode 100644 index 00000000..321ef3ce --- /dev/null +++ b/ExoPlayer/JavaDoc/index-all.html @@ -0,0 +1,9112 @@ + + + + + +Index (library API) + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N O P Q R S T U V W X  + + +

A

+
+
absoluteStreamPosition - Variable in class com.google.android.exoplayer2.upstream.DataSpec
+
+
The absolute position of the data in the full stream.
+
+
Ac3Extractor - Class in com.google.android.exoplayer2.extractor.ts
+
+
Facilitates the extraction of AC-3 samples from elementary audio files formatted as AC-3 + bitstreams.
+
+
Ac3Extractor() - Constructor for class com.google.android.exoplayer2.extractor.ts.Ac3Extractor
+
 
+
Ac3Extractor(long) - Constructor for class com.google.android.exoplayer2.extractor.ts.Ac3Extractor
+
 
+
Ac3Util - Class in com.google.android.exoplayer2.audio
+
+
Utility methods for parsing (E-)AC-3 syncframes, which are access units in (E-)AC-3 bitstreams.
+
+
acquireSession(Looper, DrmInitData) - Method in interface com.google.android.exoplayer2.drm.DrmSessionManager
+
+
Acquires a DrmSession for the specified DrmInitData.
+
+
acquireSession(Looper, DrmInitData) - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
 
+
AdaptationSet - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
Represents a set of interchangeable encoded versions of a media content component.
+
+
AdaptationSet(int, int, List<Representation>) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.AdaptationSet
+
 
+
adaptationSets - Variable in class com.google.android.exoplayer2.source.dash.manifest.Period
+
+
The adaptation sets belonging to the period.
+
+
adaptive - Variable in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
Whether the decoder supports seamless resolution switches.
+
+
ADAPTIVE_NOT_SEAMLESS - Static variable in interface com.google.android.exoplayer2.RendererCapabilities
+
+
The Renderer can adapt between formats, but may suffer a brief discontinuity + (~50-100ms) when adaptation occurs.
+
+
ADAPTIVE_NOT_SUPPORTED - Static variable in interface com.google.android.exoplayer2.RendererCapabilities
+
+
The Renderer does not support adaptation between formats.
+
+
ADAPTIVE_SEAMLESS - Static variable in interface com.google.android.exoplayer2.RendererCapabilities
+
+
The Renderer can seamlessly adapt between formats.
+
+
ADAPTIVE_SUPPORT_MASK - Static variable in interface com.google.android.exoplayer2.RendererCapabilities
+
+ +
+
AdaptiveMediaSourceEventListener - Interface in com.google.android.exoplayer2.source
+
+
Interface for callbacks to be notified of adaptive MediaSource events.
+
+
AdaptiveMediaSourceEventListener.EventDispatcher - Class in com.google.android.exoplayer2.source
+
+
Dispatches events to a AdaptiveMediaSourceEventListener.
+
+
AdaptiveVideoTrackSelection - Class in com.google.android.exoplayer2.trackselection
+
+
A bandwidth based adaptive TrackSelection for video, whose selected track is updated to + be the one of highest quality given the current network conditions and the state of the buffer.
+
+
AdaptiveVideoTrackSelection(TrackGroup, int[], BandwidthMeter) - Constructor for class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
AdaptiveVideoTrackSelection(TrackGroup, int[], BandwidthMeter, int, long, long, long, float) - Constructor for class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
AdaptiveVideoTrackSelection.Factory - Class in com.google.android.exoplayer2.trackselection
+
+
Factory for AdaptiveVideoTrackSelection instances.
+
+
add(long) - Method in class com.google.android.exoplayer2.util.LongArray
+
+
Appends a value.
+
+
add(int) - Method in class com.google.android.exoplayer2.util.PriorityTaskManager
+
+
Register a new task.
+
+
addFlag(int) - Method in class com.google.android.exoplayer2.decoder.Buffer
+
+
Adds the flag to this buffer's flags.
+
+
addListener(ExoPlayer.EventListener) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Register a listener to receive events from the player.
+
+
addListener(ExoPlayer.EventListener) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
addListener(TrackSelector.EventListener<? super T>) - Method in class com.google.android.exoplayer2.trackselection.TrackSelector
+
+
Registers a listener to receive events from the selector.
+
+
addListener(String, Cache.Listener) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Registers a listener to listen for changes to a given key.
+
+
addListener(String, Cache.Listener) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
addSample(int, float) - Method in class com.google.android.exoplayer2.util.SlidingPercentile
+
+
Adds a new weighted value.
+
+
adjustReleaseTime(long, long) - Method in class com.google.android.exoplayer2.video.VideoFrameReleaseTimeHelper
+
+
Adjusts a frame release timestamp.
+
+
adjustSampleTimestamp(long) - Method in class com.google.android.exoplayer2.extractor.TimestampAdjuster
+
+
Offsets a sample timestamp in microseconds.
+
+
adjustTsTimestamp(long) - Method in class com.google.android.exoplayer2.extractor.TimestampAdjuster
+
+
Scales and offsets an MPEG-2 TS presentation timestamp considering wraparound.
+
+
AdtsExtractor - Class in com.google.android.exoplayer2.extractor.ts
+
+
Facilitates the extraction of AAC samples from elementary audio files formatted as AAC with ADTS + headers.
+
+
AdtsExtractor() - Constructor for class com.google.android.exoplayer2.extractor.ts.AdtsExtractor
+
 
+
AdtsExtractor(long) - Constructor for class com.google.android.exoplayer2.extractor.ts.AdtsExtractor
+
 
+
advancePeekPosition(int, boolean) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
advancePeekPosition(int) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
advancePeekPosition(int, boolean) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Advances the peek position by length bytes.
+
+
advancePeekPosition(int) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Advances the peek position by length bytes.
+
+
allocate() - Method in interface com.google.android.exoplayer2.upstream.Allocator
+
+
Obtain an Allocation.
+
+
allocate() - Method in class com.google.android.exoplayer2.upstream.DefaultAllocator
+
 
+
Allocation - Class in com.google.android.exoplayer2.upstream
+
+
An allocation within a byte array.
+
+
Allocation(byte[], int) - Constructor for class com.google.android.exoplayer2.upstream.Allocation
+
 
+
Allocator - Interface in com.google.android.exoplayer2.upstream
+
+
A source of allocations.
+
+
allowMixedMimeAdaptiveness - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
allowNonSeamlessAdaptiveness - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
allowPassthrough(String) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
+
Returns whether encoded audio passthrough should be used for playing back the input format.
+
+
ANCHOR_TYPE_END - Static variable in class com.google.android.exoplayer2.text.Cue
+
+
Anchors the right (for horizontal positions) or bottom (for vertical positions) edge of the cue + box.
+
+
ANCHOR_TYPE_MIDDLE - Static variable in class com.google.android.exoplayer2.text.Cue
+
+
Anchors the middle of the cue box.
+
+
ANCHOR_TYPE_START - Static variable in class com.google.android.exoplayer2.text.Cue
+
+
Anchors the left (for horizontal positions) or top (for vertical positions) edge of the cue + box.
+
+
ApicFrame - Class in com.google.android.exoplayer2.metadata.id3
+
+
APIC (Attached Picture) ID3 frame.
+
+
ApicFrame(String, String, int, byte[]) - Constructor for class com.google.android.exoplayer2.metadata.id3.ApicFrame
+
 
+
APPLICATION_CEA608 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_CEA708 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_ID3 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_M3U8 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_MP4 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_MP4VTT - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_PGS - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_RAWCC - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_SUBRIP - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_TTML - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_TX3G - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_VOBSUB - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
APPLICATION_WEBM - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
areEqual(Object, Object) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Tests two objects for Object.equals(Object) equality, handling the case where one or + both may be null.
+
+
ASPECT_RATIO_IDC_VALUES - Static variable in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Aspect ratios indexed by aspect_ratio_idc, in H.264 and H.265 SPSs.
+
+
AspectRatioFrameLayout - Class in com.google.android.exoplayer2.ui
+
+
A FrameLayout that resizes itself to match a specified aspect ratio.
+
+
AspectRatioFrameLayout(Context) - Constructor for class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
+
 
+
AspectRatioFrameLayout(Context, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
+
 
+
Assertions - Class in com.google.android.exoplayer2.util
+
+
Provides methods for asserting the truth of expressions and properties.
+
+
ASSERTIONS_ENABLED - Static variable in interface com.google.android.exoplayer2.ExoPlayerLibraryInfo
+
+
Whether the library was compiled with Assertions + checks enabled.
+
+
AssetDataSource - Class in com.google.android.exoplayer2.upstream
+
+
A DataSource for reading from a local asset.
+
+
AssetDataSource(Context) - Constructor for class com.google.android.exoplayer2.upstream.AssetDataSource
+
 
+
AssetDataSource(Context, TransferListener<? super AssetDataSource>) - Constructor for class com.google.android.exoplayer2.upstream.AssetDataSource
+
 
+
AssetDataSource.AssetDataSourceException - Exception in com.google.android.exoplayer2.upstream
+
+
Thrown when an IOException is encountered reading a local asset.
+
+
AssetDataSourceException(IOException) - Constructor for exception com.google.android.exoplayer2.upstream.AssetDataSource.AssetDataSourceException
+
 
+
attemptMerge(RangedUri) - Method in class com.google.android.exoplayer2.source.dash.manifest.RangedUri
+
+
Attempts to merge this RangedUri with another.
+
+
AUDIO_AAC - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_AC3 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_AMR_NB - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_AMR_WB - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_DTS - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_DTS_EXPRESS - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_DTS_HD - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_E_AC3 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_FLAC - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_MP4 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_MPEG - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_MPEG_L1 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_MPEG_L2 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_OPUS - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_RAW - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_STREAM - Static variable in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
AUDIO_STREAM_MASK - Static variable in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
AUDIO_TRUEHD - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_VORBIS - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AUDIO_WEBM - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
AudioCapabilities - Class in com.google.android.exoplayer2.audio
+
+
Represents the set of audio formats that a device is capable of playing.
+
+
AudioCapabilitiesReceiver - Class in com.google.android.exoplayer2.audio
+
+
Receives broadcast events indicating changes to the device's audio capabilities, notifying a + AudioCapabilitiesReceiver.Listener when audio capability changes occur.
+
+
AudioCapabilitiesReceiver(Context, AudioCapabilitiesReceiver.Listener) - Constructor for class com.google.android.exoplayer2.audio.AudioCapabilitiesReceiver
+
 
+
AudioCapabilitiesReceiver.Listener - Interface in com.google.android.exoplayer2.audio
+
+
Listener notified when audio capabilities change.
+
+
AudioDecoderException - Exception in com.google.android.exoplayer2.audio
+
+
Thrown when an audio decoder error occurs.
+
+
AudioDecoderException(String) - Constructor for exception com.google.android.exoplayer2.audio.AudioDecoderException
+
 
+
audioFormat - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
+
 
+
AudioRendererEventListener - Interface in com.google.android.exoplayer2.audio
+
+
Listener of audio Renderer events.
+
+
AudioRendererEventListener.EventDispatcher - Class in com.google.android.exoplayer2.audio
+
+
Dispatches events to a AudioRendererEventListener.
+
+
audios - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
+
 
+
audioSessionId(int) - Method in class com.google.android.exoplayer2.audio.AudioRendererEventListener.EventDispatcher
+
+ +
+
AudioTrack - Class in com.google.android.exoplayer2.audio
+
+
Plays audio data.
+
+
AudioTrack(AudioCapabilities, int) - Constructor for class com.google.android.exoplayer2.audio.AudioTrack
+
 
+
AudioTrack.InitializationException - Exception in com.google.android.exoplayer2.audio
+
+
Thrown when a failure occurs initializing an AudioTrack.
+
+
AudioTrack.InvalidAudioTrackTimestampException - Exception in com.google.android.exoplayer2.audio
+
+
Thrown when AudioTrack.getTimestamp(android.media.AudioTimestamp) returns a spurious timestamp, if + AudioTrack#failOnSpuriousAudioTimestamp is set.
+
+
AudioTrack.WriteException - Exception in com.google.android.exoplayer2.audio
+
+
Thrown when a failure occurs writing to an AudioTrack.
+
+
audioTrackState - Variable in exception com.google.android.exoplayer2.audio.AudioTrack.InitializationException
+
+
The state as reported by AudioTrack.getState().
+
+
audioTrackUnderrun(int, long, long) - Method in class com.google.android.exoplayer2.audio.AudioRendererEventListener.EventDispatcher
+
+ +
+
availabilityStartTime - Variable in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
AvcConfig - Class in com.google.android.exoplayer2.video
+
+
AVC configuration data.
+
+
+ + + +

B

+
+
backgroundColor - Variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
The preferred background color.
+
+
BandwidthMeter - Interface in com.google.android.exoplayer2.upstream
+
+
Provides estimates of the currently available bandwidth.
+
+
BandwidthMeter.EventListener - Interface in com.google.android.exoplayer2.upstream
+
+
A listener of BandwidthMeter events.
+
+
BASE_TYPE_APPLICATION - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
BASE_TYPE_AUDIO - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
BASE_TYPE_TEXT - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
BASE_TYPE_VIDEO - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
BaseMediaChunk - Class in com.google.android.exoplayer2.source.chunk
+
+
A base implementation of MediaChunk, for chunks that contain a single track.
+
+
BaseMediaChunk(DataSource, DataSpec, Format, int, Object, long, long, int) - Constructor for class com.google.android.exoplayer2.source.chunk.BaseMediaChunk
+
 
+
BaseRenderer - Class in com.google.android.exoplayer2
+
+
An abstract base class suitable for most Renderer implementations.
+
+
BaseRenderer(int) - Constructor for class com.google.android.exoplayer2.BaseRenderer
+
 
+
BaseTrackSelection - Class in com.google.android.exoplayer2.trackselection
+
+
An abstract base class suitable for most TrackSelection implementations.
+
+
BaseTrackSelection(TrackGroup, int...) - Constructor for class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
baseUri - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
+
 
+
beginSection(String) - Static method in class com.google.android.exoplayer2.util.TraceUtil
+
+
Writes a trace message to indicate that a given section of code has begun.
+
+
BehindLiveWindowException - Exception in com.google.android.exoplayer2.source
+
+
Thrown when a live playback falls behind the available media window.
+
+
BehindLiveWindowException() - Constructor for exception com.google.android.exoplayer2.source.BehindLiveWindowException
+
 
+
BinaryFrame - Class in com.google.android.exoplayer2.metadata.id3
+
+
Binary ID3 frame.
+
+
BinaryFrame(String, byte[]) - Constructor for class com.google.android.exoplayer2.metadata.id3.BinaryFrame
+
 
+
binarySearchCeil(long[], long, boolean, boolean) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns the index of the smallest value in an array that is greater than (or optionally equal + to) a specified value.
+
+
binarySearchCeil(List<? extends Comparable<? super T>>, T, boolean, boolean) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns the index of the smallest value in an list that is greater than (or optionally equal + to) a specified value.
+
+
binarySearchFloor(int[], int, boolean, boolean) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns the index of the largest value in an array that is less than (or optionally equal to) + a specified value.
+
+
binarySearchFloor(long[], long, boolean, boolean) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns the index of the largest value in an array that is less than (or optionally equal to) + a specified value.
+
+
binarySearchFloor(List<? extends Comparable<? super T>>, T, boolean, boolean) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns the index of the largest value in an list that is less than (or optionally equal to) + a specified value.
+
+
bitrate - Variable in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
Bitrate of the frame in bit/s.
+
+
bitrate - Variable in class com.google.android.exoplayer2.Format
+
+
The average bandwidth in bits per second, or Format.NO_VALUE if unknown or not applicable.
+
+
bitRate() - Method in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
bitsLeft() - Method in class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Returns the number of bits yet to be read.
+
+
bitsPerSample - Variable in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
blacklist(int, long) - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
blacklist(int, long) - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Attempts to blacklist the track at the specified index in the selection, making it ineligible + for selection by calls to TrackSelection.updateSelectedTrack(long) for the specified period of time.
+
+
block() - Method in class com.google.android.exoplayer2.util.ConditionVariable
+
+
Blocks until the condition is opened.
+
+
blockingSendMessages(ExoPlayer.ExoPlayerMessage...) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Variant of ExoPlayer.sendMessages(ExoPlayerMessage...) that blocks until after the messages have + been delivered.
+
+
blockingSendMessages(ExoPlayer.ExoPlayerMessage...) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
bottomFieldPicOrderInFramePresentFlag - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.PpsData
+
 
+
Buffer - Class in com.google.android.exoplayer2.decoder
+
+
Base class for buffers with flags.
+
+
Buffer() - Constructor for class com.google.android.exoplayer2.decoder.Buffer
+
 
+
BUFFER_FLAG_DECODE_ONLY - Static variable in class com.google.android.exoplayer2.C
+
+
Indicates that a buffer should be decoded but not rendered.
+
+
BUFFER_FLAG_ENCRYPTED - Static variable in class com.google.android.exoplayer2.C
+
+
Indicates that a buffer is (at least partially) encrypted.
+
+
BUFFER_FLAG_END_OF_STREAM - Static variable in class com.google.android.exoplayer2.C
+
+
Flag for empty buffers that signal that the end of the stream was reached.
+
+
BUFFER_FLAG_KEY_FRAME - Static variable in class com.google.android.exoplayer2.C
+
+
Indicates that a buffer holds a synchronization sample.
+
+
BUFFER_REPLACEMENT_MODE_DIRECT - Static variable in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
+
Allows buffer replacement using ByteBuffer.allocateDirect(int).
+
+
BUFFER_REPLACEMENT_MODE_DISABLED - Static variable in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
+
Disallows buffer replacement.
+
+
BUFFER_REPLACEMENT_MODE_NORMAL - Static variable in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
+
Allows buffer replacement using ByteBuffer.allocate(int).
+
+
buildAacAudioSpecificConfig(int, int, int) - Static method in class com.google.android.exoplayer2.util.CodecSpecificDataUtil
+
+
Builds a simple AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
+
+
buildAacLcAudioSpecificConfig(int, int) - Static method in class com.google.android.exoplayer2.util.CodecSpecificDataUtil
+
+
Builds a simple HE-AAC LC AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
+
+
buildAdaptationSet(int, int, List<Representation>) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildFormat(String, String, int, int, float, int, int, int, String, String) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildMediaPresentationDescription(long, long, long, boolean, long, long, long, UtcTimingElement, Uri, List<Period>) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildNalUnit(byte[], int, int) - Static method in class com.google.android.exoplayer2.util.CodecSpecificDataUtil
+
+
Constructs a NAL unit consisting of the NAL start code followed by the specified data.
+
+
buildPeriod(String, long, List<AdaptationSet>) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildPsshAtom(UUID, byte[]) - Static method in class com.google.android.exoplayer2.extractor.mp4.PsshAtomUtil
+
+
Builds a PSSH atom for a given UUID containing the given scheme specific data.
+
+
buildRangedUri(String, String, long, long) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildRawResourceUri(int) - Static method in class com.google.android.exoplayer2.upstream.RawResourceDataSource
+
+
Builds a Uri for the specified raw resource identifier.
+
+
buildRepresentation(DashManifestParser.RepresentationInfo, String, ArrayList<DrmInitData.SchemeData>) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildRequestUri(int, int) - Method in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
+
Builds a uri for requesting the specified chunk of the specified track.
+
+
buildSegmentList(RangedUri, long, long, int, long, List<SegmentBase.SegmentTimelineElement>, List<RangedUri>) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildSegmentTemplate(RangedUri, long, long, int, long, List<SegmentBase.SegmentTimelineElement>, UrlTemplate, UrlTemplate, String) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildSegmentTimelineElement(long, long) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildSingleSegmentBase(RangedUri, long, long, String, long, long) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
buildUri(String, int, int, long) - Method in class com.google.android.exoplayer2.source.dash.manifest.UrlTemplate
+
+
Constructs a Uri from the template, substituting in the provided arguments.
+
+
buildUtcTimingElement(String, String) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
ByteArrayDataSink - Class in com.google.android.exoplayer2.upstream
+
+
A DataSink for writing to a byte array.
+
+
ByteArrayDataSink() - Constructor for class com.google.android.exoplayer2.upstream.ByteArrayDataSink
+
 
+
ByteArrayDataSource - Class in com.google.android.exoplayer2.upstream
+
+
A DataSource for reading from a byte array.
+
+
ByteArrayDataSource(byte[]) - Constructor for class com.google.android.exoplayer2.upstream.ByteArrayDataSource
+
 
+
byterangeLength - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
byterangeOffset - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
bytesLeft() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Returns the number of bytes yet to be read.
+
+
bytesLoaded() - Method in class com.google.android.exoplayer2.source.chunk.Chunk
+
+
Returns the number of bytes that have been loaded.
+
+
bytesLoaded() - Method in class com.google.android.exoplayer2.source.chunk.ContainerMediaChunk
+
 
+
bytesLoaded() - Method in class com.google.android.exoplayer2.source.chunk.DataChunk
+
 
+
bytesLoaded() - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
bytesLoaded() - Method in class com.google.android.exoplayer2.source.chunk.SingleSampleMediaChunk
+
 
+
bytesLoaded() - Method in class com.google.android.exoplayer2.upstream.ParsingLoadable
+
+
Returns the number of bytes loaded.
+
+
bytesRead() - Method in class com.google.android.exoplayer2.upstream.DataSourceInputStream
+
+
Returns the total number of bytes that have been read or skipped.
+
+
bytesRead() - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
+
Returns the number of bytes that have been read since the most recent call to + DefaultHttpDataSource.open(DataSpec).
+
+
bytesRemaining() - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
+
Returns the number of bytes that are still to be read for the current DataSpec.
+
+
bytesSkipped() - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
+
Returns the number of bytes that have been skipped since the most recent call to + DefaultHttpDataSource.open(DataSpec).
+
+
+ + + +

C

+
+
C - Class in com.google.android.exoplayer2
+
+
Defines constants used by the library.
+
+
C.BufferFlags - Annotation Type in com.google.android.exoplayer2
+
+
Flags which can apply to a buffer containing a media sample.
+
+
C.ContentType - Annotation Type in com.google.android.exoplayer2
+
+
Represents a streaming or other media type.
+
+
C.CryptoMode - Annotation Type in com.google.android.exoplayer2
+
+
Crypto modes for a codec.
+
+
C.Encoding - Annotation Type in com.google.android.exoplayer2
+
+
Represents an audio encoding, or an invalid or unset value.
+
+
C.PcmEncoding - Annotation Type in com.google.android.exoplayer2
+
+
Represents a PCM audio encoding, or an invalid or unset value.
+
+
C.SelectionFlags - Annotation Type in com.google.android.exoplayer2
+
+
Track selection flags.
+
+
C.StereoMode - Annotation Type in com.google.android.exoplayer2
+
+
The stereo mode for 360/3D/VR videos.
+
+
Cache - Interface in com.google.android.exoplayer2.upstream.cache
+
+
An interface for cache.
+
+
Cache.Listener - Interface in com.google.android.exoplayer2.upstream.cache
+
+
Listener of Cache events.
+
+
CacheDataSink - Class in com.google.android.exoplayer2.upstream.cache
+
+
Writes data into a cache.
+
+
CacheDataSink(Cache, long) - Constructor for class com.google.android.exoplayer2.upstream.cache.CacheDataSink
+
 
+
CacheDataSink.CacheDataSinkException - Exception in com.google.android.exoplayer2.upstream.cache
+
+
Thrown when IOException is encountered when writing data into sink.
+
+
CacheDataSinkException(IOException) - Constructor for exception com.google.android.exoplayer2.upstream.cache.CacheDataSink.CacheDataSinkException
+
 
+
CacheDataSinkFactory - Class in com.google.android.exoplayer2.upstream.cache
+
+
A DataSink.Factory that produces CacheDataSink.
+
+
CacheDataSinkFactory(Cache, long) - Constructor for class com.google.android.exoplayer2.upstream.cache.CacheDataSinkFactory
+
 
+
CacheDataSource - Class in com.google.android.exoplayer2.upstream.cache
+
+
A DataSource that reads and writes a Cache.
+
+
CacheDataSource(Cache, DataSource, int) - Constructor for class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
+
Constructs an instance with default DataSource and DataSink instances for + reading and writing the cache and with CacheDataSource.DEFAULT_MAX_CACHE_FILE_SIZE.
+
+
CacheDataSource(Cache, DataSource, int, long) - Constructor for class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
+
Constructs an instance with default DataSource and DataSink instances for + reading and writing the cache.
+
+
CacheDataSource(Cache, DataSource, DataSource, DataSink, int, CacheDataSource.EventListener) - Constructor for class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
+
Constructs an instance with arbitrary DataSource and DataSink instances for + reading and writing the cache.
+
+
CacheDataSource.EventListener - Interface in com.google.android.exoplayer2.upstream.cache
+
+
Listener of CacheDataSource events.
+
+
CacheDataSource.Flags - Annotation Type in com.google.android.exoplayer2.upstream.cache
+
+
Flags controlling the cache's behavior.
+
+
CacheDataSourceFactory - Class in com.google.android.exoplayer2.upstream.cache
+
+
A DataSource.Factory that produces CacheDataSource.
+
+
CacheDataSourceFactory(Cache, DataSource.Factory, int) - Constructor for class com.google.android.exoplayer2.upstream.cache.CacheDataSourceFactory
+
 
+
CacheDataSourceFactory(Cache, DataSource.Factory, int, long) - Constructor for class com.google.android.exoplayer2.upstream.cache.CacheDataSourceFactory
+
 
+
CacheDataSourceFactory(Cache, DataSource.Factory, DataSource.Factory, DataSink.Factory, int, CacheDataSource.EventListener) - Constructor for class com.google.android.exoplayer2.upstream.cache.CacheDataSourceFactory
+
 
+
CacheEvictor - Interface in com.google.android.exoplayer2.upstream.cache
+
+
Evicts data from a Cache.
+
+
CacheSpan - Class in com.google.android.exoplayer2.upstream.cache
+
+
Defines a span of data that may or may not be cached (as indicated by CacheSpan.isCached).
+
+
cancelLoad() - Method in class com.google.android.exoplayer2.source.chunk.ContainerMediaChunk
+
 
+
cancelLoad() - Method in class com.google.android.exoplayer2.source.chunk.DataChunk
+
 
+
cancelLoad() - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
cancelLoad() - Method in class com.google.android.exoplayer2.source.chunk.SingleSampleMediaChunk
+
 
+
cancelLoad() - Method in interface com.google.android.exoplayer2.upstream.Loader.Loadable
+
+
Cancels the load.
+
+
cancelLoad() - Method in class com.google.android.exoplayer2.upstream.ParsingLoadable
+
 
+
cancelLoading() - Method in class com.google.android.exoplayer2.upstream.Loader
+
+
Cancels the current load.
+
+
canDecode(String) - Method in class com.google.android.exoplayer2.metadata.id3.Id3Decoder
+
 
+
canDecode(String) - Method in interface com.google.android.exoplayer2.metadata.MetadataDecoder
+
+
Checks whether the decoder supports a given mime type.
+
+
canReadBits(int) - Method in class com.google.android.exoplayer2.util.ParsableNalUnitBitArray
+
+
Returns whether it's possible to read n bits starting from the current offset.
+
+
canReadExpGolombCodedNum() - Method in class com.google.android.exoplayer2.util.ParsableNalUnitBitArray
+
+
Returns whether it is possible to read an Exp-Golomb-coded integer starting from the current + offset.
+
+
canReconfigureCodec(MediaCodec, boolean, Format, Format) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Determines whether the existing MediaCodec should be reconfigured for a new format by + sending codec specific initialization data at the start of the next input buffer.
+
+
canReconfigureCodec(MediaCodec, boolean, Format, Format) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
capacity() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Returns the capacity of the array, which may be larger than the limit.
+
+
CaptionStyleCompat - Class in com.google.android.exoplayer2.text
+
+
A compatibility wrapper for CaptioningManager.CaptionStyle.
+
+
CaptionStyleCompat(int, int, int, int, int, Typeface) - Constructor for class com.google.android.exoplayer2.text.CaptionStyleCompat
+
 
+
CaptionStyleCompat.EdgeType - Annotation Type in com.google.android.exoplayer2.text
+
+
The type of edge, which may be none.
+
+
Cea608Decoder - Class in com.google.android.exoplayer2.text.cea
+
+
A SubtitleDecoder for CEA-608 (also known as "line 21 captions" and "EIA-608").
+
+
Cea608Decoder() - Constructor for class com.google.android.exoplayer2.text.cea.Cea608Decoder
+
 
+
CeaOutputBuffer - Class in com.google.android.exoplayer2.text.cea
+
+
A SubtitleOutputBuffer for CeaDecoders.
+
+
CeaOutputBuffer(CeaDecoder) - Constructor for class com.google.android.exoplayer2.text.cea.CeaOutputBuffer
+
 
+
ceilDivide(int, int) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Divides a numerator by a denominator, returning the ceiled result.
+
+
ceilDivide(long, long) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Divides a numerator by a denominator, returning the ceiled result.
+
+
CHANNEL_OUT_7POINT1_SURROUND - Static variable in class com.google.android.exoplayer2.C
+
 
+
channelCount - Variable in class com.google.android.exoplayer2.Format
+
+
The number of audio channels, or Format.NO_VALUE if unknown or not applicable.
+
+
channels - Variable in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
Number of audio channels in the frame.
+
+
channels - Variable in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
checkArgument(boolean) - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws IllegalArgumentException if expression evaluates to false.
+
+
checkArgument(boolean, Object) - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws IllegalArgumentException if expression evaluates to false.
+
+
checkIndex(int, int, int) - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws IndexOutOfBoundsException if index falls outside the specified bounds.
+
+
checkMainThread() - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws IllegalStateException if the calling thread is not the application's main + thread.
+
+
checkNotEmpty(String) - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws IllegalArgumentException if string is null or zero length.
+
+
checkNotEmpty(String, Object) - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws IllegalArgumentException if string is null or zero length.
+
+
checkNotNull(T) - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws NullPointerException if reference is null.
+
+
checkNotNull(T, Object) - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws NullPointerException if reference is null.
+
+
checkState(boolean) - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws IllegalStateException if expression evaluates to false.
+
+
checkState(boolean, Object) - Static method in class com.google.android.exoplayer2.util.Assertions
+
+
Throws IllegalStateException if expression evaluates to false.
+
+
Chunk - Class in com.google.android.exoplayer2.source.chunk
+
+
An abstract base class for Loader.Loadable implementations that load chunks of data required + for the playback of streams.
+
+
Chunk(DataSource, DataSpec, int, Format, int, Object, long, long) - Constructor for class com.google.android.exoplayer2.source.chunk.Chunk
+
 
+
chunk - Variable in class com.google.android.exoplayer2.source.chunk.ChunkHolder
+
+
The chunk.
+
+
chunkCount - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
ChunkedTrackBlacklistUtil - Class in com.google.android.exoplayer2.source.chunk
+
+
Helper class for blacklisting tracks in a TrackSelection when 404 (Not Found) and 410 + (Gone) HTTP response codes are encountered.
+
+
ChunkExtractorWrapper - Class in com.google.android.exoplayer2.source.chunk
+
+
An Extractor wrapper for loading chunks containing a single track.
+
+
ChunkExtractorWrapper(Extractor, Format, boolean, boolean) - Constructor for class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
 
+
ChunkExtractorWrapper.SingleTrackMetadataOutput - Interface in com.google.android.exoplayer2.source.chunk
+
+
Receives metadata associated with the track as extracted by the wrapped Extractor.
+
+
ChunkHolder - Class in com.google.android.exoplayer2.source.chunk
+
+
Holds a chunk or an indication that the end of the stream has been reached.
+
+
ChunkHolder() - Constructor for class com.google.android.exoplayer2.source.chunk.ChunkHolder
+
 
+
ChunkIndex - Class in com.google.android.exoplayer2.extractor
+
+
Defines chunks of samples within a media stream.
+
+
ChunkIndex(int[], long[], long[], long[]) - Constructor for class com.google.android.exoplayer2.extractor.ChunkIndex
+
 
+
chunkIndex - Variable in class com.google.android.exoplayer2.source.chunk.MediaChunk
+
+
The chunk index.
+
+
ChunkSampleStream<T extends ChunkSource> - Class in com.google.android.exoplayer2.source.chunk
+
+
A SampleStream that loads media in Chunks, obtained from a ChunkSource.
+
+
ChunkSampleStream(int, T, SequenceableLoader.Callback<ChunkSampleStream<T>>, Allocator, long, int, AdaptiveMediaSourceEventListener.EventDispatcher) - Constructor for class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
ChunkSource - Interface in com.google.android.exoplayer2.source.chunk
+
+
A provider of Chunks for a ChunkSampleStream to load.
+
+
clear() - Method in class com.google.android.exoplayer2.decoder.Buffer
+
+
Clears the buffer.
+
+
clear() - Method in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
 
+
clear() - Method in class com.google.android.exoplayer2.decoder.SimpleOutputBuffer
+
 
+
clear() - Method in class com.google.android.exoplayer2.source.chunk.ChunkHolder
+
+
Clears the holder.
+
+
clear() - Method in class com.google.android.exoplayer2.text.SubtitleOutputBuffer
+
 
+
clearAllRequestProperties() - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
clearAllRequestProperties() - Method in interface com.google.android.exoplayer2.upstream.HttpDataSource
+
+
Clears all request header fields that were set by HttpDataSource.setRequestProperty(String, String).
+
+
clearFlag(int) - Method in class com.google.android.exoplayer2.decoder.Buffer
+
+
Removes the flag from this buffer's flags, if it is set.
+
+
clearPrefixFlags(boolean[]) - Static method in class com.google.android.exoplayer2.util.NalUnitUtil
+
+ +
+
clearRequestProperty(String) - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
clearRequestProperty(String) - Method in interface com.google.android.exoplayer2.upstream.HttpDataSource
+
+
Clears the value of a request header field.
+
+
clearSelectionOverride(int, TrackGroupArray) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
+
Clears a track selection override for the specified renderer and TrackGroupArray.
+
+
clearSelectionOverrides(int) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
+
Clears all track selection override for the specified renderer.
+
+
clearSelectionOverrides() - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
+
Clears all track selection overrides.
+
+
clearVideoSurface() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Clears any Surface, SurfaceHolder, SurfaceView or TextureView + currently set on the player.
+
+
Clock - Interface in com.google.android.exoplayer2.util
+
+
An interface through which system clocks can be read.
+
+
close() - Method in class com.google.android.exoplayer2.upstream.AssetDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.ByteArrayDataSink
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.ByteArrayDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.cache.CacheDataSink
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.ContentDataSource
+
 
+
close() - Method in interface com.google.android.exoplayer2.upstream.DataSink
+
+
Closes the sink.
+
+
close() - Method in interface com.google.android.exoplayer2.upstream.DataSource
+
+
Closes the source.
+
+
close() - Method in class com.google.android.exoplayer2.upstream.DataSourceInputStream
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.DefaultDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.FileDataSource
+
 
+
close() - Method in interface com.google.android.exoplayer2.upstream.HttpDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.PriorityDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.RawResourceDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.TeeDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.upstream.UdpDataSource
+
 
+
close() - Method in class com.google.android.exoplayer2.util.ConditionVariable
+
+
Closes the condition.
+
+
closeQuietly(DataSource) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Closes a DataSource, suppressing any IOException that may occur.
+
+
closeQuietly(OutputStream) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Closes an OutputStream, suppressing any IOException that may occur.
+
+
closeSession(byte[]) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
closeSession(byte[]) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
codecs - Variable in class com.google.android.exoplayer2.Format
+
+
Codecs of the format as described in RFC 6381, or null if unknown or not applicable.
+
+
CodecSpecificDataUtil - Class in com.google.android.exoplayer2.util
+
+
Provides static utility methods for manipulating various types of codec specific data.
+
+
ColorParser - Class in com.google.android.exoplayer2.util
+
+
Parser for color expressions found in styling formats, e.g.
+
+
ColorParser() - Constructor for class com.google.android.exoplayer2.util.ColorParser
+
 
+
com.google.android.exoplayer2 - package com.google.android.exoplayer2
+
 
+
com.google.android.exoplayer2.audio - package com.google.android.exoplayer2.audio
+
 
+
com.google.android.exoplayer2.decoder - package com.google.android.exoplayer2.decoder
+
 
+
com.google.android.exoplayer2.drm - package com.google.android.exoplayer2.drm
+
 
+
com.google.android.exoplayer2.extractor - package com.google.android.exoplayer2.extractor
+
 
+
com.google.android.exoplayer2.extractor.flv - package com.google.android.exoplayer2.extractor.flv
+
 
+
com.google.android.exoplayer2.extractor.mkv - package com.google.android.exoplayer2.extractor.mkv
+
 
+
com.google.android.exoplayer2.extractor.mp3 - package com.google.android.exoplayer2.extractor.mp3
+
 
+
com.google.android.exoplayer2.extractor.mp4 - package com.google.android.exoplayer2.extractor.mp4
+
 
+
com.google.android.exoplayer2.extractor.ogg - package com.google.android.exoplayer2.extractor.ogg
+
 
+
com.google.android.exoplayer2.extractor.rawcc - package com.google.android.exoplayer2.extractor.rawcc
+
 
+
com.google.android.exoplayer2.extractor.ts - package com.google.android.exoplayer2.extractor.ts
+
 
+
com.google.android.exoplayer2.extractor.wav - package com.google.android.exoplayer2.extractor.wav
+
 
+
com.google.android.exoplayer2.mediacodec - package com.google.android.exoplayer2.mediacodec
+
 
+
com.google.android.exoplayer2.metadata - package com.google.android.exoplayer2.metadata
+
 
+
com.google.android.exoplayer2.metadata.id3 - package com.google.android.exoplayer2.metadata.id3
+
 
+
com.google.android.exoplayer2.source - package com.google.android.exoplayer2.source
+
 
+
com.google.android.exoplayer2.source.chunk - package com.google.android.exoplayer2.source.chunk
+
 
+
com.google.android.exoplayer2.source.dash - package com.google.android.exoplayer2.source.dash
+
 
+
com.google.android.exoplayer2.source.dash.manifest - package com.google.android.exoplayer2.source.dash.manifest
+
 
+
com.google.android.exoplayer2.source.hls - package com.google.android.exoplayer2.source.hls
+
 
+
com.google.android.exoplayer2.source.hls.playlist - package com.google.android.exoplayer2.source.hls.playlist
+
 
+
com.google.android.exoplayer2.source.smoothstreaming - package com.google.android.exoplayer2.source.smoothstreaming
+
 
+
com.google.android.exoplayer2.source.smoothstreaming.manifest - package com.google.android.exoplayer2.source.smoothstreaming.manifest
+
 
+
com.google.android.exoplayer2.text - package com.google.android.exoplayer2.text
+
 
+
com.google.android.exoplayer2.text.cea - package com.google.android.exoplayer2.text.cea
+
 
+
com.google.android.exoplayer2.text.subrip - package com.google.android.exoplayer2.text.subrip
+
 
+
com.google.android.exoplayer2.text.ttml - package com.google.android.exoplayer2.text.ttml
+
 
+
com.google.android.exoplayer2.text.tx3g - package com.google.android.exoplayer2.text.tx3g
+
 
+
com.google.android.exoplayer2.text.webvtt - package com.google.android.exoplayer2.text.webvtt
+
 
+
com.google.android.exoplayer2.trackselection - package com.google.android.exoplayer2.trackselection
+
 
+
com.google.android.exoplayer2.ui - package com.google.android.exoplayer2.ui
+
 
+
com.google.android.exoplayer2.upstream - package com.google.android.exoplayer2.upstream
+
 
+
com.google.android.exoplayer2.upstream.cache - package com.google.android.exoplayer2.upstream.cache
+
 
+
com.google.android.exoplayer2.util - package com.google.android.exoplayer2.util
+
 
+
com.google.android.exoplayer2.video - package com.google.android.exoplayer2.video
+
 
+
commitFile(File) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Commits a file into the cache.
+
+
commitFile(File) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
compare(DrmInitData.SchemeData, DrmInitData.SchemeData) - Method in class com.google.android.exoplayer2.drm.DrmInitData
+
 
+
compare(CacheSpan, CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
+
 
+
compareTo(Long) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
compareTo(SubtitleInputBuffer) - Method in class com.google.android.exoplayer2.text.SubtitleInputBuffer
+
 
+
compareTo(CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
 
+
compile(String) - Static method in class com.google.android.exoplayer2.source.dash.manifest.UrlTemplate
+
+
Compile an instance from the provided template string.
+
+
CompositeSequenceableLoader - Class in com.google.android.exoplayer2.source
+
+
A SequenceableLoader that encapsulates multiple other SequenceableLoaders.
+
+
CompositeSequenceableLoader(SequenceableLoader[]) - Constructor for class com.google.android.exoplayer2.source.CompositeSequenceableLoader
+
 
+
ConcatenatingMediaSource - Class in com.google.android.exoplayer2.source
+
+
Concatenates multiple MediaSources.
+
+
ConcatenatingMediaSource(MediaSource...) - Constructor for class com.google.android.exoplayer2.source.ConcatenatingMediaSource
+
 
+
ConditionVariable - Class in com.google.android.exoplayer2.util
+
+
A condition variable whose ConditionVariable.open() and ConditionVariable.close() methods return whether they + resulted in a change of state.
+
+
ConditionVariable() - Constructor for class com.google.android.exoplayer2.util.ConditionVariable
+
 
+
configure(String, int, int, int, int) - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Configures (or reconfigures) the audio track.
+
+
configureCodec(MediaCodec, Format, MediaCrypto) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
configureCodec(MediaCodec, Format, MediaCrypto) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Configures a newly created MediaCodec.
+
+
configureCodec(MediaCodec, Format, MediaCrypto) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
constrainValue(int, int, int) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Constrains a value to the specified bounds.
+
+
consume(ParsableByteArray) - Method in class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader
+
+
Consumes (possibly partial) data from the current packet.
+
+
consume(byte[], int) - Method in class com.google.android.exoplayer2.source.chunk.DataChunk
+
+
Called by DataChunk.load().
+
+
ContainerMediaChunk - Class in com.google.android.exoplayer2.source.chunk
+
+
A BaseMediaChunk that uses an Extractor to decode sample data.
+
+
ContainerMediaChunk(DataSource, DataSpec, Format, int, Object, long, long, int, long, ChunkExtractorWrapper, Format) - Constructor for class com.google.android.exoplayer2.source.chunk.ContainerMediaChunk
+
 
+
containerMimeType - Variable in class com.google.android.exoplayer2.Format
+
+
The mime type of the container, or null if unknown or not applicable.
+
+
contains(Object[], Object) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Tests whether an items array contains an object equal to item, according to + Object.equals(Object).
+
+
containsTrack(int) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.SelectionOverride
+
+
Returns whether this override contains the specified track index.
+
+
ContentDataSource - Class in com.google.android.exoplayer2.upstream
+
+
A DataSource for reading from a content URI.
+
+
ContentDataSource(Context) - Constructor for class com.google.android.exoplayer2.upstream.ContentDataSource
+
 
+
ContentDataSource(Context, TransferListener<? super ContentDataSource>) - Constructor for class com.google.android.exoplayer2.upstream.ContentDataSource
+
 
+
ContentDataSource.ContentDataSourceException - Exception in com.google.android.exoplayer2.upstream
+
+
Thrown when an IOException is encountered reading from a content URI.
+
+
ContentDataSourceException(IOException) - Constructor for exception com.google.android.exoplayer2.upstream.ContentDataSource.ContentDataSourceException
+
 
+
contentId - Variable in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
Identifies the piece of content to which this Representation belongs.
+
+
contentLength - Variable in class com.google.android.exoplayer2.source.dash.manifest.Representation.SingleSegmentRepresentation
+
+
The content length, or C.LENGTH_UNSET if unknown.
+
+
contentType - Variable in exception com.google.android.exoplayer2.upstream.HttpDataSource.InvalidContentTypeException
+
 
+
continueLoading(long) - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
continueLoading(long) - Method in class com.google.android.exoplayer2.source.CompositeSequenceableLoader
+
 
+
continueLoading(long) - Method in interface com.google.android.exoplayer2.source.SequenceableLoader
+
+
Attempts to continue loading.
+
+
copyWithContainerInfo(String, String, int, int, int, int, String) - Method in class com.google.android.exoplayer2.Format
+
 
+
copyWithDrmInitData(DrmInitData) - Method in class com.google.android.exoplayer2.Format
+
 
+
copyWithGaplessInfo(int, int) - Method in class com.google.android.exoplayer2.Format
+
 
+
copyWithManifestFormatInfo(Format, boolean) - Method in class com.google.android.exoplayer2.Format
+
 
+
copyWithMaxInputSize(int) - Method in class com.google.android.exoplayer2.Format
+
 
+
copyWithSubsampleOffsetUs(long) - Method in class com.google.android.exoplayer2.Format
+
 
+
crc(byte[], int, int, int) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns the result of updating a CRC with the specified bytes in a "most significant bit first" + order.
+
+
createAudioContainerFormat(String, String, String, String, int, int, int, List<byte[]>, int, String) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createAudioSampleFormat(String, String, String, int, int, int, int, List<byte[]>, DrmInitData, int, String) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createAudioSampleFormat(String, String, String, int, int, int, int, int, List<byte[]>, DrmInitData, int, String) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createAudioSampleFormat(String, String, String, int, int, int, int, int, int, int, List<byte[]>, DrmInitData, int, String) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createCacheEntry(File) - Static method in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
+
Creates a cache span from an underlying cache file.
+
+
createChunkSource(LoaderErrorThrower, SsManifest, int, TrackSelection, TrackEncryptionBox[]) - Method in class com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource.Factory
+
 
+
createChunkSource(LoaderErrorThrower, SsManifest, int, TrackSelection, TrackEncryptionBox[]) - Method in interface com.google.android.exoplayer2.source.smoothstreaming.SsChunkSource.Factory
+
 
+
createClosedHole(String, long, long) - Static method in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
 
+
createContainerFormat(String, String, String, String, int) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createDashChunkSource(LoaderErrorThrower, DashManifest, int, int, TrackSelection, long) - Method in interface com.google.android.exoplayer2.source.dash.DashChunkSource.Factory
+
 
+
createDashChunkSource(LoaderErrorThrower, DashManifest, int, int, TrackSelection, long) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.Factory
+
 
+
createDataSink() - Method in class com.google.android.exoplayer2.upstream.cache.CacheDataSinkFactory
+
 
+
createDataSink() - Method in interface com.google.android.exoplayer2.upstream.DataSink.Factory
+
+
Creates a DataSink instance.
+
+
createDataSource() - Method in class com.google.android.exoplayer2.upstream.cache.CacheDataSourceFactory
+
 
+
createDataSource() - Method in interface com.google.android.exoplayer2.upstream.DataSource.Factory
+
+
Creates a DataSource instance.
+
+
createDataSource() - Method in class com.google.android.exoplayer2.upstream.DefaultDataSourceFactory
+
 
+
createDataSource() - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory
+
 
+
createDataSource() - Method in class com.google.android.exoplayer2.upstream.FileDataSourceFactory
+
 
+
createDataSource() - Method in interface com.google.android.exoplayer2.upstream.HttpDataSource.Factory
+
 
+
createDecoder(Format) - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
+
Creates a decoder for the given format.
+
+
createDecoder(Format) - Method in interface com.google.android.exoplayer2.text.SubtitleDecoderFactory
+
+
Creates a SubtitleDecoder for the given Format.
+
+
createExtractors() - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorsFactory
+
 
+
createExtractors() - Method in interface com.google.android.exoplayer2.extractor.ExtractorsFactory
+
+
Returns an array of new Extractor instances.
+
+
createForRenderer(Exception, int) - Static method in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
Creates an instance of type ExoPlaybackException.TYPE_RENDERER.
+
+
createForSource(IOException) - Static method in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
Creates an instance of type ExoPlaybackException.TYPE_SOURCE.
+
+
createFromCaptionStyle(CaptioningManager.CaptionStyle) - Static method in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
Creates a CaptionStyleCompat equivalent to a provided CaptioningManager.CaptionStyle.
+
+
createImageSampleFormat(String, String, String, int, List<byte[]>, String, DrmInitData) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createInputBuffer() - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
+
Creates a new input buffer.
+
+
createInputBuffer() - Method in class com.google.android.exoplayer2.text.SimpleSubtitleDecoder
+
 
+
createLookup(String, long) - Static method in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
 
+
createMediaCrypto(UUID, byte[]) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
createMediaCrypto(UUID, byte[]) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
createMediaPlaylistHlsUrl(String) - Static method in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
+
 
+
createOpenHole(String, long) - Static method in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
 
+
createOutputBuffer() - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
+
Creates a new output buffer.
+
+
createOutputBuffer() - Method in class com.google.android.exoplayer2.text.SimpleSubtitleDecoder
+
 
+
createPeriod(int, Allocator, long) - Method in class com.google.android.exoplayer2.source.ConcatenatingMediaSource
+
 
+
createPeriod(int, Allocator, long) - Method in class com.google.android.exoplayer2.source.dash.DashMediaSource
+
 
+
createPeriod(int, Allocator, long) - Method in class com.google.android.exoplayer2.source.ExtractorMediaSource
+
 
+
createPeriod(int, Allocator, long) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
+
 
+
createPeriod(int, Allocator, long) - Method in class com.google.android.exoplayer2.source.LoopingMediaSource
+
 
+
createPeriod(int, Allocator, long) - Method in interface com.google.android.exoplayer2.source.MediaSource
+
+
Returns a MediaPeriod corresponding to the period at the specified index.
+
+
createPeriod(int, Allocator, long) - Method in class com.google.android.exoplayer2.source.MergingMediaSource
+
 
+
createPeriod(int, Allocator, long) - Method in class com.google.android.exoplayer2.source.SingleSampleMediaSource
+
 
+
createPeriod(int, Allocator, long) - Method in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
createSampleFormat(String, String, String, int, DrmInitData) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createStreamReader(int, ElementaryStreamReader.EsInfo) - Method in class com.google.android.exoplayer2.extractor.ts.DefaultStreamReaderFactory
+
 
+
createStreamReader(int, ElementaryStreamReader.EsInfo) - Method in interface com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.Factory
+
+
Returns an ElementaryStreamReader for a given PMT entry.
+
+
createSubtitle() - Method in class com.google.android.exoplayer2.text.cea.Cea608Decoder
+
 
+
createTextContainerFormat(String, String, String, String, int, int, String) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createTextSampleFormat(String, String, String, int, int, String, DrmInitData) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createTextSampleFormat(String, String, String, int, int, String, DrmInitData, long) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createTrackSelection(TrackGroup, int...) - Method in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection.Factory
+
 
+
createTrackSelection(TrackGroup, int...) - Method in class com.google.android.exoplayer2.trackselection.FixedTrackSelection.Factory
+
 
+
createTrackSelection(TrackGroupArray) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.SelectionOverride
+
+
Creates an selection from this override.
+
+
createTrackSelection(TrackGroup, int...) - Method in class com.google.android.exoplayer2.trackselection.RandomTrackSelection.Factory
+
 
+
createTrackSelection(TrackGroup, int...) - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection.Factory
+
+
Creates a new selection.
+
+
createVideoContainerFormat(String, String, String, String, int, int, int, float, List<byte[]>) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createVideoSampleFormat(String, String, String, int, int, int, int, float, List<byte[]>, DrmInitData) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createVideoSampleFormat(String, String, String, int, int, int, int, float, List<byte[]>, int, float, DrmInitData) - Static method in class com.google.android.exoplayer2.Format
+
 
+
createVideoSampleFormat(String, String, String, int, int, int, int, float, List<byte[]>, int, float, byte[], int, DrmInitData) - Static method in class com.google.android.exoplayer2.Format
+
 
+
CREATOR - Static variable in class com.google.android.exoplayer2.drm.DrmInitData
+
 
+
CREATOR - Static variable in class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
 
+
CREATOR - Static variable in class com.google.android.exoplayer2.Format
+
+
Creator implementation.
+
+
CRYPTO_MODE_AES_CBC - Static variable in class com.google.android.exoplayer2.C
+
 
+
CRYPTO_MODE_AES_CTR - Static variable in class com.google.android.exoplayer2.C
+
 
+
CRYPTO_MODE_UNENCRYPTED - Static variable in class com.google.android.exoplayer2.C
+
 
+
CryptoInfo - Class in com.google.android.exoplayer2.decoder
+
+
Compatibility wrapper for MediaCodec.CryptoInfo.
+
+
CryptoInfo() - Constructor for class com.google.android.exoplayer2.decoder.CryptoInfo
+
 
+
cryptoInfo - Variable in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
+
CryptoInfo for encrypted data.
+
+
Cue - Class in com.google.android.exoplayer2.text
+
+
Contains information about a specific cue, including textual content and formatting data.
+
+
Cue(CharSequence) - Constructor for class com.google.android.exoplayer2.text.Cue
+
+
Constructs a cue whose Cue.textAlignment is null, whose type parameters are set to + Cue.TYPE_UNSET and whose dimension parameters are set to Cue.DIMEN_UNSET.
+
+
Cue(CharSequence, Layout.Alignment, float, int, int, float, int, float) - Constructor for class com.google.android.exoplayer2.text.Cue
+
 
+
Cue.AnchorType - Annotation Type in com.google.android.exoplayer2.text
+
+
The type of anchor, which may be unset.
+
+
Cue.LineType - Annotation Type in com.google.android.exoplayer2.text
+
+
The type of line, which may be unset.
+
+
CURRENT_POSITION_NOT_SET - Static variable in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Returned by AudioTrack.getCurrentPositionUs(boolean) when the position is not set.
+
+
+ + + +

D

+
+
DashChunkSource - Interface in com.google.android.exoplayer2.source.dash
+
+
An ChunkSource for DASH streams.
+
+
DashChunkSource.Factory - Interface in com.google.android.exoplayer2.source.dash
+
 
+
DashManifest - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
Represents a DASH media presentation description (mpd).
+
+
DashManifest(long, long, long, boolean, long, long, long, UtcTimingElement, Uri, List<Period>) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
DashManifestParser - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
A parser of media presentation description files.
+
+
DashManifestParser() - Constructor for class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
+
Equivalent to calling new DashManifestParser(null).
+
+
DashManifestParser(String) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
DashMediaSource - Class in com.google.android.exoplayer2.source.dash
+
+
A DASH MediaSource.
+
+
DashMediaSource(Uri, DataSource.Factory, DashChunkSource.Factory, Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.dash.DashMediaSource
+
 
+
DashMediaSource(Uri, DataSource.Factory, DashChunkSource.Factory, int, long, Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.dash.DashMediaSource
+
 
+
DashSegmentIndex - Interface in com.google.android.exoplayer2.source.dash
+
+
Indexes the segments within a media stream.
+
+
data - Variable in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
+
The buffer's data, or null if no data has been set.
+
+
data - Variable in class com.google.android.exoplayer2.decoder.SimpleOutputBuffer
+
 
+
data - Variable in class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
+
The initialization data.
+
+
data - Variable in class com.google.android.exoplayer2.metadata.id3.BinaryFrame
+
 
+
data - Variable in class com.google.android.exoplayer2.metadata.id3.GeobFrame
+
 
+
data - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.ProtectionElement
+
 
+
data - Variable in class com.google.android.exoplayer2.upstream.Allocation
+
+
The array containing the allocated space.
+
+
data - Variable in class com.google.android.exoplayer2.util.ParsableBitArray
+
 
+
data - Variable in class com.google.android.exoplayer2.util.ParsableByteArray
+
 
+
DATA_TYPE_CUSTOM_BASE - Static variable in class com.google.android.exoplayer2.C
+
+
Applications or extensions may define custom DATA_TYPE_* constants greater than or + equal to this value.
+
+
DATA_TYPE_DRM - Static variable in class com.google.android.exoplayer2.C
+
+
A data type constant for drm or encryption data.
+
+
DATA_TYPE_MANIFEST - Static variable in class com.google.android.exoplayer2.C
+
+
A data type constant for a manifest file.
+
+
DATA_TYPE_MEDIA - Static variable in class com.google.android.exoplayer2.C
+
+
A data type constant for media, typically containing media samples.
+
+
DATA_TYPE_MEDIA_INITIALIZATION - Static variable in class com.google.android.exoplayer2.C
+
+
A data type constant for media, typically containing only initialization data.
+
+
DATA_TYPE_TIME_SYNCHRONIZATION - Static variable in class com.google.android.exoplayer2.C
+
+
A data type constant for time synchronization data.
+
+
DATA_TYPE_UNKNOWN - Static variable in class com.google.android.exoplayer2.C
+
+
A data type constant for data of unknown or unspecified type.
+
+
DataChunk - Class in com.google.android.exoplayer2.source.chunk
+
+
A base class for Chunk implementations where the data should be loaded into a + byte[] before being consumed.
+
+
DataChunk(DataSource, DataSpec, int, Format, int, Object, byte[]) - Constructor for class com.google.android.exoplayer2.source.chunk.DataChunk
+
 
+
DataSink - Interface in com.google.android.exoplayer2.upstream
+
+
A component to which streams of data can be written.
+
+
DataSink.Factory - Interface in com.google.android.exoplayer2.upstream
+
+
A factory for DataSink instances.
+
+
dataSource - Variable in class com.google.android.exoplayer2.source.chunk.Chunk
+
 
+
DataSource - Interface in com.google.android.exoplayer2.upstream
+
+
A component from which streams of data can be read.
+
+
DataSource.Factory - Interface in com.google.android.exoplayer2.upstream
+
+
A factory for DataSource instances.
+
+
DataSourceException - Exception in com.google.android.exoplayer2.upstream
+
+
Used to specify reason of a DataSource error.
+
+
DataSourceException(int) - Constructor for exception com.google.android.exoplayer2.upstream.DataSourceException
+
+
Constructs a DataSourceException.
+
+
DataSourceInputStream - Class in com.google.android.exoplayer2.upstream
+
+
Allows data corresponding to a given DataSpec to be read from a DataSource and + consumed through an InputStream.
+
+
DataSourceInputStream(DataSource, DataSpec) - Constructor for class com.google.android.exoplayer2.upstream.DataSourceInputStream
+
 
+
dataSpec - Variable in class com.google.android.exoplayer2.source.chunk.Chunk
+
+
The DataSpec that defines the data to be loaded.
+
+
DataSpec - Class in com.google.android.exoplayer2.upstream
+
+
Defines a region of data.
+
+
DataSpec(Uri) - Constructor for class com.google.android.exoplayer2.upstream.DataSpec
+
+
Construct a DataSpec for the given uri and with DataSpec.key set to null.
+
+
DataSpec(Uri, int) - Constructor for class com.google.android.exoplayer2.upstream.DataSpec
+
+
Construct a DataSpec for the given uri and with DataSpec.key set to null.
+
+
DataSpec(Uri, long, long, String) - Constructor for class com.google.android.exoplayer2.upstream.DataSpec
+
+ +
+
DataSpec(Uri, long, long, String, int) - Constructor for class com.google.android.exoplayer2.upstream.DataSpec
+
+ +
+
DataSpec(Uri, long, long, long, String, int) - Constructor for class com.google.android.exoplayer2.upstream.DataSpec
+
+
Construct a DataSpec where DataSpec.position may differ from + DataSpec.absoluteStreamPosition.
+
+
DataSpec(Uri, byte[], long, long, long, String, int) - Constructor for class com.google.android.exoplayer2.upstream.DataSpec
+
+
Construct a DataSpec where DataSpec.position may differ from + DataSpec.absoluteStreamPosition.
+
+
dataSpec - Variable in exception com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
+
+
The DataSpec associated with the current connection.
+
+
dataSpec - Variable in class com.google.android.exoplayer2.upstream.ParsingLoadable
+
+
The DataSpec that defines the data to be loaded.
+
+
DataSpec.Flags - Annotation Type in com.google.android.exoplayer2.upstream
+
+
The flags that apply to any request for data.
+
+
DEAFULT_SOCKET_TIMEOUT_MILLIS - Static variable in class com.google.android.exoplayer2.upstream.UdpDataSource
+
+
The default socket timeout, in milliseconds.
+
+
DebugTextViewHelper - Class in com.google.android.exoplayer2.ui
+
+
A helper class for periodically updating a TextView with debug information obtained from + a SimpleExoPlayer.
+
+
DebugTextViewHelper(SimpleExoPlayer, TextView) - Constructor for class com.google.android.exoplayer2.ui.DebugTextViewHelper
+
 
+
decode(I, O, boolean) - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
+
Decodes the inputBuffer and stores any decoded output in outputBuffer.
+
+
decode(byte[], int) - Method in class com.google.android.exoplayer2.metadata.id3.Id3Decoder
+
 
+
decode(byte[], int) - Method in interface com.google.android.exoplayer2.metadata.MetadataDecoder
+
+
Decodes a metadata object from the provided binary data.
+
+
decode(SubtitleInputBuffer) - Method in class com.google.android.exoplayer2.text.cea.Cea608Decoder
+
 
+
decode(SubtitleInputBuffer, SubtitleOutputBuffer, boolean) - Method in class com.google.android.exoplayer2.text.SimpleSubtitleDecoder
+
 
+
decode(byte[], int) - Method in class com.google.android.exoplayer2.text.SimpleSubtitleDecoder
+
+
Decodes data into a Subtitle.
+
+
decode(byte[], int) - Method in class com.google.android.exoplayer2.text.subrip.SubripDecoder
+
 
+
decode(byte[], int) - Method in class com.google.android.exoplayer2.text.ttml.TtmlDecoder
+
 
+
decode(byte[], int) - Method in class com.google.android.exoplayer2.text.tx3g.Tx3gDecoder
+
 
+
decode(byte[], int) - Method in class com.google.android.exoplayer2.text.webvtt.Mp4WebvttDecoder
+
 
+
decode(byte[], int) - Method in class com.google.android.exoplayer2.text.webvtt.WebvttDecoder
+
 
+
Decoder<I,O,E extends java.lang.Exception> - Interface in com.google.android.exoplayer2.decoder
+
+
A media decoder.
+
+
DecoderCounters - Class in com.google.android.exoplayer2.decoder
+
+
Maintains decoder event counts, for debugging purposes only.
+
+
DecoderCounters() - Constructor for class com.google.android.exoplayer2.decoder.DecoderCounters
+
 
+
decoderCounters - Variable in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
decoderInitCount - Variable in class com.google.android.exoplayer2.decoder.DecoderCounters
+
+
The number of times a decoder has been initialized.
+
+
DecoderInitializationException(Format, Throwable, boolean, int) - Constructor for exception com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException
+
 
+
DecoderInitializationException(Format, Throwable, boolean, String) - Constructor for exception com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException
+
 
+
decoderInitialized(String, long, long) - Method in class com.google.android.exoplayer2.audio.AudioRendererEventListener.EventDispatcher
+
+ +
+
decoderInitialized(String, long, long) - Method in class com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
+
+ +
+
DecoderInputBuffer - Class in com.google.android.exoplayer2.decoder
+
+
Holds input for a decoder.
+
+
DecoderInputBuffer(int) - Constructor for class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
 
+
DecoderInputBuffer.BufferReplacementMode - Annotation Type in com.google.android.exoplayer2.decoder
+
+
The buffer replacement mode, which may disable replacement.
+
+
decoderName - Variable in exception com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException
+
+
The name of the decoder that failed to initialize.
+
+
decoderReleaseCount - Variable in class com.google.android.exoplayer2.decoder.DecoderCounters
+
+
The number of times a decoder has been released.
+
+
DEFAULT - Static variable in interface com.google.android.exoplayer2.mediacodec.MediaCodecSelector
+
+
Default implementation of MediaCodecSelector.
+
+
DEFAULT - Static variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
Default caption style.
+
+
DEFAULT - Static variable in interface com.google.android.exoplayer2.text.SubtitleDecoderFactory
+
+
Default SubtitleDecoderFactory implementation.
+
+
DEFAULT_ALLOWED_VIDEO_JOINING_TIME_MS - Static variable in class com.google.android.exoplayer2.ExoPlayerFactory
+
+
The default maximum duration for which a video renderer can attempt to seamlessly join an + ongoing playback.
+
+
DEFAULT_AUDIO_BUFFER_SIZE - Static variable in class com.google.android.exoplayer2.C
+
+
A default size in bytes for an audio buffer.
+
+
DEFAULT_AUDIO_CAPABILITIES - Static variable in class com.google.android.exoplayer2.audio.AudioCapabilities
+
+
The minimum audio capabilities supported by all devices.
+
+
DEFAULT_BANDWIDTH_FRACTION - Static variable in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
DEFAULT_BOTTOM_PADDING_FRACTION - Static variable in class com.google.android.exoplayer2.ui.SubtitleView
+
+
The default bottom padding to apply when Cue.line is Cue.DIMEN_UNSET, as a + fraction of the viewport height.
+
+
DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS - Static variable in class com.google.android.exoplayer2.DefaultLoadControl
+
+
The default duration of media that must be buffered for playback to resume after a rebuffer, + in milliseconds.
+
+
DEFAULT_BUFFER_FOR_PLAYBACK_MS - Static variable in class com.google.android.exoplayer2.DefaultLoadControl
+
+
The default duration of media that must be buffered for playback to start or resume following a + user action such as a seek, in milliseconds.
+
+
DEFAULT_BUFFER_SEGMENT_SIZE - Static variable in class com.google.android.exoplayer2.C
+
+
A default size in bytes for an individual allocation that forms part of a larger buffer.
+
+
DEFAULT_CONNECT_TIMEOUT_MILLIS - Static variable in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
+
The default connection timeout, in milliseconds.
+
+
DEFAULT_FAST_FORWARD_MS - Static variable in class com.google.android.exoplayer2.ui.PlaybackControlView
+
 
+
DEFAULT_LIVE_PRESENTATION_DELAY_FIXED_MS - Static variable in class com.google.android.exoplayer2.source.dash.DashMediaSource
+
+
A fixed default presentation delay for live streams.
+
+
DEFAULT_LIVE_PRESENTATION_DELAY_MS - Static variable in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
+
The default presentation delay for live streams.
+
+
DEFAULT_LIVE_PRESENTATION_DELAY_PREFER_MANIFEST_MS - Static variable in class com.google.android.exoplayer2.source.dash.DashMediaSource
+
+
A constant indicating that the presentation delay for live streams should be set to + DashManifest.suggestedPresentationDelay if specified by the manifest, or + DashMediaSource.DEFAULT_LIVE_PRESENTATION_DELAY_FIXED_MS otherwise.
+
+
DEFAULT_MAX_BUFFER_MS - Static variable in class com.google.android.exoplayer2.DefaultLoadControl
+
+
The default maximum duration of media that the player will attempt to buffer, in milliseconds.
+
+
DEFAULT_MAX_CACHE_FILE_SIZE - Static variable in class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
+
Default maximum single cache file size.
+
+
DEFAULT_MAX_DURATION_FOR_QUALITY_DECREASE_MS - Static variable in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
DEFAULT_MAX_INITIAL_BITRATE - Static variable in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
DEFAULT_MAX_PACKET_SIZE - Static variable in class com.google.android.exoplayer2.upstream.UdpDataSource
+
+
The default maximum datagram packet size, in bytes.
+
+
DEFAULT_MAX_WEIGHT - Static variable in class com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
+
+
The default maximum weight for the sliding window.
+
+
DEFAULT_METADATA_BUFFER_SIZE - Static variable in class com.google.android.exoplayer2.C
+
+
A default size in bytes for a metadata buffer.
+
+
DEFAULT_MIN_BUFFER_MS - Static variable in class com.google.android.exoplayer2.DefaultLoadControl
+
+
The default minimum duration of media that the player will attempt to ensure is buffered at all + times, in milliseconds.
+
+
DEFAULT_MIN_DURATION_FOR_QUALITY_INCREASE_MS - Static variable in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
DEFAULT_MIN_DURATION_TO_RETAIN_AFTER_DISCARD_MS - Static variable in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
DEFAULT_MIN_LOADABLE_RETRY_COUNT - Static variable in class com.google.android.exoplayer2.source.dash.DashMediaSource
+
+
The default minimum number of times to retry loading data prior to failing.
+
+
DEFAULT_MIN_LOADABLE_RETRY_COUNT - Static variable in class com.google.android.exoplayer2.source.hls.HlsMediaSource
+
+
The default minimum number of times to retry loading data prior to failing.
+
+
DEFAULT_MIN_LOADABLE_RETRY_COUNT - Static variable in class com.google.android.exoplayer2.source.SingleSampleMediaSource
+
+
The default minimum number of times to retry loading data prior to failing.
+
+
DEFAULT_MIN_LOADABLE_RETRY_COUNT - Static variable in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
+
The default minimum number of times to retry loading data prior to failing.
+
+
DEFAULT_MIN_LOADABLE_RETRY_COUNT_LIVE - Static variable in class com.google.android.exoplayer2.source.ExtractorMediaSource
+
+
The default minimum number of times to retry loading prior to failing for live streams.
+
+
DEFAULT_MIN_LOADABLE_RETRY_COUNT_ON_DEMAND - Static variable in class com.google.android.exoplayer2.source.ExtractorMediaSource
+
+
The default minimum number of times to retry loading prior to failing for on-demand streams.
+
+
DEFAULT_MUXED_BUFFER_SIZE - Static variable in class com.google.android.exoplayer2.C
+
+
A default size in bytes for a muxed buffer (e.g.
+
+
DEFAULT_READ_TIMEOUT_MILLIS - Static variable in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
+
The default read timeout, in milliseconds.
+
+
DEFAULT_REWIND_MS - Static variable in class com.google.android.exoplayer2.ui.PlaybackControlView
+
 
+
DEFAULT_SHOW_TIMEOUT_MS - Static variable in class com.google.android.exoplayer2.ui.PlaybackControlView
+
 
+
DEFAULT_TEXT_BUFFER_SIZE - Static variable in class com.google.android.exoplayer2.C
+
+
A default size in bytes for a text buffer.
+
+
DEFAULT_TEXT_SIZE_FRACTION - Static variable in class com.google.android.exoplayer2.ui.SubtitleView
+
+
The default fractional text size.
+
+
DEFAULT_TRACK_BLACKLIST_MS - Static variable in class com.google.android.exoplayer2.source.chunk.ChunkedTrackBlacklistUtil
+
+
The default duration for which a track is blacklisted in milliseconds.
+
+
DEFAULT_VIDEO_BUFFER_SIZE - Static variable in class com.google.android.exoplayer2.C
+
+
A default size in bytes for a video buffer.
+
+
DefaultAllocator - Class in com.google.android.exoplayer2.upstream
+
+
Default implementation of Allocator.
+
+
DefaultAllocator(boolean, int) - Constructor for class com.google.android.exoplayer2.upstream.DefaultAllocator
+
+
Constructs an instance without creating any Allocations up front.
+
+
DefaultAllocator(boolean, int, int) - Constructor for class com.google.android.exoplayer2.upstream.DefaultAllocator
+
+
Constructs an instance with some Allocations created up front.
+
+
DefaultBandwidthMeter - Class in com.google.android.exoplayer2.upstream
+
+
Estimates bandwidth by listening to data transfers.
+
+
DefaultBandwidthMeter() - Constructor for class com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
+
 
+
DefaultBandwidthMeter(Handler, BandwidthMeter.EventListener) - Constructor for class com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
+
 
+
DefaultBandwidthMeter(Handler, BandwidthMeter.EventListener, int) - Constructor for class com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
+
 
+
DefaultDashChunkSource - Class in com.google.android.exoplayer2.source.dash
+
+
A default DashChunkSource implementation.
+
+
DefaultDashChunkSource(LoaderErrorThrower, DashManifest, int, int, TrackSelection, DataSource, long) - Constructor for class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource
+
 
+
DefaultDashChunkSource.Factory - Class in com.google.android.exoplayer2.source.dash
+
 
+
DefaultDashChunkSource.RepresentationHolder - Class in com.google.android.exoplayer2.source.dash
+
 
+
DefaultDataSource - Class in com.google.android.exoplayer2.upstream
+
+
A DataSource that supports multiple URI schemes.
+
+
DefaultDataSource(Context, TransferListener<? super DataSource>, String, boolean) - Constructor for class com.google.android.exoplayer2.upstream.DefaultDataSource
+
+
Constructs a new instance, optionally configured to follow cross-protocol redirects.
+
+
DefaultDataSource(Context, TransferListener<? super DataSource>, String, int, int, boolean) - Constructor for class com.google.android.exoplayer2.upstream.DefaultDataSource
+
+
Constructs a new instance, optionally configured to follow cross-protocol redirects.
+
+
DefaultDataSource(Context, TransferListener<? super DataSource>, DataSource) - Constructor for class com.google.android.exoplayer2.upstream.DefaultDataSource
+
+
Constructs a new instance that delegates to a provided DataSource for URI schemes other + than file, asset and content.
+
+
DefaultDataSourceFactory - Class in com.google.android.exoplayer2.upstream
+
+
A DataSource.Factory that produces DefaultDataSource instances that delegate to + DefaultHttpDataSources for non-file/asset/content URIs.
+
+
DefaultDataSourceFactory(Context, String) - Constructor for class com.google.android.exoplayer2.upstream.DefaultDataSourceFactory
+
 
+
DefaultDataSourceFactory(Context, String, TransferListener<? super DataSource>) - Constructor for class com.google.android.exoplayer2.upstream.DefaultDataSourceFactory
+
 
+
DefaultDataSourceFactory(Context, TransferListener<? super DataSource>, DataSource.Factory) - Constructor for class com.google.android.exoplayer2.upstream.DefaultDataSourceFactory
+
 
+
DefaultExtractorInput - Class in com.google.android.exoplayer2.extractor
+
+
An ExtractorInput that wraps a DataSource.
+
+
DefaultExtractorInput(DataSource, long, long) - Constructor for class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
DefaultExtractorsFactory - Class in com.google.android.exoplayer2.extractor
+
+
An ExtractorsFactory that provides an array of extractors for the following formats: + + + MP4, including M4A (Mp4Extractor) + fMP4 (FragmentedMp4Extractor) + Matroska and WebM (MatroskaExtractor) + + Ogg Vorbis/FLAC (OggExtractor + MP3 (Mp3Extractor) + AAC (AdtsExtractor) + MPEG TS (TsExtractor) + MPEG PS (PsExtractor) + FLV (FlvExtractor) + WAV (WavExtractor) + FLAC (only available if the FLAC extension is built and included) +
+
+
DefaultExtractorsFactory() - Constructor for class com.google.android.exoplayer2.extractor.DefaultExtractorsFactory
+
+
Creates a new factory for the default extractors.
+
+
DefaultHttpDataSource - Class in com.google.android.exoplayer2.upstream
+
+
An HttpDataSource that uses Android's HttpURLConnection.
+
+
DefaultHttpDataSource(String, Predicate<String>) - Constructor for class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
DefaultHttpDataSource(String, Predicate<String>, TransferListener<? super DefaultHttpDataSource>) - Constructor for class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
DefaultHttpDataSource(String, Predicate<String>, TransferListener<? super DefaultHttpDataSource>, int, int) - Constructor for class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
DefaultHttpDataSource(String, Predicate<String>, TransferListener<? super DefaultHttpDataSource>, int, int, boolean) - Constructor for class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
DefaultHttpDataSourceFactory - Class in com.google.android.exoplayer2.upstream
+
+ +
+
DefaultHttpDataSourceFactory(String) - Constructor for class com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory
+
+
Constructs a DefaultHttpDataSourceFactory.
+
+
DefaultHttpDataSourceFactory(String, TransferListener<? super DataSource>) - Constructor for class com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory
+
+
Constructs a DefaultHttpDataSourceFactory.
+
+
DefaultHttpDataSourceFactory(String, TransferListener<? super DataSource>, int, int, boolean) - Constructor for class com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory
+
 
+
DefaultLoadControl - Class in com.google.android.exoplayer2
+
+
The default LoadControl implementation.
+
+
DefaultLoadControl() - Constructor for class com.google.android.exoplayer2.DefaultLoadControl
+
+
Constructs a new instance, using the DEFAULT_* constants defined in this class.
+
+
DefaultLoadControl(DefaultAllocator) - Constructor for class com.google.android.exoplayer2.DefaultLoadControl
+
+
Constructs a new instance, using the DEFAULT_* constants defined in this class.
+
+
DefaultLoadControl(DefaultAllocator, int, int, long, long) - Constructor for class com.google.android.exoplayer2.DefaultLoadControl
+
+
Constructs a new instance.
+
+
DefaultSsChunkSource - Class in com.google.android.exoplayer2.source.smoothstreaming
+
+
A default SsChunkSource implementation.
+
+
DefaultSsChunkSource(LoaderErrorThrower, SsManifest, int, TrackSelection, DataSource, TrackEncryptionBox[]) - Constructor for class com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
+
 
+
DefaultSsChunkSource.Factory - Class in com.google.android.exoplayer2.source.smoothstreaming
+
 
+
DefaultStreamReaderFactory - Class in com.google.android.exoplayer2.extractor.ts
+
+
Default implementation for ElementaryStreamReader.Factory.
+
+
DefaultStreamReaderFactory() - Constructor for class com.google.android.exoplayer2.extractor.ts.DefaultStreamReaderFactory
+
 
+
DefaultStreamReaderFactory(int) - Constructor for class com.google.android.exoplayer2.extractor.ts.DefaultStreamReaderFactory
+
 
+
DefaultStreamReaderFactory.Flags - Annotation Type in com.google.android.exoplayer2.extractor.ts
+
+
Flags controlling elementary stream readers behaviour.
+
+
DefaultTrackOutput - Class in com.google.android.exoplayer2.extractor
+
+
A TrackOutput that buffers extracted samples in a queue and allows for consumption from + that queue.
+
+
DefaultTrackOutput(Allocator) - Constructor for class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
 
+
DefaultTrackOutput.UpstreamFormatChangedListener - Interface in com.google.android.exoplayer2.extractor
+
+
A listener for changes to the upstream format.
+
+
DefaultTrackSelector - Class in com.google.android.exoplayer2.trackselection
+
+
A MappingTrackSelector that allows configuration of common parameters.
+
+
DefaultTrackSelector(Handler) - Constructor for class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
+
+
Constructs an instance that does not support adaptive video.
+
+
DefaultTrackSelector(Handler, TrackSelection.Factory) - Constructor for class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
+
+
Constructs an instance that uses a factory to create adaptive video track selections.
+
+
DefaultTrackSelector.Parameters - Class in com.google.android.exoplayer2.trackselection
+
+
Holder for available configurations for the DefaultTrackSelector.
+
+
deltaPicOrderAlwaysZeroFlag - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
dequeueInputBuffer() - Method in interface com.google.android.exoplayer2.decoder.Decoder
+
+
Dequeues the next input buffer to be filled and queued to the decoder.
+
+
dequeueInputBuffer() - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
 
+
dequeueOutputBuffer() - Method in interface com.google.android.exoplayer2.decoder.Decoder
+
+
Dequeues the next output buffer from the decoder.
+
+
dequeueOutputBuffer() - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
 
+
describeContents() - Method in class com.google.android.exoplayer2.drm.DrmInitData
+
 
+
describeContents() - Method in class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
 
+
describeContents() - Method in class com.google.android.exoplayer2.Format
+
 
+
description - Variable in class com.google.android.exoplayer2.metadata.id3.ApicFrame
+
 
+
description - Variable in class com.google.android.exoplayer2.metadata.id3.GeobFrame
+
 
+
description - Variable in class com.google.android.exoplayer2.metadata.id3.TextInformationFrame
+
 
+
description - Variable in class com.google.android.exoplayer2.metadata.id3.TxxxFrame
+
 
+
descriptorBytes - Variable in class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.EsInfo
+
 
+
DEVICE - Static variable in class com.google.android.exoplayer2.util.Util
+
+
Like Build.DEVICE, but in a place where it can be conveniently overridden for local + testing.
+
+
diagnosticInfo - Variable in exception com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException
+
+
An optional developer-readable diagnostic information string.
+
+
DIMEN_UNSET - Static variable in class com.google.android.exoplayer2.text.Cue
+
+
An unset position or width.
+
+
disable() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
disable() - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Disables buffering of sample data and metadata.
+
+
disable() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Disable the renderer, transitioning it to the Renderer.STATE_DISABLED state.
+
+
disable() - Method in class com.google.android.exoplayer2.video.VideoFrameReleaseTimeHelper
+
+
Disables the helper.
+
+
disabled(DecoderCounters) - Method in class com.google.android.exoplayer2.audio.AudioRendererEventListener.EventDispatcher
+
+ +
+
disabled(DecoderCounters) - Method in class com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
+
+ +
+
discardToSps(ByteBuffer) - Static method in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Discards data from the buffer up to the first SPS, where data.position() is interpreted + as the length of the buffer.
+
+
discardUpstreamSamples(int) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Discards samples from the write side of the buffer.
+
+
discontinuitySequenceNumber - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
dispatchDraw(Canvas) - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
 
+
dispatchKeyEvent(KeyEvent) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
 
+
dispatchKeyEvent(KeyEvent) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
 
+
displayHeight - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
displayWidth - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
DO_NOT_OFFSET - Static variable in class com.google.android.exoplayer2.extractor.TimestampAdjuster
+
+
A special firstSampleTimestampUs value indicating that presentation timestamps should + not be offset.
+
+
DONT_RETRY - Static variable in class com.google.android.exoplayer2.upstream.Loader
+
 
+
DONT_RETRY_FATAL - Static variable in class com.google.android.exoplayer2.upstream.Loader
+
 
+
downstreamFormatChanged(int, Format, int, Object, long) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
DrmInitData - Class in com.google.android.exoplayer2.drm
+
+
Initialization data for one or more DRM schemes.
+
+
DrmInitData(List<DrmInitData.SchemeData>) - Constructor for class com.google.android.exoplayer2.drm.DrmInitData
+
 
+
DrmInitData(DrmInitData.SchemeData...) - Constructor for class com.google.android.exoplayer2.drm.DrmInitData
+
 
+
drmInitData - Variable in class com.google.android.exoplayer2.Format
+
+
DRM initialization data if the stream is protected, or null otherwise.
+
+
DrmInitData.SchemeData - Class in com.google.android.exoplayer2.drm
+
+
Scheme initialization data.
+
+
DrmSession<T extends ExoMediaCrypto> - Interface in com.google.android.exoplayer2.drm
+
+
A DRM session.
+
+
DrmSession.State - Annotation Type in com.google.android.exoplayer2.drm
+
+
The state of the DRM session.
+
+
DrmSessionManager<T extends ExoMediaCrypto> - Interface in com.google.android.exoplayer2.drm
+
+
Manages a DRM session.
+
+
droppedFrames(int, long) - Method in class com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
+
+ +
+
droppedOutputBufferCount - Variable in class com.google.android.exoplayer2.decoder.DecoderCounters
+
+
The number of dropped output buffers.
+
+
DtsUtil - Class in com.google.android.exoplayer2.audio
+
+
Utility methods for parsing DTS frames.
+
+
DummyTrackOutput - Class in com.google.android.exoplayer2.extractor
+
+
A dummy TrackOutput implementation.
+
+
DummyTrackOutput() - Constructor for class com.google.android.exoplayer2.extractor.DummyTrackOutput
+
 
+
duration - Variable in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
durationSecs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
durationsUs - Variable in class com.google.android.exoplayer2.extractor.ChunkIndex
+
+
The chunk durations, in microseconds.
+
+
durationUs - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
The duration of the track in microseconds, or C.TIME_UNSET if unknown.
+
+
durationUs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
durationUs - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
+
The overall presentation duration of the media in microseconds, or C.TIME_UNSET + if the duration is unknown.
+
+
durationUs() - Method in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
dvrWindowLengthUs - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
+
The length of the trailing window for a live broadcast in microseconds, or + C.TIME_UNSET if the stream is not live or if the window length is unspecified.
+
+
dynamic - Variable in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
+ + + +

E

+
+
EDGE_TYPE_DEPRESSED - Static variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
Edge type value specifying depressed bevel character edges.
+
+
EDGE_TYPE_DROP_SHADOW - Static variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
Edge type value specifying drop-shadowed character edges.
+
+
EDGE_TYPE_NONE - Static variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
Edge type value specifying no character edges.
+
+
EDGE_TYPE_OUTLINE - Static variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
Edge type value specifying uniformly outlined character edges.
+
+
EDGE_TYPE_RAISED - Static variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
Edge type value specifying raised bevel character edges.
+
+
edgeColor - Variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
The preferred edge color, if using an edge type other than CaptionStyleCompat.EDGE_TYPE_NONE.
+
+
edgeType - Variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
The preferred edge type.
+
+
editListDurations - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
Durations of edit list segments in the movie timescale.
+
+
editListMediaTimes - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
Media times for edit list segments in the track timescale.
+
+
elapsedRealtime() - Method in interface com.google.android.exoplayer2.util.Clock
+
+
Returns SystemClock.elapsedRealtime().
+
+
elapsedRealtime() - Method in class com.google.android.exoplayer2.util.SystemClock
+
 
+
ElementaryStreamReader - Class in com.google.android.exoplayer2.extractor.ts
+
+
Extracts individual samples from an elementary media stream, preserving original order.
+
+
ElementaryStreamReader() - Constructor for class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader
+
 
+
ElementaryStreamReader.EsInfo - Class in com.google.android.exoplayer2.extractor.ts
+
+
Holds descriptor information associated with an elementary stream.
+
+
ElementaryStreamReader.Factory - Interface in com.google.android.exoplayer2.extractor.ts
+
+
Factory of ElementaryStreamReader instances.
+
+
ElementaryStreamReader.TrackIdGenerator - Class in com.google.android.exoplayer2.extractor.ts
+
+
Generates track ids for initializing ElementaryStreamReaders' TrackOutputs.
+
+
enable(Format[], SampleStream, long, boolean, long) - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
enable(Format[], SampleStream, long, boolean, long) - Method in interface com.google.android.exoplayer2.Renderer
+
+
Enables the renderer to consume from the specified SampleStream.
+
+
enable() - Method in class com.google.android.exoplayer2.video.VideoFrameReleaseTimeHelper
+
+
Enables the helper.
+
+
enabled(DecoderCounters) - Method in class com.google.android.exoplayer2.audio.AudioRendererEventListener.EventDispatcher
+
+ +
+
enabled(DecoderCounters) - Method in class com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
+
+ +
+
enablePreV21AudioSessionWorkaround - Static variable in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Whether to enable a workaround for an issue where an audio effect does not keep its session + active across releasing/initializing a new audio track, on platform builds where + Util.SDK_INT < 21.
+
+
encoderDelay - Variable in class com.google.android.exoplayer2.extractor.GaplessInfoHolder
+
+
The number of samples to trim from the start of the decoded audio stream, or + Format.NO_VALUE if not set.
+
+
encoderDelay - Variable in class com.google.android.exoplayer2.Format
+
+
The number of samples to trim from the start of the decoded audio stream.
+
+
encoderPadding - Variable in class com.google.android.exoplayer2.extractor.GaplessInfoHolder
+
+
The number of samples to trim from the end of the decoded audio stream, or + Format.NO_VALUE if not set.
+
+
encoderPadding - Variable in class com.google.android.exoplayer2.Format
+
+
The number of samples to trim from the end of the decoded audio stream.
+
+
ENCODING_AC3 - Static variable in class com.google.android.exoplayer2.C
+
 
+
ENCODING_DTS - Static variable in class com.google.android.exoplayer2.C
+
 
+
ENCODING_DTS_HD - Static variable in class com.google.android.exoplayer2.C
+
 
+
ENCODING_E_AC3 - Static variable in class com.google.android.exoplayer2.C
+
 
+
ENCODING_INVALID - Static variable in class com.google.android.exoplayer2.C
+
 
+
ENCODING_PCM_16BIT - Static variable in class com.google.android.exoplayer2.C
+
 
+
ENCODING_PCM_24BIT - Static variable in class com.google.android.exoplayer2.C
+
+
PCM encoding with 24 bits per sample.
+
+
ENCODING_PCM_32BIT - Static variable in class com.google.android.exoplayer2.C
+
+
PCM encoding with 32 bits per sample.
+
+
ENCODING_PCM_8BIT - Static variable in class com.google.android.exoplayer2.C
+
 
+
ENCRYPTION_METHOD_AES_128 - Static variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
ENCRYPTION_METHOD_NONE - Static variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
encryptionIV - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
encryptionKeyUri - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
endOfStream - Variable in class com.google.android.exoplayer2.source.chunk.ChunkHolder
+
+
Indicates that the end of the stream has been reached.
+
+
endSection() - Static method in class com.google.android.exoplayer2.util.TraceUtil
+
+
Writes a trace message to indicate that a given section of code has ended.
+
+
endTimeUs - Variable in class com.google.android.exoplayer2.source.chunk.Chunk
+
+
The end time of the media contained by the chunk, or C.TIME_UNSET if the data being + loaded does not contain media samples.
+
+
endTracks() - Method in interface com.google.android.exoplayer2.extractor.ExtractorOutput
+
+
Called when all tracks have been identified, meaning no new trackId values will be + passed to ExtractorOutput.track(int).
+
+
endTracks() - Method in class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
 
+
ensureSpaceForWrite(int) - Method in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
+
Ensures that DecoderInputBuffer.data is large enough to accommodate a write of a given length at its + current position.
+
+
ensureUpdated() - Method in class com.google.android.exoplayer2.decoder.DecoderCounters
+
+
Should be called to ensure counter values are made visible across threads.
+
+
equals(Object) - Method in class com.google.android.exoplayer2.audio.AudioCapabilities
+
 
+
equals(Object) - Method in class com.google.android.exoplayer2.drm.DrmInitData
+
 
+
equals(Object) - Method in class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
 
+
equals(Object) - Method in class com.google.android.exoplayer2.Format
+
 
+
equals(Object) - Method in class com.google.android.exoplayer2.source.dash.manifest.RangedUri
+
 
+
equals(Object) - Method in class com.google.android.exoplayer2.source.TrackGroup
+
 
+
equals(Object) - Method in class com.google.android.exoplayer2.source.TrackGroupArray
+
 
+
equals(Object) - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
equals(Object) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
equals(Object) - Method in class com.google.android.exoplayer2.trackselection.TrackSelections
+
 
+
errorCode - Variable in exception com.google.android.exoplayer2.audio.AudioTrack.WriteException
+
+
An error value returned from AudioTrack.write(byte[], int, int).
+
+
escapeFileName(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Escapes a string so that it's safe for use as a file or directory name on at least FAT32 + filesystems.
+
+
EsInfo(int, String, byte[]) - Constructor for class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.EsInfo
+
 
+
evaluate(T) - Method in interface com.google.android.exoplayer2.util.Predicate
+
+
Evaluates an input.
+
+
evaluateQueueSize(long, List<? extends MediaChunk>) - Method in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
evaluateQueueSize(long, List<? extends MediaChunk>) - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
evaluateQueueSize(long, List<? extends MediaChunk>) - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
May be called periodically by sources that load media in discrete MediaChunks and + support discarding of buffered chunks in order to re-buffer using a different selected track.
+
+
EventDispatcher(Handler, AudioRendererEventListener) - Constructor for class com.google.android.exoplayer2.audio.AudioRendererEventListener.EventDispatcher
+
 
+
EventDispatcher(Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
EventDispatcher(Handler, VideoRendererEventListener) - Constructor for class com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
+
 
+
exceedVideoConstraintsIfNecessary - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
executeKeyRequest(UUID, ExoMediaDrm.KeyRequest) - Method in class com.google.android.exoplayer2.drm.HttpMediaDrmCallback
+
 
+
executeKeyRequest(UUID, ExoMediaDrm.KeyRequest) - Method in interface com.google.android.exoplayer2.drm.MediaDrmCallback
+
+
Executes a key request.
+
+
executeProvisionRequest(UUID, ExoMediaDrm.ProvisionRequest) - Method in class com.google.android.exoplayer2.drm.HttpMediaDrmCallback
+
 
+
executeProvisionRequest(UUID, ExoMediaDrm.ProvisionRequest) - Method in interface com.google.android.exoplayer2.drm.MediaDrmCallback
+
+
Executes a provisioning request.
+
+
ExoMediaCrypto - Interface in com.google.android.exoplayer2.drm
+
+
An opaque MediaCrypto equivalent.
+
+
ExoMediaDrm<T extends ExoMediaCrypto> - Interface in com.google.android.exoplayer2.drm
+
+
Used to obtain keys for decrypting protected media streams.
+
+
ExoMediaDrm.KeyRequest - Interface in com.google.android.exoplayer2.drm
+
 
+
ExoMediaDrm.OnEventListener<T extends ExoMediaCrypto> - Interface in com.google.android.exoplayer2.drm
+
 
+
ExoMediaDrm.ProvisionRequest - Interface in com.google.android.exoplayer2.drm
+
 
+
ExoPlaybackException - Exception in com.google.android.exoplayer2
+
+
Thrown when a non-recoverable playback failure occurs.
+
+
ExoPlaybackException.Type - Annotation Type in com.google.android.exoplayer2
+
+
The type of source that produced the error.
+
+
ExoPlayer - Interface in com.google.android.exoplayer2
+
+
An extensible media player exposing traditional high-level media player functionality, such as + the ability to buffer media, play, pause and seek.
+
+
ExoPlayer.EventListener - Interface in com.google.android.exoplayer2
+
+
Listener of changes in player state.
+
+
ExoPlayer.ExoPlayerComponent - Interface in com.google.android.exoplayer2
+
+
A component of an ExoPlayer that can receive messages on the playback thread.
+
+
ExoPlayer.ExoPlayerMessage - Class in com.google.android.exoplayer2
+
+
Defines a message and a target ExoPlayer.ExoPlayerComponent to receive it.
+
+
ExoPlayerFactory - Class in com.google.android.exoplayer2
+
+
A factory for ExoPlayer instances.
+
+
ExoPlayerLibraryInfo - Interface in com.google.android.exoplayer2
+
+
Information about the ExoPlayer library.
+
+
ExoPlayerMessage(ExoPlayer.ExoPlayerComponent, int, Object) - Constructor for class com.google.android.exoplayer2.ExoPlayer.ExoPlayerMessage
+
 
+
EXTENDED_SAR - Static variable in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Value for aspect_ratio_idc indicating an extended aspect ratio, in H.264 and H.265 SPSs.
+
+
Extractor - Interface in com.google.android.exoplayer2.extractor
+
+
Extracts media data from a container format.
+
+
ExtractorInput - Interface in com.google.android.exoplayer2.extractor
+
+
Provides data to be consumed by an Extractor.
+
+
ExtractorMediaSource - Class in com.google.android.exoplayer2.source
+
+
Provides one period that loads data from a Uri and extracted using an Extractor.
+
+
ExtractorMediaSource(Uri, DataSource.Factory, ExtractorsFactory, Handler, ExtractorMediaSource.EventListener) - Constructor for class com.google.android.exoplayer2.source.ExtractorMediaSource
+
 
+
ExtractorMediaSource(Uri, DataSource.Factory, ExtractorsFactory, int, Handler, ExtractorMediaSource.EventListener) - Constructor for class com.google.android.exoplayer2.source.ExtractorMediaSource
+
 
+
ExtractorMediaSource.EventListener - Interface in com.google.android.exoplayer2.source
+
+
Listener of ExtractorMediaSource events.
+
+
ExtractorMediaSource.UnrecognizedInputFormatException - Exception in com.google.android.exoplayer2.source
+
+
Thrown if the input format could not recognized.
+
+
ExtractorOutput - Interface in com.google.android.exoplayer2.extractor
+
+
Receives stream level data extracted by an Extractor.
+
+
ExtractorsFactory - Interface in com.google.android.exoplayer2.extractor
+
+
Factory for arrays of Extractors.
+
+
extractorWrapper - Variable in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
+ + + +

F

+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
+
Factory for FlvExtractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor
+
+
Factory for MatroskaExtractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.mp3.Mp3Extractor
+
+
Factory for Mp3Extractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
+
Factory for FragmentedMp4Extractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
+
Factory for Mp4Extractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.ogg.OggExtractor
+
+
Factory for OggExtractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.ts.Ac3Extractor
+
+
Factory for Ac3Extractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.ts.AdtsExtractor
+
+
Factory for AdtsExtractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
+
Factory for PsExtractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
+
Factory for TsExtractor instances.
+
+
FACTORY - Static variable in class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
+
Factory for WavExtractor instances.
+
+
Factory(DataSource.Factory) - Constructor for class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.Factory
+
 
+
Factory(DataSource.Factory) - Constructor for class com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource.Factory
+
 
+
Factory(BandwidthMeter) - Constructor for class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection.Factory
+
 
+
Factory(BandwidthMeter, int, int, int, int, float) - Constructor for class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection.Factory
+
 
+
Factory() - Constructor for class com.google.android.exoplayer2.trackselection.FixedTrackSelection.Factory
+
 
+
Factory(int, Object) - Constructor for class com.google.android.exoplayer2.trackselection.FixedTrackSelection.Factory
+
 
+
factory - Variable in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.SelectionOverride
+
 
+
Factory() - Constructor for class com.google.android.exoplayer2.trackselection.RandomTrackSelection.Factory
+
 
+
Factory(int) - Constructor for class com.google.android.exoplayer2.trackselection.RandomTrackSelection.Factory
+
 
+
failOnSpuriousAudioTimestamp - Static variable in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Whether to throw an AudioTrack.InvalidAudioTrackTimestampException when a spurious timestamp is + reported from AudioTrack.getTimestamp(android.media.AudioTimestamp).
+
+
file - Variable in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
+
The file corresponding to this CacheSpan, or null if CacheSpan.isCached is false.
+
+
FileDataSource - Class in com.google.android.exoplayer2.upstream
+
+
A DataSource for reading local files.
+
+
FileDataSource() - Constructor for class com.google.android.exoplayer2.upstream.FileDataSource
+
 
+
FileDataSource(TransferListener<? super FileDataSource>) - Constructor for class com.google.android.exoplayer2.upstream.FileDataSource
+
 
+
FileDataSource.FileDataSourceException - Exception in com.google.android.exoplayer2.upstream
+
+
Thrown when IOException is encountered during local file read operation.
+
+
FileDataSourceException(IOException) - Constructor for exception com.google.android.exoplayer2.upstream.FileDataSource.FileDataSourceException
+
 
+
FileDataSourceFactory - Class in com.google.android.exoplayer2.upstream
+
+ +
+
FileDataSourceFactory() - Constructor for class com.google.android.exoplayer2.upstream.FileDataSourceFactory
+
 
+
FileDataSourceFactory(TransferListener<? super FileDataSource>) - Constructor for class com.google.android.exoplayer2.upstream.FileDataSourceFactory
+
 
+
filename - Variable in class com.google.android.exoplayer2.metadata.id3.GeobFrame
+
 
+
findNalUnit(byte[], int, int, boolean[]) - Static method in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Finds the first NAL unit in data.
+
+
findNextCueHeader(ParsableByteArray) - Static method in class com.google.android.exoplayer2.text.webvtt.WebvttParserUtil
+
+
Reads lines up to and including the next WebVTT cue header.
+
+
firstPeriodIndex - Variable in class com.google.android.exoplayer2.Timeline.Window
+
+
The index of the first period that belongs to this window.
+
+
FixedTrackSelection - Class in com.google.android.exoplayer2.trackselection
+
+
A TrackSelection consisting of a single track.
+
+
FixedTrackSelection(TrackGroup, int) - Constructor for class com.google.android.exoplayer2.trackselection.FixedTrackSelection
+
 
+
FixedTrackSelection(TrackGroup, int, int, Object) - Constructor for class com.google.android.exoplayer2.trackselection.FixedTrackSelection
+
 
+
FixedTrackSelection.Factory - Class in com.google.android.exoplayer2.trackselection
+
+
Factory for FixedTrackSelection instances.
+
+
FlacStreamInfo - Class in com.google.android.exoplayer2.util
+
+
Holder for FLAC stream info.
+
+
FlacStreamInfo(byte[], int) - Constructor for class com.google.android.exoplayer2.util.FlacStreamInfo
+
+
Constructs a FlacStreamInfo parsing the given binary FLAC stream info metadata structure.
+
+
FlacStreamInfo(int, int, int, int, int, int, int, long) - Constructor for class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
FLAG_ALLOW_GZIP - Static variable in class com.google.android.exoplayer2.upstream.DataSpec
+
+
Permits an underlying network stack to request that the server use gzip compression.
+
+
FLAG_ALLOW_NON_IDR_KEYFRAMES - Static variable in class com.google.android.exoplayer2.extractor.ts.DefaultStreamReaderFactory
+
 
+
FLAG_BLOCK_ON_CACHE - Static variable in class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
+
A flag indicating whether we will block reads if the cache key is locked.
+
+
FLAG_CACHE_UNBOUNDED_REQUESTS - Static variable in class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
+
A flag indicating whether the response is cached if the range of the request is unbounded.
+
+
FLAG_DETECT_ACCESS_UNITS - Static variable in class com.google.android.exoplayer2.extractor.ts.DefaultStreamReaderFactory
+
 
+
FLAG_IGNORE_AAC_STREAM - Static variable in class com.google.android.exoplayer2.extractor.ts.DefaultStreamReaderFactory
+
 
+
FLAG_IGNORE_CACHE_ON_ERROR - Static variable in class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
+
A flag indicating whether the cache is bypassed following any cache related error.
+
+
FLAG_IGNORE_H264_STREAM - Static variable in class com.google.android.exoplayer2.extractor.ts.DefaultStreamReaderFactory
+
 
+
FLAG_WORKAROUND_EVERY_VIDEO_FRAME_IS_SYNC_FRAME - Static variable in class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
+
Flag to work around an issue in some video streams where every frame is marked as a sync frame.
+
+
FLAG_WORKAROUND_IGNORE_TFDT_BOX - Static variable in class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
+
Flag to ignore any tfdt boxes in the stream.
+
+
flags - Variable in class com.google.android.exoplayer2.upstream.DataSpec
+
+
Request flags.
+
+
flip() - Method in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
+
Flips DecoderInputBuffer.data in preparation for being queued to a decoder.
+
+
flush() - Method in interface com.google.android.exoplayer2.decoder.Decoder
+
+
Flushes the decoder.
+
+
flush() - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
 
+
flush() - Method in class com.google.android.exoplayer2.text.cea.Cea608Decoder
+
 
+
flushCodec() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
FlvExtractor - Class in com.google.android.exoplayer2.extractor.flv
+
+
Facilitates the extraction of data from the FLV container format.
+
+
FlvExtractor() - Constructor for class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
foregroundColor - Variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
The preferred foreground color.
+
+
format(Format) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
 
+
format(Format) - Method in class com.google.android.exoplayer2.extractor.DummyTrackOutput
+
 
+
format - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
The format.
+
+
format(Format) - Method in interface com.google.android.exoplayer2.extractor.TrackOutput
+
+
Called when the Format of the track has been extracted from the stream.
+
+
Format - Class in com.google.android.exoplayer2
+
+
Representation of a media format.
+
+
format - Variable in class com.google.android.exoplayer2.FormatHolder
+
+
The held Format.
+
+
format(Format) - Method in class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
 
+
format(Format) - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
format - Variable in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
The format of the representation.
+
+
format - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
+
 
+
FORMAT_EXCEEDS_CAPABILITIES - Static variable in interface com.google.android.exoplayer2.RendererCapabilities
+
+
The Renderer is capable of rendering formats with the same mime type, but the + properties of the format exceed the renderer's capability.
+
+
FORMAT_HANDLED - Static variable in interface com.google.android.exoplayer2.RendererCapabilities
+
+
The Renderer is capable of rendering the format.
+
+
FORMAT_SUPPORT_MASK - Static variable in interface com.google.android.exoplayer2.RendererCapabilities
+
+ +
+
FORMAT_UNSUPPORTED_SUBTYPE - Static variable in interface com.google.android.exoplayer2.RendererCapabilities
+
+
The Renderer is a general purpose renderer for formats of the same top-level type, + but is not capable of rendering the format or any other format with the same mime type because + the sub-type is not supported.
+
+
FORMAT_UNSUPPORTED_TYPE - Static variable in interface com.google.android.exoplayer2.RendererCapabilities
+
+
The Renderer is not capable of rendering the format, either because it does not + support the format's top-level type, or because it's a specialized renderer for a different + mime type.
+
+
FormatHolder - Class in com.google.android.exoplayer2
+
+
Holds a Format.
+
+
FormatHolder() - Constructor for class com.google.android.exoplayer2.FormatHolder
+
 
+
formats - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
formatWithOffset(Format, long) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Like DefaultTrackOutput.format(Format), but with an offset that will be added to the timestamps of + samples subsequently queued to the buffer.
+
+
FragmentedMp4Extractor - Class in com.google.android.exoplayer2.extractor.mp4
+
+
Facilitates the extraction of data from the fragmented mp4 container format.
+
+
FragmentedMp4Extractor() - Constructor for class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
 
+
FragmentedMp4Extractor(int, TimestampAdjuster) - Constructor for class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
 
+
FragmentedMp4Extractor(int, Track, TimestampAdjuster) - Constructor for class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
 
+
FragmentedMp4Extractor.Flags - Annotation Type in com.google.android.exoplayer2.extractor.mp4
+
+
Flags controlling the behavior of the extractor.
+
+
frameMbsOnlyFlag - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
frameNumLength - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
frameRate - Variable in class com.google.android.exoplayer2.Format
+
+
The frame rate in frames per second, or Format.NO_VALUE if unknown or not applicable.
+
+
frameSize - Variable in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
Size of the frame associated with this header, in bytes.
+
+
FrameworkMediaCrypto - Class in com.google.android.exoplayer2.drm
+
+
An ExoMediaCrypto implementation that wraps the framework MediaCrypto.
+
+
FrameworkMediaDrm - Class in com.google.android.exoplayer2.drm
+
+
An ExoMediaDrm implementation that wraps the framework MediaDrm.
+
+
+ + + +

G

+
+
GaplessInfoHolder - Class in com.google.android.exoplayer2.extractor
+
+
Holder for gapless playback information.
+
+
GaplessInfoHolder() - Constructor for class com.google.android.exoplayer2.extractor.GaplessInfoHolder
+
+
Creates a new holder for gapless playback information.
+
+
GeobFrame - Class in com.google.android.exoplayer2.metadata.id3
+
+
GEOB (General Encapsulated Object) ID3 frame.
+
+
GeobFrame(String, String, String, byte[]) - Constructor for class com.google.android.exoplayer2.metadata.id3.GeobFrame
+
 
+
get(UUID) - Method in class com.google.android.exoplayer2.drm.DrmInitData
+
+
Retrieves data for a given DRM scheme, specified by its UUID.
+
+
get(int) - Method in class com.google.android.exoplayer2.drm.DrmInitData
+
+
Retrieves the DrmInitData.SchemeData at a given index.
+
+
get(int) - Method in class com.google.android.exoplayer2.source.TrackGroupArray
+
+
Returns the group at a given index.
+
+
get(int) - Method in class com.google.android.exoplayer2.trackselection.TrackSelections
+
+
Returns the selection at a given index.
+
+
get(int) - Method in class com.google.android.exoplayer2.util.LongArray
+
+
Returns the value at a specified index.
+
+
getAc3SyncframeAudioSampleCount() - Static method in class com.google.android.exoplayer2.audio.Ac3Util
+
+
Returns the number of audio samples in an AC-3 syncframe.
+
+
getAdaptationSetIndex(int) - Method in class com.google.android.exoplayer2.source.dash.manifest.Period
+
+
Returns the index of the first adaptation set of a given type, or C.INDEX_UNSET if no + adaptation set of the specified type exists.
+
+
getAdaptiveSupport(int, int, boolean) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
Returns the extent to which the renderer supports adaptation between supported tracks in a + specified TrackGroup.
+
+
getAdaptiveSupport(int, int, int[]) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
Returns the extent to which the renderer supports adaptation between specified tracks within + a TrackGroup.
+
+
getAdjuster(int, long) - Method in class com.google.android.exoplayer2.source.hls.TimestampAdjusterProvider
+
+
Returns a TimestampAdjuster suitable for adjusting the pts timestamps contained in + a chunk with a given discontinuity sequence.
+
+
getAll() - Method in class com.google.android.exoplayer2.trackselection.TrackSelections
+
+
Returns the selections in a newly allocated array.
+
+
getAllocator() - Method in class com.google.android.exoplayer2.DefaultLoadControl
+
 
+
getAllocator() - Method in interface com.google.android.exoplayer2.LoadControl
+
+
Returns the Allocator that should be used to obtain media buffer allocations.
+
+
getAttributeValue(XmlPullParser, String) - Static method in class com.google.android.exoplayer2.util.XmlPullParserUtil
+
+
Returns the value of an attribute of the current start tag.
+
+
getAudioDecoderCounters() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Returns DecoderCounters for audio, or null if no audio is being played.
+
+
getAudioFormat() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Returns the audio format currently being played, or null if no audio is being played.
+
+
getAudioMediaMimeType(String) - Static method in class com.google.android.exoplayer2.util.MimeTypes
+
+
Derives a audio sample mimeType from a codecs attribute.
+
+
getAudioSessionId() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Returns the audio session identifier, or AudioTrack.SESSION_ID_NOT_SET if not set.
+
+
getBitrateEstimate() - Method in interface com.google.android.exoplayer2.upstream.BandwidthMeter
+
+
Returns the estimated bandwidth in bits/sec, or BandwidthMeter.NO_ESTIMATE if an estimate is not + available.
+
+
getBitrateEstimate() - Method in class com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
+
 
+
getBufferedPercentage() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Returns an estimate of the percentage in the current window up to which data is buffered, or 0 + if no estimate is available.
+
+
getBufferedPercentage() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getBufferedPosition() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Returns an estimate of the position in the current window up to which data is buffered, in + milliseconds.
+
+
getBufferedPosition() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getBufferedPositionUs() - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
+
Returns an estimate of the position up to which data is buffered.
+
+
getBufferedPositionUs() - Method in interface com.google.android.exoplayer2.source.MediaPeriod
+
+
Returns an estimate of the position up to which data is buffered for the enabled tracks.
+
+
getBufferSize() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Returns the size of this AudioTrack's buffer in bytes.
+
+
getBufferSizeUs() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Returns the size of the buffer in microseconds for PCM AudioTracks, or + C.TIME_UNSET for passthrough AudioTracks.
+
+
getBytesFromHexString(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns a byte array containing values parsed from the hex string provided.
+
+
getCachedSpans(String) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Returns the cached spans for a given cache key.
+
+
getCachedSpans(String) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
getCacheFileName(File, String, long, long) - Static method in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
 
+
getCacheKey() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
Returns a cache key for the representation, in the format + contentId + "." + format.id + "." + revisionId.
+
+
getCacheSpace() - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Returns the total disk space in bytes used by the cache.
+
+
getCacheSpace() - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
getCapabilities(Context) - Static method in class com.google.android.exoplayer2.audio.AudioCapabilities
+
+
Returns the current audio capabilities for the device.
+
+
getCapabilities() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
getCapabilities() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Returns the capabilities of the renderer.
+
+
getChunkDurationUs(int) - Method in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
+
Returns the duration of the specified chunk.
+
+
getChunkIndex(long) - Method in class com.google.android.exoplayer2.extractor.ChunkIndex
+
+
Obtains the index of the chunk corresponding to a given time.
+
+
getChunkIndex(long) - Method in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
+
Returns the index of the chunk that contains the specified time.
+
+
getChunkSource() - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
+
Returns the ChunkSource used by this stream.
+
+
getCodecProfileAndLevel(String) - Static method in class com.google.android.exoplayer2.mediacodec.MediaCodecUtil
+
+
Returns profile and level (as defined by MediaCodecInfo.CodecProfileLevel) corresponding to the given + codec description string (as defined by RFC 6381).
+
+
getCommaDelimitedSimpleClassNames(Object[]) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns a string with comma delimited simple names of each object's class.
+
+
getConnection() - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
+
Returns the current connection, or null if the source is not currently opened.
+
+
getContentLength(String) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Returns the content length for the given key if one set, or C.LENGTH_UNSET otherwise.
+
+
getContentLength(String) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
getContentType(Format) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
getControllerShowTimeoutMs() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+
Returns the playback controls timeout.
+
+
getCues(long) - Method in interface com.google.android.exoplayer2.text.Subtitle
+
+
Retrieve the cues that should be displayed at a given time.
+
+
getCues(long) - Method in class com.google.android.exoplayer2.text.SubtitleOutputBuffer
+
 
+
getCurrentManifest() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Returns the current manifest.
+
+
getCurrentManifest() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getCurrentPeriodIndex() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Returns the index of the period currently being played, or C.INDEX_UNSET if unknown.
+
+
getCurrentPeriodIndex() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getCurrentPosition() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Returns the playback position in the current window, in milliseconds.
+
+
getCurrentPosition() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getCurrentPositionUs(boolean) - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Returns the playback position in the stream starting at zero, in microseconds, or + AudioTrack.CURRENT_POSITION_NOT_SET if it is not yet available.
+
+
getCurrentSelections() - Method in class com.google.android.exoplayer2.trackselection.TrackSelector
+
+
Returns the current track selections.
+
+
getCurrentTimeline() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Returns the current Timeline, or null if there is no timeline.
+
+
getCurrentTimeline() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getCurrentWindowIndex() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Returns the index of the window currently being played.
+
+
getCurrentWindowIndex() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getData() - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm.KeyRequest
+
 
+
getData() - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm.ProvisionRequest
+
 
+
getData() - Method in class com.google.android.exoplayer2.upstream.ByteArrayDataSink
+
+
Returns the data written to the sink since the last call to ByteArrayDataSink.open(DataSpec), or null if + ByteArrayDataSink.open(DataSpec) has never been called.
+
+
getDataHolder() - Method in class com.google.android.exoplayer2.source.chunk.DataChunk
+
+
Returns the array in which the data is held.
+
+
getDecoderInfo(MediaCodecSelector, Format, boolean) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
getDecoderInfo(MediaCodecSelector, Format, boolean) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Returns a MediaCodecInfo for a given format.
+
+
getDecoderInfo(String, boolean) - Method in interface com.google.android.exoplayer2.mediacodec.MediaCodecSelector
+
+
Selects a decoder to instantiate for a given mime type.
+
+
getDecoderInfo(String, boolean) - Static method in class com.google.android.exoplayer2.mediacodec.MediaCodecUtil
+
+
Returns information about the preferred decoder for a given mime type.
+
+
getDecoderInfos(String, boolean) - Static method in class com.google.android.exoplayer2.mediacodec.MediaCodecUtil
+
+
Returns all MediaCodecInfos for the given mime type, in the order given by + MediaCodecList.
+
+
getDefaultBufferSize(int) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Maps a C TRACK_TYPE_* constant to the corresponding C + DEFAULT_*_BUFFER_SIZE constant.
+
+
getDefaultPositionMs() - Method in class com.google.android.exoplayer2.Timeline.Window
+
+
Returns the default position relative to the start of the window at which to begin playback, + in milliseconds.
+
+
getDefaultPositionUs() - Method in class com.google.android.exoplayer2.Timeline.Window
+
+
Returns the default position relative to the start of the window at which to begin playback, + in microseconds.
+
+
getDefaultUrl() - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm.KeyRequest
+
 
+
getDefaultUrl() - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm.ProvisionRequest
+
 
+
getDequeueOutputBufferTimeoutUs() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Returns the maximum time to block whilst waiting for a decoded output buffer.
+
+
getDtsFrameSize(byte[]) - Static method in class com.google.android.exoplayer2.audio.DtsUtil
+
+
Returns the size in bytes of the given DTS frame.
+
+
getDuration() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Returns the duration of the current window in milliseconds, or C.TIME_UNSET if the + duration is not known.
+
+
getDuration() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getDurationMs() - Method in class com.google.android.exoplayer2.Timeline.Period
+
+
Returns the duration of the period in milliseconds, or C.TIME_UNSET if unknown.
+
+
getDurationMs() - Method in class com.google.android.exoplayer2.Timeline.Window
+
+
Returns the duration of the window in milliseconds, or C.TIME_UNSET if unknown.
+
+
getDurationUs() - Method in class com.google.android.exoplayer2.extractor.ChunkIndex
+
 
+
getDurationUs() - Method in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
getDurationUs() - Method in class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
 
+
getDurationUs() - Method in interface com.google.android.exoplayer2.extractor.SeekMap
+
+
Returns the duration of the stream in microseconds.
+
+
getDurationUs() - Method in class com.google.android.exoplayer2.extractor.SeekMap.Unseekable
+
 
+
getDurationUs() - Method in class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
 
+
getDurationUs() - Method in class com.google.android.exoplayer2.source.chunk.Chunk
+
+
Returns the duration of the chunk in microseconds.
+
+
getDurationUs(int, long) - Method in interface com.google.android.exoplayer2.source.dash.DashSegmentIndex
+
+
Returns the duration of a segment.
+
+
getDurationUs(int, long) - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
getDurationUs() - Method in class com.google.android.exoplayer2.Timeline.Period
+
+
Returns the duration of this period in microseconds, or C.TIME_UNSET if unknown.
+
+
getDurationUs() - Method in class com.google.android.exoplayer2.Timeline.Window
+
+
Returns the duration of this window in microseconds, or C.TIME_UNSET if unknown.
+
+
getError() - Method in interface com.google.android.exoplayer2.drm.DrmSession
+
+
Returns the cause of the error state.
+
+
getError() - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
 
+
getEventTime(int) - Method in interface com.google.android.exoplayer2.text.Subtitle
+
+
Returns the event time at a specified index.
+
+
getEventTime(int) - Method in class com.google.android.exoplayer2.text.SubtitleOutputBuffer
+
 
+
getEventTimeCount() - Method in interface com.google.android.exoplayer2.text.Subtitle
+
+
Returns the number of event times, where events are defined as points in time at which the cues + returned by Subtitle.getCues(long) changes.
+
+
getEventTimeCount() - Method in class com.google.android.exoplayer2.text.SubtitleOutputBuffer
+
 
+
getFirstSampleIndex() - Method in class com.google.android.exoplayer2.source.chunk.BaseMediaChunk
+
+
Returns the index of the first sample in the output that was passed to + BaseMediaChunk.init(DefaultTrackOutput) that will originate from this chunk.
+
+
getFirstSegmentNum() - Method in interface com.google.android.exoplayer2.source.dash.DashSegmentIndex
+
+
Returns the segment number of the first segment.
+
+
getFirstSegmentNum() - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
getFirstSegmentNum() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
getFirstSegmentNum() - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
+
 
+
getFlag(int) - Method in class com.google.android.exoplayer2.decoder.Buffer
+
+
Returns whether the specified flag has been set on this buffer.
+
+
getFormat(int) - Method in class com.google.android.exoplayer2.source.TrackGroup
+
+
Returns the format of the track at a given index.
+
+
getFormat(int) - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
getFormat(int) - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the format of the track at a given index in the selection.
+
+
getFrameSize(int) - Static method in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
Returns the size of the frame associated with header, or C.LENGTH_UNSET if it + is invalid.
+
+
getFrameworkCryptoInfoV16() - Method in class com.google.android.exoplayer2.decoder.CryptoInfo
+
+
Returns an equivalent MediaCodec.CryptoInfo instance.
+
+
getFrameworkMediaFormatV16() - Method in class com.google.android.exoplayer2.Format
+
+
Returns a MediaFormat representation of this format.
+
+
getH265NalUnitType(byte[], int) - Static method in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Returns the type of the H.265 NAL unit in data that starts at offset.
+
+
getHexString(byte[]) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns a hex string representation of the given byte array.
+
+
getIndex() - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Returns the index of the renderer within the player.
+
+
getIndex() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
Returns an index if the representation provides one directly, or null otherwise.
+
+
getIndex() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
getIndex() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.SingleSegmentRepresentation
+
 
+
getIndex() - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SingleSegmentBase
+
 
+
getIndexInTrackGroup(int) - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
getIndexInTrackGroup(int) - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the index in the track group of the track at a given index in the selection.
+
+
getIndexOfPeriod(Object) - Method in class com.google.android.exoplayer2.source.SinglePeriodTimeline
+
 
+
getIndexOfPeriod(Object) - Method in class com.google.android.exoplayer2.Timeline
+
+
Returns the index of the period identified by its unique id, or C.INDEX_UNSET + if the period is not in the timeline.
+
+
getIndexUri() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
Returns a RangedUri defining the location of the representation's segment index, or + null if the representation provides an index directly.
+
+
getIndexUri() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
getIndexUri() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.SingleSegmentRepresentation
+
 
+
getIndividualAllocationLength() - Method in interface com.google.android.exoplayer2.upstream.Allocator
+
+
Returns the length of each individual Allocation.
+
+
getIndividualAllocationLength() - Method in class com.google.android.exoplayer2.upstream.DefaultAllocator
+
 
+
getInitialization(Representation) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase
+
+
Returns the RangedUri defining the location of initialization data for a given + representation, or null if no initialization data exists.
+
+
getInitialization(Representation) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTemplate
+
 
+
getInitializationUri() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
Returns a RangedUri defining the location of the representation's initialization data, + or null if no initialization data exists.
+
+
getIntegerCodeForString(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns the integer equal to the big-endian concatenation of the characters in string + as bytes.
+
+
getKeyRequest(byte[], byte[], String, int, HashMap<String, String>) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
getKeyRequest(byte[], byte[], String, int, HashMap<String, String>) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
getKeys() - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Returns all keys in the cache.
+
+
getKeys() - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
getLargestQueuedTimestampUs() - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Returns the largest sample timestamp that has been queued since the last DefaultTrackOutput.reset(boolean).
+
+
getLastSegmentNum(long) - Method in interface com.google.android.exoplayer2.source.dash.DashSegmentIndex
+
+
Returns the segment number of the last segment, or DashSegmentIndex.INDEX_UNBOUNDED.
+
+
getLastSegmentNum() - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
getLastSegmentNum(long) - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
getLastSegmentNum(long) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
+
 
+
getLastSegmentNum(long) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentList
+
 
+
getLastSegmentNum(long) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTemplate
+
 
+
getLength() - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
getLength() - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Returns the length of the source stream, or C.LENGTH_UNSET if it is unknown.
+
+
getMaxChannelCount() - Method in class com.google.android.exoplayer2.audio.AudioCapabilities
+
+
Returns the maximum number of channels the device can play at the same time.
+
+
getMediaClock() - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
getMediaClock() - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
getMediaClock() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
getMediaClock() - Method in interface com.google.android.exoplayer2.Renderer
+
+
If the renderer advances its own playback position then this method returns a corresponding + MediaClock.
+
+
getMediaCrypto() - Method in interface com.google.android.exoplayer2.drm.DrmSession
+
+
Returns a ExoMediaCrypto for the open session.
+
+
getMediaCrypto() - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
 
+
getMediaMimeType(String) - Static method in class com.google.android.exoplayer2.util.MimeTypes
+
+
Derives a mimeType from a codec identifier, as defined in RFC 6381.
+
+
getNalUnitType(byte[], int) - Static method in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Returns the type of the NAL unit in data that starts at offset.
+
+
getName() - Method in interface com.google.android.exoplayer2.decoder.Decoder
+
+
Returns the name of the decoder.
+
+
getName() - Method in class com.google.android.exoplayer2.text.cea.Cea608Decoder
+
 
+
getName() - Method in class com.google.android.exoplayer2.text.SimpleSubtitleDecoder
+
 
+
getNextChunk(MediaChunk, long, ChunkHolder) - Method in interface com.google.android.exoplayer2.source.chunk.ChunkSource
+
+
Returns the next chunk to load.
+
+
getNextChunk(MediaChunk, long, ChunkHolder) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource
+
 
+
getNextChunk(MediaChunk, long, ChunkHolder) - Method in class com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
+
 
+
getNextChunkIndex() - Method in class com.google.android.exoplayer2.source.chunk.MediaChunk
+
+
Returns the next chunk index.
+
+
getNextEventTimeIndex(long) - Method in interface com.google.android.exoplayer2.text.Subtitle
+
+
Returns the index of the first event that occurs after a given time (exclusive).
+
+
getNextEventTimeIndex(long) - Method in class com.google.android.exoplayer2.text.SubtitleOutputBuffer
+
 
+
getNextId() - Method in class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.TrackIdGenerator
+
 
+
getNextLoadPositionUs() - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
getNextLoadPositionUs() - Method in class com.google.android.exoplayer2.source.CompositeSequenceableLoader
+
 
+
getNextLoadPositionUs() - Method in interface com.google.android.exoplayer2.source.SequenceableLoader
+
+
Returns the next load time, or C.TIME_END_OF_SOURCE if loading has finished.
+
+
getOutputFormat() - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
+
Returns the format of audio buffers output by the decoder.
+
+
getParameters() - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
+
+
Gets the current selection parameters.
+
+
getPassthroughDecoderInfo() - Method in interface com.google.android.exoplayer2.mediacodec.MediaCodecSelector
+
+
Selects a decoder to instantiate for audio passthrough.
+
+
getPassthroughDecoderInfo() - Static method in class com.google.android.exoplayer2.mediacodec.MediaCodecUtil
+
+
Returns information about a decoder suitable for audio passthrough.
+
+
getPcmEncoding(int) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Converts a sample bit depth to a corresponding PCM encoding constant.
+
+
getPeekPosition() - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
getPeekPosition() - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Returns the current peek position (byte offset) in the stream.
+
+
getPercentile(float) - Method in class com.google.android.exoplayer2.util.SlidingPercentile
+
+
Computes a percentile by integration.
+
+
getPeriod(int) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
getPeriod(int, Timeline.Period, boolean) - Method in class com.google.android.exoplayer2.source.SinglePeriodTimeline
+
 
+
getPeriod(int, Timeline.Period) - Method in class com.google.android.exoplayer2.Timeline
+
+
Populates a Timeline.Period with data for the period at the specified index.
+
+
getPeriod(int, Timeline.Period, boolean) - Method in class com.google.android.exoplayer2.Timeline
+
+
Populates a Timeline.Period with data for the period at the specified index.
+
+
getPeriodCount() - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
getPeriodCount() - Method in class com.google.android.exoplayer2.source.SinglePeriodTimeline
+
 
+
getPeriodCount() - Method in class com.google.android.exoplayer2.Timeline
+
+
Returns the number of periods in the timeline.
+
+
getPeriodDurationMs(int) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
getPeriodDurationUs(int) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
getPhysicalDisplaySize(Context) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Gets the physical size of the default display, in pixels.
+
+
getPhysicalDisplaySize(Context, Display) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Gets the physical size of the specified display, in pixels.
+
+
getPixelCount() - Method in class com.google.android.exoplayer2.Format
+
+
Returns the number of pixels if this is a video format whose Format.width and Format.height + are known, or Format.NO_VALUE otherwise
+
+
getPlaybackParams() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Returns the PlaybackParams governing audio playback, or null if not set.
+
+
getPlaybackState() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Returns the current state of the player.
+
+
getPlaybackState() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getPlayer() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+
Returns the player currently being controlled by this view, or null if no player is set.
+
+
getPlayer() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+
Returns the player currently set on this view, or null if no player is set.
+
+
getPlayWhenReady() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Whether playback will proceed when ExoPlayer.getPlaybackState() == ExoPlayer.STATE_READY.
+
+
getPlayWhenReady() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
getPosition(long) - Method in class com.google.android.exoplayer2.extractor.ChunkIndex
+
 
+
getPosition() - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
getPosition() - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Returns the current read position (byte offset) in the stream.
+
+
getPosition(long) - Method in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
getPosition(long) - Method in class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
 
+
getPosition(long) - Method in interface com.google.android.exoplayer2.extractor.SeekMap
+
+
Maps a seek position in microseconds to a corresponding position (byte offset) in the stream + from which data can be provided to the extractor.
+
+
getPosition(long) - Method in class com.google.android.exoplayer2.extractor.SeekMap.Unseekable
+
 
+
getPosition(long) - Method in class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
 
+
getPosition() - Method in class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Returns the current bit offset.
+
+
getPosition() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Returns the current offset in the array, in bytes.
+
+
getPositionInFirstPeriodMs() - Method in class com.google.android.exoplayer2.Timeline.Window
+
+
Returns the position of the start of this window relative to the start of the first period + belonging to it, in milliseconds.
+
+
getPositionInFirstPeriodUs() - Method in class com.google.android.exoplayer2.Timeline.Window
+
+
Returns the position of the start of this window relative to the start of the first period + belonging to it, in microseconds.
+
+
getPositionInWindowMs() - Method in class com.google.android.exoplayer2.Timeline.Period
+
+
Returns the position of the start of this period relative to the start of the window to which + it belongs, in milliseconds.
+
+
getPositionInWindowUs() - Method in class com.google.android.exoplayer2.Timeline.Period
+
+
Returns the position of the start of this period relative to the start of the window to which + it belongs, in microseconds.
+
+
getPositionUs() - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
getPositionUs() - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
getPositionUs() - Method in interface com.google.android.exoplayer2.util.MediaClock
+
+
Returns the current media position in microseconds.
+
+
getPositionUs() - Method in class com.google.android.exoplayer2.util.StandaloneMediaClock
+
 
+
getPreferredQueueSize(long, List<? extends MediaChunk>) - Method in interface com.google.android.exoplayer2.source.chunk.ChunkSource
+
+
Evaluates whether MediaChunks should be removed from the back of the queue.
+
+
getPreferredQueueSize(long, List<? extends MediaChunk>) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource
+
 
+
getPreferredQueueSize(long, List<? extends MediaChunk>) - Method in class com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
+
 
+
getPresentationTimeOffsetUs() - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase
+
+
Returns the presentation time offset, in microseconds.
+
+
getProfileLevels() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
The profile levels supported by the decoder.
+
+
getPropertyByteArray(String) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
getPropertyByteArray(String) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
getPropertyByteArray(String) - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
+
Provides access to MediaDrm.getPropertyByteArray(String).
+
+
getPropertyString(String) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
getPropertyString(String) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
getPropertyString(String) - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
+
Provides access to MediaDrm.getPropertyString(String).
+
+
getProvisionRequest() - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
getProvisionRequest() - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
getReadIndex() - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Returns the current absolute read index.
+
+
getRemainderDataSpec(DataSpec, int) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Given a DataSpec and a number of bytes already loaded, returns a DataSpec + that represents the remainder of the data.
+
+
getRendererCount() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Returns the number of renderers.
+
+
getRendererDisabled(int) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
+
Returns whether the renderer is disabled.
+
+
getRendererException() - Method in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
Retrieves the underlying error when ExoPlaybackException.type is ExoPlaybackException.TYPE_RENDERER.
+
+
getRendererSupport(int) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
Returns the extent to which a renderer can support playback of the tracks associated to it.
+
+
getRendererType(int) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Returns the track type that the renderer at a given index handles.
+
+
getResponseHeaders() - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
getResponseHeaders() - Method in interface com.google.android.exoplayer2.upstream.HttpDataSource
+
+
Returns the headers provided in the response, or null if response headers are + unavailable.
+
+
getResult() - Method in class com.google.android.exoplayer2.upstream.ParsingLoadable
+
+
Returns the loaded object, or null if an object has not been loaded.
+
+
getSampleFormat() - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
+
Returns a Format parsed from the chunk, or null.
+
+
getSeekMap() - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
+
Returns a SeekMap parsed from the chunk, or null.
+
+
getSegmentDurationUs(int, long) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
+
 
+
getSegmentEndTimeUs(int) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
getSegmentNum(long, long) - Method in interface com.google.android.exoplayer2.source.dash.DashSegmentIndex
+
+
Returns the segment number of the segment containing a given media time.
+
+
getSegmentNum(long) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
getSegmentNum(long, long) - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
getSegmentNum(long, long) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
+
 
+
getSegmentStartTimeUs(int) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
getSegmentTimeUs(int) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
+
 
+
getSegmentUrl(int) - Method in interface com.google.android.exoplayer2.source.dash.DashSegmentIndex
+
+
Returns a RangedUri defining the location of a segment.
+
+
getSegmentUrl(int) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
getSegmentUrl(int) - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
getSegmentUrl(Representation, int) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
+
+
Returns a RangedUri defining the location of a segment for the given index in the + given representation.
+
+
getSegmentUrl(Representation, int) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentList
+
 
+
getSegmentUrl(Representation, int) - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTemplate
+
 
+
getSelectedFormat() - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
getSelectedFormat() - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the Format of the individual selected track.
+
+
getSelectedIndex() - Method in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
getSelectedIndex() - Method in class com.google.android.exoplayer2.trackselection.FixedTrackSelection
+
 
+
getSelectedIndex() - Method in class com.google.android.exoplayer2.trackselection.RandomTrackSelection
+
 
+
getSelectedIndex() - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the index of the selected track.
+
+
getSelectedIndexInTrackGroup() - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
getSelectedIndexInTrackGroup() - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the index in the track group of the individual selected track.
+
+
getSelectionData() - Method in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
getSelectionData() - Method in class com.google.android.exoplayer2.trackselection.FixedTrackSelection
+
 
+
getSelectionData() - Method in class com.google.android.exoplayer2.trackselection.RandomTrackSelection
+
 
+
getSelectionData() - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns optional data associated with the current track selection.
+
+
getSelectionOverride(int, TrackGroupArray) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
+
Returns the override for the specified renderer and TrackGroupArray.
+
+
getSelectionReason() - Method in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
getSelectionReason() - Method in class com.google.android.exoplayer2.trackselection.FixedTrackSelection
+
 
+
getSelectionReason() - Method in class com.google.android.exoplayer2.trackselection.RandomTrackSelection
+
 
+
getSelectionReason() - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the reason for the current track selection.
+
+
getShowTimeoutMs() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+
Returns the playback controls timeout.
+
+
getSourceException() - Method in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
Retrieves the underlying error when ExoPlaybackException.type is ExoPlaybackException.TYPE_SOURCE.
+
+
getStartTimeUs(int) - Method in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
+
Returns the start time of the specified chunk.
+
+
getState() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
getState() - Method in interface com.google.android.exoplayer2.drm.DrmSession
+
+
Returns the current state of the session.
+
+
getState() - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
 
+
getState() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Returns the current state of the renderer.
+
+
getStream() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
getStream() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Returns the SampleStream being consumed, or null if the renderer is disabled.
+
+
getTimeUs(int) - Method in interface com.google.android.exoplayer2.source.dash.DashSegmentIndex
+
+
Returns the start time of a segment.
+
+
getTimeUs(int) - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
getTotalBytesAllocated() - Method in interface com.google.android.exoplayer2.upstream.Allocator
+
+
Returns the total number of bytes currently allocated.
+
+
getTotalBytesAllocated() - Method in class com.google.android.exoplayer2.upstream.DefaultAllocator
+
 
+
getTrackFormatSupport(int, int, int) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
Returns the extent to which the format of an individual track is supported by the renderer.
+
+
getTrackGroup() - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
getTrackGroup() - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the TrackGroup to which the selected tracks belong.
+
+
getTrackGroups() - Method in interface com.google.android.exoplayer2.source.MediaPeriod
+
+
Returns the TrackGroups exposed by the period.
+
+
getTrackGroups(int) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
Returns the array of TrackGroups associated to the renderer at a specified index.
+
+
getTrackOutput() - Method in class com.google.android.exoplayer2.source.chunk.BaseMediaChunk
+
+
Returns the track output most recently passed to BaseMediaChunk.init(DefaultTrackOutput).
+
+
getTrackType() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
getTrackType() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Returns the track type that the Renderer handles.
+
+
getTrackType() - Method in interface com.google.android.exoplayer2.RendererCapabilities
+
+
Returns the track type that the Renderer handles.
+
+
getTrackType(String) - Static method in class com.google.android.exoplayer2.util.MimeTypes
+
+
Returns the C.TRACK_TYPE_* constant that corresponds to a specified mime type.
+
+
getTrackTypeOfCodec(String) - Static method in class com.google.android.exoplayer2.util.MimeTypes
+
+
Equivalent to getTrackType(getMediaMimeType(codec)).
+
+
getUnassociatedTrackGroups() - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
Returns the TrackGroups not associated with any renderer.
+
+
getUnexpectedException() - Method in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
Retrieves the underlying error when ExoPlaybackException.type is ExoPlaybackException.TYPE_UNEXPECTED.
+
+
getUpstreamFormat() - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Returns the upstream Format in which samples are being queued.
+
+
getUri() - Method in class com.google.android.exoplayer2.source.dash.manifest.RangedUri
+
+
Returns the Uri represented by the instance.
+
+
getUri() - Method in class com.google.android.exoplayer2.upstream.AssetDataSource
+
 
+
getUri() - Method in class com.google.android.exoplayer2.upstream.ByteArrayDataSource
+
 
+
getUri() - Method in class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
 
+
getUri() - Method in class com.google.android.exoplayer2.upstream.ContentDataSource
+
 
+
getUri() - Method in interface com.google.android.exoplayer2.upstream.DataSource
+
+
When the source is open, returns the Uri from which data is being read.
+
+
getUri() - Method in class com.google.android.exoplayer2.upstream.DefaultDataSource
+
 
+
getUri() - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
getUri() - Method in class com.google.android.exoplayer2.upstream.FileDataSource
+
 
+
getUri() - Method in class com.google.android.exoplayer2.upstream.PriorityDataSource
+
 
+
getUri() - Method in class com.google.android.exoplayer2.upstream.RawResourceDataSource
+
 
+
getUri() - Method in class com.google.android.exoplayer2.upstream.TeeDataSource
+
 
+
getUri() - Method in class com.google.android.exoplayer2.upstream.UdpDataSource
+
 
+
getUriString() - Method in class com.google.android.exoplayer2.source.dash.manifest.RangedUri
+
+
Returns the uri represented by the instance as a string.
+
+
getUseController() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+
Returns whether the playback controls are enabled.
+
+
getUserAgent(Context, String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns a user agent string based on the given application name and the library version.
+
+
getUtf8Bytes(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns a new byte array containing the code points of a String encoded using UTF-8.
+
+
getVideoDecoderCounters() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Returns DecoderCounters for video, or null if no video is being played.
+
+
getVideoFormat() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Returns the video format currently being played, or null if no video is being played.
+
+
getVideoMediaMimeType(String) - Static method in class com.google.android.exoplayer2.util.MimeTypes
+
+
Derives a video sample mimeType from a codecs attribute.
+
+
getVideoSurfaceView() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+
Get the view onto which video is rendered.
+
+
getVolume() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Returns the audio volume, with 0 being silence and 1 being unity gain.
+
+
getWindow(int, Timeline.Window, boolean) - Method in class com.google.android.exoplayer2.source.SinglePeriodTimeline
+
 
+
getWindow(int, Timeline.Window) - Method in class com.google.android.exoplayer2.Timeline
+
+
Populates a Timeline.Window with data for the window at the specified index.
+
+
getWindow(int, Timeline.Window, boolean) - Method in class com.google.android.exoplayer2.Timeline
+
+
Populates a Timeline.Window with data for the window at the specified index.
+
+
getWindowCount() - Method in class com.google.android.exoplayer2.source.SinglePeriodTimeline
+
 
+
getWindowCount() - Method in class com.google.android.exoplayer2.Timeline
+
+
Returns the number of windows in the timeline.
+
+
getWrappedMediaCrypto() - Method in class com.google.android.exoplayer2.drm.FrameworkMediaCrypto
+
 
+
getWriteIndex() - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Returns the current absolute write index.
+
+
group - Variable in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
+
The selected TrackGroup.
+
+
groupIndex - Variable in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.SelectionOverride
+
 
+
+ + + +

H

+
+
handleAudioTrackDiscontinuity() - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
handleBuffer(ByteBuffer, long) - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Attempts to write data from a ByteBuffer to the audio track, starting from its current + position and ending at its limit (exclusive).
+
+
handleDiscontinuity() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Signals to the audio track that the next buffer is discontinuous with the previous buffer.
+
+
handleEndOfStream() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Ensures that the last data passed to AudioTrack.handleBuffer(ByteBuffer, long) is played in full.
+
+
handleMessage(int, Object) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
handleMessage(int, Object) - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
handleMessage(int, Object) - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
handleMessage(int, Object) - Method in interface com.google.android.exoplayer2.ExoPlayer.ExoPlayerComponent
+
+
Handles a message delivered to the component.
+
+
handleMessage(Message) - Method in class com.google.android.exoplayer2.metadata.MetadataRenderer
+
 
+
handleMessage(Message) - Method in class com.google.android.exoplayer2.text.TextRenderer
+
 
+
handleMessage(int, Object) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
hasGaplessInfo() - Method in class com.google.android.exoplayer2.extractor.GaplessInfoHolder
+
+ +
+
hashCode() - Method in class com.google.android.exoplayer2.audio.AudioCapabilities
+
 
+
hashCode() - Method in class com.google.android.exoplayer2.drm.DrmInitData
+
 
+
hashCode() - Method in class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
 
+
hashCode() - Method in class com.google.android.exoplayer2.Format
+
 
+
hashCode() - Method in class com.google.android.exoplayer2.source.dash.manifest.RangedUri
+
 
+
hashCode() - Method in class com.google.android.exoplayer2.source.TrackGroup
+
 
+
hashCode() - Method in class com.google.android.exoplayer2.source.TrackGroupArray
+
 
+
hashCode() - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
hashCode() - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
hashCode() - Method in class com.google.android.exoplayer2.trackselection.TrackSelections
+
 
+
hasOnlyUnplayableTracks(int) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
Returns true if tracks of the specified type exist and have been associated with renderers, + but are all unplayable.
+
+
hasPendingData() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Returns whether the audio track has more data pending that will be played back.
+
+
hasReadStreamToEnd() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
hasReadStreamToEnd() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Returns whether the renderer has read the current SampleStream to the end.
+
+
hasSelectionOverride(int, TrackGroupArray) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
+
Returns whether there is an override for the specified renderer and TrackGroupArray.
+
+
headerFields - Variable in exception com.google.android.exoplayer2.upstream.HttpDataSource.InvalidResponseCodeException
+
+
An unmodifiable map of the response header fields and values.
+
+
height - Variable in class com.google.android.exoplayer2.Format
+
+
The height of the video in pixels, or Format.NO_VALUE if unknown or not applicable.
+
+
height - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
height - Variable in class com.google.android.exoplayer2.video.AvcConfig
+
 
+
HevcConfig - Class in com.google.android.exoplayer2.video
+
+
HEVC configuration data.
+
+
hide() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+
Hides the controller.
+
+
HlsMasterPlaylist - Class in com.google.android.exoplayer2.source.hls.playlist
+
+
Represents an HLS master playlist.
+
+
HlsMasterPlaylist(String, List<HlsMasterPlaylist.HlsUrl>, List<HlsMasterPlaylist.HlsUrl>, List<HlsMasterPlaylist.HlsUrl>, Format, Format) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
+
 
+
HlsMasterPlaylist.HlsUrl - Class in com.google.android.exoplayer2.source.hls.playlist
+
+
Represents a url in an HLS master playlist.
+
+
HlsMediaPlaylist - Class in com.google.android.exoplayer2.source.hls.playlist
+
+
Represents an HLS media playlist.
+
+
HlsMediaPlaylist(String, int, int, int, boolean, HlsMediaPlaylist.Segment, List<HlsMediaPlaylist.Segment>) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
HlsMediaPlaylist.Segment - Class in com.google.android.exoplayer2.source.hls.playlist
+
+
Media segment reference.
+
+
HlsMediaSource - Class in com.google.android.exoplayer2.source.hls
+
+
An HLS MediaSource.
+
+
HlsMediaSource(Uri, DataSource.Factory, Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.hls.HlsMediaSource
+
 
+
HlsMediaSource(Uri, DataSource.Factory, int, Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.hls.HlsMediaSource
+
 
+
HlsPlaylist - Class in com.google.android.exoplayer2.source.hls.playlist
+
+
Represents an HLS playlist.
+
+
HlsPlaylist(String, int) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
+
 
+
HlsPlaylist.Type - Annotation Type in com.google.android.exoplayer2.source.hls.playlist
+
+
The type of playlist.
+
+
HlsPlaylistParser - Class in com.google.android.exoplayer2.source.hls.playlist
+
+
HLS playlists parsing logic.
+
+
HlsPlaylistParser() - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParser
+
 
+
HlsUrl(String, String, Format, Format, Format, Format[]) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
+
 
+
HttpDataSource - Interface in com.google.android.exoplayer2.upstream
+
+
An HTTP DataSource.
+
+
HttpDataSource.Factory - Interface in com.google.android.exoplayer2.upstream
+
+
A factory for HttpDataSource instances.
+
+
HttpDataSource.HttpDataSourceException - Exception in com.google.android.exoplayer2.upstream
+
+
Thrown when an error is encountered when trying to read from a HttpDataSource.
+
+
HttpDataSource.HttpDataSourceException.Type - Annotation Type in com.google.android.exoplayer2.upstream
+
 
+
HttpDataSource.InvalidContentTypeException - Exception in com.google.android.exoplayer2.upstream
+
+
Thrown when the content type is invalid.
+
+
HttpDataSource.InvalidResponseCodeException - Exception in com.google.android.exoplayer2.upstream
+
+
Thrown when an attempt to open a connection results in a response code not in the 2xx range.
+
+
HttpDataSourceException(DataSpec, int) - Constructor for exception com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
+
 
+
HttpDataSourceException(String, DataSpec, int) - Constructor for exception com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
+
 
+
HttpDataSourceException(IOException, DataSpec, int) - Constructor for exception com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
+
 
+
HttpDataSourceException(String, IOException, DataSpec, int) - Constructor for exception com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
+
 
+
HttpMediaDrmCallback - Class in com.google.android.exoplayer2.drm
+
+
A MediaDrmCallback that makes requests using HttpDataSource instances.
+
+
HttpMediaDrmCallback(String, HttpDataSource.Factory) - Constructor for class com.google.android.exoplayer2.drm.HttpMediaDrmCallback
+
 
+
HttpMediaDrmCallback(String, HttpDataSource.Factory, Map<String, String>) - Constructor for class com.google.android.exoplayer2.drm.HttpMediaDrmCallback
+
 
+
+ + + +

I

+
+
id - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
The track identifier.
+
+
id - Variable in class com.google.android.exoplayer2.Format
+
+
An identifier for the format, or null if unknown or not applicable.
+
+
ID - Static variable in class com.google.android.exoplayer2.metadata.id3.ApicFrame
+
 
+
ID - Static variable in class com.google.android.exoplayer2.metadata.id3.GeobFrame
+
 
+
id - Variable in class com.google.android.exoplayer2.metadata.id3.Id3Frame
+
+
The frame ID.
+
+
ID - Static variable in class com.google.android.exoplayer2.metadata.id3.PrivFrame
+
 
+
ID - Static variable in class com.google.android.exoplayer2.metadata.id3.TxxxFrame
+
 
+
id - Variable in class com.google.android.exoplayer2.source.dash.manifest.AdaptationSet
+
 
+
id - Variable in class com.google.android.exoplayer2.source.dash.manifest.Period
+
+
The period identifier, if one exists.
+
+
id - Variable in class com.google.android.exoplayer2.Timeline.Period
+
+
An identifier for the period.
+
+
id - Variable in class com.google.android.exoplayer2.Timeline.Window
+
+
An identifier for the window.
+
+
Id3Decoder - Class in com.google.android.exoplayer2.metadata.id3
+
+
Decodes individual TXXX text frames from raw ID3 data.
+
+
Id3Decoder() - Constructor for class com.google.android.exoplayer2.metadata.id3.Id3Decoder
+
 
+
Id3Frame - Class in com.google.android.exoplayer2.metadata.id3
+
+
Base class for ID3 frames.
+
+
Id3Frame(String) - Constructor for class com.google.android.exoplayer2.metadata.id3.Id3Frame
+
 
+
IllegalMergeException(int) - Constructor for exception com.google.android.exoplayer2.source.MergingMediaSource.IllegalMergeException
+
 
+
INDEX_UNBOUNDED - Static variable in interface com.google.android.exoplayer2.source.dash.DashSegmentIndex
+
 
+
INDEX_UNSET - Static variable in class com.google.android.exoplayer2.C
+
+
Represents an unset or unknown index.
+
+
indexOf(Format) - Method in class com.google.android.exoplayer2.source.TrackGroup
+
+
Returns the index of the track with the given format in the group.
+
+
indexOf(TrackGroup) - Method in class com.google.android.exoplayer2.source.TrackGroupArray
+
+
Returns the index of a group within the array.
+
+
indexOf(Format) - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
indexOf(int) - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
indexOf(Format) - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the index in the selection of the track with the specified format.
+
+
indexOf(int) - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the index in the selection of the track with the specified index in the track group.
+
+
inferContentType(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Makes a best guess to infer the type from a file name.
+
+
info - Variable in class com.google.android.exoplayer2.trackselection.TrackSelections
+
+
Opaque information associated with the result.
+
+
init(long, int) - Method in class com.google.android.exoplayer2.decoder.SimpleOutputBuffer
+
+
Initializes the buffer.
+
+
init(ExtractorOutput) - Method in interface com.google.android.exoplayer2.extractor.Extractor
+
+
Initializes the extractor with an ExtractorOutput.
+
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.mp3.Mp3Extractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.ogg.OggExtractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.rawcc.RawCcExtractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.ts.Ac3Extractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.ts.AdtsExtractor
+
 
+
init(ExtractorOutput, ElementaryStreamReader.TrackIdGenerator) - Method in class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader
+
+
Initializes the reader by providing outputs and ids for the tracks.
+
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
init(ExtractorOutput) - Method in class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
 
+
init(DefaultTrackOutput) - Method in class com.google.android.exoplayer2.source.chunk.BaseMediaChunk
+
+
Initializes the chunk for loading, setting the DefaultTrackOutput that will receive + samples as they are loaded.
+
+
init(ChunkExtractorWrapper.SingleTrackMetadataOutput, TrackOutput) - Method in class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
+
Initializes the extractor to output to the provided ChunkExtractorWrapper.SingleTrackMetadataOutput and + TrackOutput instances, and configures it to receive data from a new chunk.
+
+
init(TrackSelector.InvalidationListener) - Method in class com.google.android.exoplayer2.trackselection.TrackSelector
+
+
Initializes the selector.
+
+
InitializationChunk - Class in com.google.android.exoplayer2.source.chunk
+
+
A Chunk that uses an Extractor to decode initialization data for single track.
+
+
InitializationChunk(DataSource, DataSpec, Format, int, Object, ChunkExtractorWrapper) - Constructor for class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
initializationData - Variable in class com.google.android.exoplayer2.Format
+
+
Initialization data that must be provided to the decoder.
+
+
initializationData - Variable in class com.google.android.exoplayer2.video.AvcConfig
+
 
+
initializationData - Variable in class com.google.android.exoplayer2.video.HevcConfig
+
 
+
InitializationException(int, int, int, int) - Constructor for exception com.google.android.exoplayer2.audio.AudioTrack.InitializationException
+
 
+
initializationSegment - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
initializationVectorSize - Variable in class com.google.android.exoplayer2.extractor.mp4.TrackEncryptionBox
+
+
The initialization vector size in bytes for the samples in the corresponding sample group.
+
+
initialize(int) - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Initializes the audio track for writing new buffers using AudioTrack.handleBuffer(java.nio.ByteBuffer, long).
+
+
inputBufferCount - Variable in class com.google.android.exoplayer2.decoder.DecoderCounters
+
+
The number of queued input buffers.
+
+
inputFormatChanged(Format) - Method in class com.google.android.exoplayer2.audio.AudioRendererEventListener.EventDispatcher
+
+ +
+
inputFormatChanged(Format) - Method in class com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
+
+ +
+
invalidate() - Method in class com.google.android.exoplayer2.trackselection.TrackSelector
+
+
Invalidates all previously generated track selections.
+
+
InvalidAudioTrackTimestampException(String) - Constructor for exception com.google.android.exoplayer2.audio.AudioTrack.InvalidAudioTrackTimestampException
+
 
+
InvalidContentTypeException(String, DataSpec) - Constructor for exception com.google.android.exoplayer2.upstream.HttpDataSource.InvalidContentTypeException
+
 
+
InvalidResponseCodeException(int, Map<String, List<String>>, DataSpec) - Constructor for exception com.google.android.exoplayer2.upstream.HttpDataSource.InvalidResponseCodeException
+
 
+
isApplication(String) - Static method in class com.google.android.exoplayer2.util.MimeTypes
+
+
Whether the top-level type of mimeType is application.
+
+
isAudio(String) - Static method in class com.google.android.exoplayer2.util.MimeTypes
+
+
Whether the top-level type of mimeType is audio.
+
+
isAudioChannelCountSupportedV21(int) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
Whether the decoder supports audio with a given channel count.
+
+
isAudioSampleRateSupportedV21(int) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
Whether the decoder supports audio with a given sample rate.
+
+
isAvailable() - Method in class com.google.android.exoplayer2.util.LibraryLoader
+
+
Returns whether the underlying libraries are available, loading them if necessary.
+
+
isBlacklisted(int, long) - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
+
Returns whether the track at the specified index in the selection is blaclisted.
+
+
isCached(String, long, long) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Queries if a range is entirely available in the cache.
+
+
isCached - Variable in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
+
Whether the CacheSpan is cached.
+
+
isCached(String, long, long) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
isCodecSupported(String) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
Whether the decoder supports the given codec.
+
+
isDecodeOnly() - Method in class com.google.android.exoplayer2.decoder.Buffer
+
+
Returns whether the C.BUFFER_FLAG_DECODE_ONLY flag is set.
+
+
isDynamic - Variable in class com.google.android.exoplayer2.Timeline.Window
+
+
Whether this window may change when the timeline is updated.
+
+
isEmpty() - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Returns whether the buffer is empty.
+
+
isEncrypted() - Method in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
+
Returns whether the C.BUFFER_FLAG_ENCRYPTED flag is set.
+
+
isEncrypted - Variable in class com.google.android.exoplayer2.extractor.mp4.TrackEncryptionBox
+
+
Indicates the encryption state of the samples in the sample group.
+
+
isEncrypted - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
isEnded() - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
isEnded() - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
isEnded() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
isEnded() - Method in class com.google.android.exoplayer2.metadata.MetadataRenderer
+
 
+
isEnded() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Whether the renderer is ready for the ExoPlayer instance to transition to + ExoPlayer.STATE_ENDED.
+
+
isEnded() - Method in class com.google.android.exoplayer2.text.TextRenderer
+
 
+
isEndOfStream() - Method in class com.google.android.exoplayer2.decoder.Buffer
+
+
Returns whether the C.BUFFER_FLAG_END_OF_STREAM flag is set.
+
+
isEndTag(XmlPullParser, String) - Static method in class com.google.android.exoplayer2.util.XmlPullParserUtil
+
+
Returns whether the current event is an end tag with the specified name.
+
+
isEndTag(XmlPullParser) - Static method in class com.google.android.exoplayer2.util.XmlPullParserUtil
+
+
Returns whether the current event is an end tag.
+
+
isExplicit() - Method in interface com.google.android.exoplayer2.source.dash.DashSegmentIndex
+
+
Returns true if segments are defined explicitly by the index.
+
+
isExplicit() - Method in class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
isExplicit() - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
+
 
+
isExplicit() - Method in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentList
+
 
+
isInitialized() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Returns whether the audio track has been successfully initialized via AudioTrack.initialize(int) and + not yet AudioTrack.reset().
+
+
isKeyFrame() - Method in class com.google.android.exoplayer2.decoder.Buffer
+
+
Returns whether the C.BUFFER_FLAG_KEY_FRAME flag is set.
+
+
isLive - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
+
Whether the manifest describes a live presentation still in progress.
+
+
isLoadCanceled() - Method in class com.google.android.exoplayer2.source.chunk.ContainerMediaChunk
+
 
+
isLoadCanceled() - Method in class com.google.android.exoplayer2.source.chunk.DataChunk
+
 
+
isLoadCanceled() - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
isLoadCanceled() - Method in class com.google.android.exoplayer2.source.chunk.SingleSampleMediaChunk
+
 
+
isLoadCanceled() - Method in interface com.google.android.exoplayer2.upstream.Loader.Loadable
+
+
Returns whether the load has been canceled.
+
+
isLoadCanceled() - Method in class com.google.android.exoplayer2.upstream.ParsingLoadable
+
 
+
isLoadCompleted() - Method in class com.google.android.exoplayer2.source.chunk.ContainerMediaChunk
+
 
+
isLoadCompleted() - Method in class com.google.android.exoplayer2.source.chunk.MediaChunk
+
+
Returns whether the chunk has been fully loaded.
+
+
isLoadCompleted() - Method in class com.google.android.exoplayer2.source.chunk.SingleSampleMediaChunk
+
 
+
isLoading() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Whether the player is currently loading the source.
+
+
isLoading() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
isLoading() - Method in class com.google.android.exoplayer2.upstream.Loader
+
+
Returns whether the Loader is currently loading a Loader.Loadable.
+
+
isLocalFileUri(Uri) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns true if the URI is a path to a local file or a reference to a local file.
+
+
isNewSubtitleDataAvailable() - Method in class com.google.android.exoplayer2.text.cea.Cea608Decoder
+
 
+
isOpenEnded() - Method in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
+
Returns whether this is an open-ended CacheSpan.
+
+
isPassthroughSupported(String) - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Returns whether it's possible to play audio in the specified format using encoded passthrough.
+
+
isReady() - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
isReady() - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
isReady() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
isReady() - Method in class com.google.android.exoplayer2.metadata.MetadataRenderer
+
 
+
isReady() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Whether the renderer is able to immediately render media from the current position.
+
+
isReady() - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
isReady() - Method in interface com.google.android.exoplayer2.source.SampleStream
+
+
Returns whether data is available to be read.
+
+
isReady() - Method in class com.google.android.exoplayer2.text.TextRenderer
+
 
+
isReady() - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
isSeekable() - Method in class com.google.android.exoplayer2.extractor.ChunkIndex
+
 
+
isSeekable() - Method in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
isSeekable() - Method in class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
 
+
isSeekable() - Method in interface com.google.android.exoplayer2.extractor.SeekMap
+
+
Returns whether seeking is supported.
+
+
isSeekable() - Method in class com.google.android.exoplayer2.extractor.SeekMap.Unseekable
+
 
+
isSeekable() - Method in class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
 
+
isSeekable - Variable in class com.google.android.exoplayer2.Timeline.Window
+
+
Whether it's possible to seek within this window.
+
+
isSeiMessageCea608(int, int, ParsableByteArray) - Static method in class com.google.android.exoplayer2.text.cea.Cea608Decoder
+
+
Inspects an sei message to determine whether it contains CEA-608.
+
+
isSourceReady() - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Returns whether the upstream source is ready.
+
+
isStartTag(XmlPullParser, String) - Static method in class com.google.android.exoplayer2.util.XmlPullParserUtil
+
+
Returns whether the current event is a start tag with the specified name.
+
+
isStartTag(XmlPullParser) - Static method in class com.google.android.exoplayer2.util.XmlPullParserUtil
+
+
Returns whether the current event is a start tag.
+
+
isText(String) - Static method in class com.google.android.exoplayer2.util.MimeTypes
+
+
Whether the top-level type of mimeType is text.
+
+
isVideo(String) - Static method in class com.google.android.exoplayer2.util.MimeTypes
+
+
Whether the top-level type of mimeType is video.
+
+
isVideoSizeAndRateSupportedV21(int, int, double) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
Whether the decoder supports video with a given width, height and frame rate.
+
+
isVideoSizeSupportedV21(int, int) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
Whether the decoder supports video with a specified width and height.
+
+
isVisible() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+
Returns whether the controller is currently visible.
+
+
iv - Variable in class com.google.android.exoplayer2.decoder.CryptoInfo
+
 
+
+ + + +

K

+
+
key - Variable in class com.google.android.exoplayer2.decoder.CryptoInfo
+
 
+
key - Variable in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
+
The cache key that uniquely identifies the original stream.
+
+
key - Variable in class com.google.android.exoplayer2.upstream.DataSpec
+
+
A key that uniquely identifies the original stream.
+
+
keyId - Variable in class com.google.android.exoplayer2.extractor.mp4.TrackEncryptionBox
+
+
The key identifier for the samples in the corresponding sample group.
+
+
KeysExpiredException - Exception in com.google.android.exoplayer2.drm
+
+
Thrown when the drm keys loaded into an open session expire.
+
+
KeysExpiredException() - Constructor for exception com.google.android.exoplayer2.drm.KeysExpiredException
+
 
+
+ + + +

L

+
+
language - Variable in class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.EsInfo
+
 
+
language - Variable in class com.google.android.exoplayer2.Format
+
+
The language, or null if unknown or not applicable.
+
+
language - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
lastAccessTimestamp - Variable in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
+
The last access timestamp, or C.TIME_UNSET if CacheSpan.isCached is false.
+
+
lastPeriodIndex - Variable in class com.google.android.exoplayer2.Timeline.Window
+
+
The index of the last period that belongs to this window.
+
+
LeastRecentlyUsedCacheEvictor - Class in com.google.android.exoplayer2.upstream.cache
+
+
Evicts least recently used cache files first.
+
+
LeastRecentlyUsedCacheEvictor(long) - Constructor for class com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
+
 
+
length - Variable in class com.google.android.exoplayer2.extractor.ChunkIndex
+
+
The number of chunks.
+
+
length - Variable in class com.google.android.exoplayer2.source.dash.manifest.RangedUri
+
+
The length of the range, or C.LENGTH_UNSET to indicate that the range is unbounded.
+
+
length - Variable in class com.google.android.exoplayer2.source.TrackGroup
+
+
The number of tracks in the group.
+
+
length - Variable in class com.google.android.exoplayer2.source.TrackGroupArray
+
+
The number of groups in the array.
+
+
length - Variable in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
+
The number of selected tracks within the TrackGroup.
+
+
length() - Method in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
 
+
length - Variable in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.SelectionOverride
+
 
+
length() - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Returns the number of tracks in the selection.
+
+
length - Variable in class com.google.android.exoplayer2.trackselection.TrackSelections
+
+
The number of selections in the result.
+
+
length - Variable in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
+
The length of the CacheSpan, or C.LENGTH_UNSET if this is an open-ended hole.
+
+
length - Variable in class com.google.android.exoplayer2.upstream.DataSpec
+
+
The length of the data, or C.LENGTH_UNSET.
+
+
LENGTH_UNSET - Static variable in class com.google.android.exoplayer2.C
+
+
Represents an unset or unknown length.
+
+
LibraryLoader - Class in com.google.android.exoplayer2.util
+
+
Configurable loader for native libraries.
+
+
LibraryLoader(String...) - Constructor for class com.google.android.exoplayer2.util.LibraryLoader
+
 
+
limit() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Returns the limit.
+
+
line - Variable in class com.google.android.exoplayer2.text.Cue
+
+
The position of the Cue.lineAnchor of the cue box within the viewport in the direction + orthogonal to the writing direction, or Cue.DIMEN_UNSET.
+
+
LINE_TYPE_FRACTION - Static variable in class com.google.android.exoplayer2.text.Cue
+
+
Value for Cue.lineType when Cue.line is a fractional position.
+
+
LINE_TYPE_NUMBER - Static variable in class com.google.android.exoplayer2.text.Cue
+
+
Value for Cue.lineType when Cue.line is a line number.
+
+
lineAnchor - Variable in class com.google.android.exoplayer2.text.Cue
+
+
The cue box anchor positioned by Cue.line.
+
+
lineType - Variable in class com.google.android.exoplayer2.text.Cue
+
+
The type of the Cue.line value.
+
+
live - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
load() - Method in class com.google.android.exoplayer2.source.chunk.ContainerMediaChunk
+
 
+
load() - Method in class com.google.android.exoplayer2.source.chunk.DataChunk
+
 
+
load() - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
load() - Method in class com.google.android.exoplayer2.source.chunk.SingleSampleMediaChunk
+
 
+
load() - Method in interface com.google.android.exoplayer2.upstream.Loader.Loadable
+
+
Performs the load, returning on completion or cancellation.
+
+
load() - Method in class com.google.android.exoplayer2.upstream.ParsingLoadable
+
 
+
loadCanceled(DataSpec, int, long, long, long) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
loadCanceled(DataSpec, int, int, Format, int, Object, long, long, long, long, long) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
loadCompleted(DataSpec, int, long, long, long) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
loadCompleted(DataSpec, int, int, Format, int, Object, long, long, long, long, long) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
LoadControl - Interface in com.google.android.exoplayer2
+
+
Controls buffering of media.
+
+
Loader - Class in com.google.android.exoplayer2.upstream
+
+
Manages the background loading of Loader.Loadables.
+
+
Loader(String) - Constructor for class com.google.android.exoplayer2.upstream.Loader
+
 
+
Loader.Callback<T extends Loader.Loadable> - Interface in com.google.android.exoplayer2.upstream
+
+
A callback to be notified of Loader events.
+
+
Loader.Loadable - Interface in com.google.android.exoplayer2.upstream
+
+
An object that can be loaded using a Loader.
+
+
Loader.UnexpectedLoaderException - Exception in com.google.android.exoplayer2.upstream
+
+
Thrown when an unexpected exception is encountered during loading.
+
+
LoaderErrorThrower - Interface in com.google.android.exoplayer2.upstream
+
+
Conditionally throws errors affecting a Loader.
+
+
loadError(DataSpec, int, long, long, long, IOException, boolean) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
loadError(DataSpec, int, int, Format, int, Object, long, long, long, long, long, IOException, boolean) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
loadStarted(DataSpec, int, long) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
loadStarted(DataSpec, int, int, Format, int, Object, long, long, long) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
location - Variable in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
LongArray - Class in com.google.android.exoplayer2.util
+
+
An append-only, auto-growing long[].
+
+
LongArray() - Constructor for class com.google.android.exoplayer2.util.LongArray
+
 
+
LongArray(int) - Constructor for class com.google.android.exoplayer2.util.LongArray
+
 
+
lookAheadCount - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
+
The number of fragments in a lookahead, or SsManifest.UNSET_LOOKAHEAD if the lookahead is + unspecified.
+
+
LoopingMediaSource - Class in com.google.android.exoplayer2.source
+
+
Loops a MediaSource.
+
+
LoopingMediaSource(MediaSource) - Constructor for class com.google.android.exoplayer2.source.LoopingMediaSource
+
+
Loops the provided source indefinitely.
+
+
LoopingMediaSource(MediaSource, int) - Constructor for class com.google.android.exoplayer2.source.LoopingMediaSource
+
+
Loops the provided source a specified number of times.
+
+
+ + + +

M

+
+
majorVersion - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
+
The client manifest major version.
+
+
MANUFACTURER - Static variable in class com.google.android.exoplayer2.util.Util
+
+
Like Build.MANUFACTURER, but in a place where it can be conveniently overridden for + local testing.
+
+
MappingTrackSelector - Class in com.google.android.exoplayer2.trackselection
+
+
Base class for TrackSelectors that first establish a mapping between TrackGroups + and renderers, and then from that mapping create a TrackSelection for each renderer.
+
+
MappingTrackSelector(Handler) - Constructor for class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
 
+
MappingTrackSelector.MappedTrackInfo - Class in com.google.android.exoplayer2.trackselection
+
+
Provides track information for each renderer.
+
+
MappingTrackSelector.SelectionOverride - Class in com.google.android.exoplayer2.trackselection
+
+
A track selection override.
+
+
matches(UUID) - Method in class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
+
Returns whether this initialization data applies to the specified scheme.
+
+
MatroskaExtractor - Class in com.google.android.exoplayer2.extractor.mkv
+
+
Extracts data from a Matroska or WebM file.
+
+
MatroskaExtractor() - Constructor for class com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor
+
 
+
MAX_FRAME_SIZE_BYTES - Static variable in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
Theoretical maximum frame size for an MPEG audio stream, which occurs when playing a Layer 2 + MPEG 2.5 audio stream at 16 kb/s (with padding).
+
+
maxBlockSize - Variable in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
maxConsecutiveDroppedOutputBufferCount - Variable in class com.google.android.exoplayer2.decoder.DecoderCounters
+
+
The maximum number of dropped output buffers without an interleaving rendered output buffer.
+
+
maxDecodedFrameSize() - Method in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
maxFrameSize - Variable in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
maxH264DecodableFrameSize() - Static method in class com.google.android.exoplayer2.mediacodec.MediaCodecUtil
+
+
Returns the maximum frame size supported by the default H264 decoder.
+
+
maxHeight - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
maxInputSize - Variable in class com.google.android.exoplayer2.Format
+
+
The maximum size of a buffer of data (typically one sample), or Format.NO_VALUE if unknown or + not applicable.
+
+
maxVideoHeight - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
maxVideoWidth - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
maxWidth - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
maybeBlacklistTrack(TrackSelection, int, Exception) - Static method in class com.google.android.exoplayer2.source.chunk.ChunkedTrackBlacklistUtil
+
+ +
+
maybeBlacklistTrack(TrackSelection, int, Exception, long) - Static method in class com.google.android.exoplayer2.source.chunk.ChunkedTrackBlacklistUtil
+
+
Blacklists trackSelectionIndex in trackSelection for + blacklistDurationMs if e is an HttpDataSource.InvalidResponseCodeException with + HttpDataSource.InvalidResponseCodeException.responseCode equal to 404 or 410.
+
+
maybeInitCodec() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
maybeRequestReadExternalStoragePermission(Activity, Uri...) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Checks whether it's necessary to request the Manifest.permission.READ_EXTERNAL_STORAGE + permission read the specified Uris, requesting the permission if necessary.
+
+
maybeThrowError() - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
maybeThrowError() - Method in interface com.google.android.exoplayer2.source.chunk.ChunkSource
+
+
If the source is currently having difficulty providing chunks, then this method throws the + underlying error.
+
+
maybeThrowError() - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource
+
 
+
maybeThrowError() - Method in interface com.google.android.exoplayer2.source.SampleStream
+
+
Throws an error that's preventing data from being read.
+
+
maybeThrowError() - Method in class com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
+
 
+
maybeThrowError() - Method in class com.google.android.exoplayer2.upstream.Loader
+
 
+
maybeThrowError(int) - Method in class com.google.android.exoplayer2.upstream.Loader
+
 
+
maybeThrowError() - Method in interface com.google.android.exoplayer2.upstream.LoaderErrorThrower
+
+
Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the Loaders default + minimum number of retries.
+
+
maybeThrowError(int) - Method in interface com.google.android.exoplayer2.upstream.LoaderErrorThrower
+
+
Throws a fatal error, or a non-fatal error if loading is currently backed off and the current + Loader.Loadable has incurred a number of errors greater than the specified minimum number + of retries.
+
+
maybeThrowPrepareError() - Method in interface com.google.android.exoplayer2.source.MediaPeriod
+
+
Throws an error that's preventing the period from becoming prepared.
+
+
maybeThrowSourceInfoRefreshError() - Method in class com.google.android.exoplayer2.source.ConcatenatingMediaSource
+
 
+
maybeThrowSourceInfoRefreshError() - Method in class com.google.android.exoplayer2.source.dash.DashMediaSource
+
 
+
maybeThrowSourceInfoRefreshError() - Method in class com.google.android.exoplayer2.source.ExtractorMediaSource
+
 
+
maybeThrowSourceInfoRefreshError() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
+
 
+
maybeThrowSourceInfoRefreshError() - Method in class com.google.android.exoplayer2.source.LoopingMediaSource
+
 
+
maybeThrowSourceInfoRefreshError() - Method in interface com.google.android.exoplayer2.source.MediaSource
+
+
Throws any pending error encountered while loading or refreshing source information.
+
+
maybeThrowSourceInfoRefreshError() - Method in class com.google.android.exoplayer2.source.MergingMediaSource
+
 
+
maybeThrowSourceInfoRefreshError() - Method in class com.google.android.exoplayer2.source.SingleSampleMediaSource
+
 
+
maybeThrowSourceInfoRefreshError() - Method in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
maybeThrowStreamError() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
maybeThrowStreamError() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Throws an error that's preventing the renderer from reading from its SampleStream.
+
+
MediaChunk - Class in com.google.android.exoplayer2.source.chunk
+
+
An abstract base class for Chunks that contain media samples.
+
+
MediaChunk(DataSource, DataSpec, Format, int, Object, long, long, int) - Constructor for class com.google.android.exoplayer2.source.chunk.MediaChunk
+
 
+
MediaClock - Interface in com.google.android.exoplayer2.util
+
+
Tracks the progression of media time.
+
+
MediaCodecAudioRenderer - Class in com.google.android.exoplayer2.audio
+
+
Decodes and renders audio using MediaCodec and AudioTrack.
+
+
MediaCodecAudioRenderer(MediaCodecSelector) - Constructor for class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
MediaCodecAudioRenderer(MediaCodecSelector, DrmSessionManager, boolean) - Constructor for class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
MediaCodecAudioRenderer(MediaCodecSelector, Handler, AudioRendererEventListener) - Constructor for class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
MediaCodecAudioRenderer(MediaCodecSelector, DrmSessionManager<FrameworkMediaCrypto>, boolean, Handler, AudioRendererEventListener) - Constructor for class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
MediaCodecAudioRenderer(MediaCodecSelector, DrmSessionManager<FrameworkMediaCrypto>, boolean, Handler, AudioRendererEventListener, AudioCapabilities, int) - Constructor for class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
MediaCodecInfo - Class in com.google.android.exoplayer2.mediacodec
+
+
Information about a MediaCodec for a given mime type.
+
+
MediaCodecRenderer - Class in com.google.android.exoplayer2.mediacodec
+
+
An abstract renderer that uses MediaCodec to decode samples for rendering.
+
+
MediaCodecRenderer(int, MediaCodecSelector, DrmSessionManager<FrameworkMediaCrypto>, boolean) - Constructor for class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
MediaCodecRenderer.DecoderInitializationException - Exception in com.google.android.exoplayer2.mediacodec
+
+
Thrown when a failure occurs instantiating a decoder.
+
+
MediaCodecSelector - Interface in com.google.android.exoplayer2.mediacodec
+
+
Selector of MediaCodec instances.
+
+
MediaCodecUtil - Class in com.google.android.exoplayer2.mediacodec
+
+
A utility class for querying the available codecs.
+
+
MediaCodecUtil.DecoderQueryException - Exception in com.google.android.exoplayer2.mediacodec
+
+
Thrown when an error occurs querying the device for its underlying media capabilities.
+
+
MediaCodecVideoRenderer - Class in com.google.android.exoplayer2.video
+
+
Decodes and renders video using MediaCodec.
+
+
MediaCodecVideoRenderer(Context, MediaCodecSelector, int) - Constructor for class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
MediaCodecVideoRenderer(Context, MediaCodecSelector, int, long) - Constructor for class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
MediaCodecVideoRenderer(Context, MediaCodecSelector, int, long, Handler, VideoRendererEventListener, int) - Constructor for class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
MediaCodecVideoRenderer(Context, MediaCodecSelector, int, long, DrmSessionManager<FrameworkMediaCrypto>, boolean, Handler, VideoRendererEventListener, int) - Constructor for class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
MediaDrmCallback - Interface in com.google.android.exoplayer2.drm
+
+
Performs ExoMediaDrm key and provisioning requests.
+
+
MediaPeriod - Interface in com.google.android.exoplayer2.source
+
+
A source of a single period of media.
+
+
MediaPeriod.Callback - Interface in com.google.android.exoplayer2.source
+
+
A callback to be notified of MediaPeriod events.
+
+
mediaSequence - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
MediaSource - Interface in com.google.android.exoplayer2.source
+
+
A source of media consisting of one or more MediaPeriods.
+
+
MediaSource.Listener - Interface in com.google.android.exoplayer2.source
+
+
Listener for source events.
+
+
merge(DecoderCounters) - Method in class com.google.android.exoplayer2.decoder.DecoderCounters
+
+
Merges the counts from other into this instance.
+
+
MergingMediaSource - Class in com.google.android.exoplayer2.source
+
+
Merges multiple MediaSources.
+
+
MergingMediaSource(MediaSource...) - Constructor for class com.google.android.exoplayer2.source.MergingMediaSource
+
 
+
MergingMediaSource.IllegalMergeException - Exception in com.google.android.exoplayer2.source
+
+
Thrown when a MergingMediaSource cannot merge its sources.
+
+
MergingMediaSource.IllegalMergeException.Reason - Annotation Type in com.google.android.exoplayer2.source
+
+
The reason the merge failed.
+
+
message - Variable in class com.google.android.exoplayer2.ExoPlayer.ExoPlayerMessage
+
+
The message.
+
+
messageType - Variable in class com.google.android.exoplayer2.ExoPlayer.ExoPlayerMessage
+
+
The type of the message.
+
+
MetadataDecoder<T> - Interface in com.google.android.exoplayer2.metadata
+
+
Decodes metadata from binary data.
+
+
MetadataDecoderException - Exception in com.google.android.exoplayer2.metadata
+
+
Thrown when an error occurs decoding metadata.
+
+
MetadataDecoderException(String) - Constructor for exception com.google.android.exoplayer2.metadata.MetadataDecoderException
+
 
+
MetadataDecoderException(String, Throwable) - Constructor for exception com.google.android.exoplayer2.metadata.MetadataDecoderException
+
 
+
MetadataRenderer<T> - Class in com.google.android.exoplayer2.metadata
+
+
A renderer for metadata.
+
+
MetadataRenderer(MetadataRenderer.Output<T>, Looper, MetadataDecoder<T>) - Constructor for class com.google.android.exoplayer2.metadata.MetadataRenderer
+
 
+
MetadataRenderer.Output<T> - Interface in com.google.android.exoplayer2.metadata
+
+
Receives output from a MetadataRenderer.
+
+
MICROS_PER_SECOND - Static variable in class com.google.android.exoplayer2.C
+
+
The number of microseconds in one second.
+
+
mimeType - Variable in class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
+ +
+
mimeType - Variable in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
The mime type.
+
+
mimeType - Variable in exception com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException
+
+
The mime type for which a decoder was being initialized.
+
+
mimeType - Variable in class com.google.android.exoplayer2.metadata.id3.ApicFrame
+
 
+
mimeType - Variable in class com.google.android.exoplayer2.metadata.id3.GeobFrame
+
 
+
MimeTypes - Class in com.google.android.exoplayer2.util
+
+
Defines common MIME types and helper methods.
+
+
MIN_RETRY_COUNT_DEFAULT_FOR_MEDIA - Static variable in class com.google.android.exoplayer2.source.ExtractorMediaSource
+
+
Value for minLoadableRetryCount that causes the loader to retry + ExtractorMediaSource.DEFAULT_MIN_LOADABLE_RETRY_COUNT_LIVE times for live streams and + ExtractorMediaSource.DEFAULT_MIN_LOADABLE_RETRY_COUNT_ON_DEMAND for on-demand streams.
+
+
minBlockSize - Variable in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
minBufferTime - Variable in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
minFrameSize - Variable in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
minorVersion - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
+
The client manifest minor version.
+
+
minUpdatePeriod - Variable in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
MissingFieldException(String) - Constructor for exception com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifestParser.MissingFieldException
+
 
+
mode - Variable in class com.google.android.exoplayer2.decoder.CryptoInfo
+
 
+
MODEL - Static variable in class com.google.android.exoplayer2.util.Util
+
+
Like Build.MODEL, but in a place where it can be conveniently overridden for local + testing.
+
+
movieTimescale - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
The movie timescale.
+
+
Mp3Extractor - Class in com.google.android.exoplayer2.extractor.mp3
+
+
Extracts data from an MP3 file.
+
+
Mp3Extractor() - Constructor for class com.google.android.exoplayer2.extractor.mp3.Mp3Extractor
+
+
Constructs a new Mp3Extractor.
+
+
Mp3Extractor(long) - Constructor for class com.google.android.exoplayer2.extractor.mp3.Mp3Extractor
+
+
Constructs a new Mp3Extractor.
+
+
Mp4Extractor - Class in com.google.android.exoplayer2.extractor.mp4
+
+
Extracts data from an unfragmented MP4 file.
+
+
Mp4Extractor() - Constructor for class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
 
+
Mp4WebvttDecoder - Class in com.google.android.exoplayer2.text.webvtt
+
+
A SimpleSubtitleDecoder for Webvtt embedded in a Mp4 container file.
+
+
Mp4WebvttDecoder() - Constructor for class com.google.android.exoplayer2.text.webvtt.Mp4WebvttDecoder
+
 
+
MpegAudioHeader - Class in com.google.android.exoplayer2.extractor
+
+
An MPEG audio frame header.
+
+
MpegAudioHeader() - Constructor for class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
 
+
MSG_CUSTOM_BASE - Static variable in class com.google.android.exoplayer2.C
+
+
Applications or extensions may define custom MSG_* constants greater than or equal to + this value.
+
+
MSG_SET_PLAYBACK_PARAMS - Static variable in class com.google.android.exoplayer2.C
+
+ +
+
MSG_SET_SURFACE - Static variable in class com.google.android.exoplayer2.C
+
+ +
+
MSG_SET_VOLUME - Static variable in class com.google.android.exoplayer2.C
+
+ +
+
msToUs(long) - Static method in class com.google.android.exoplayer2.C
+
+
Converts a time in milliseconds to the corresponding time in microseconds, preserving + C.TIME_UNSET values.
+
+
MultiSegmentBase(RangedUri, long, long, int, long, List<SegmentBase.SegmentTimelineElement>) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
+
 
+
MultiSegmentRepresentation(String, long, Format, SegmentBase.MultiSegmentBase, String) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.Representation.MultiSegmentRepresentation
+
 
+
muxedAudioFormat - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
+
 
+
muxedCaptionFormat - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
+
 
+
+ + + +

N

+
+
NAL_START_CODE - Static variable in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Four initial bytes that must prefix NAL units for decoding.
+
+
nalUnitLengthFieldLength - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
For H264 video tracks, the length in bytes of the NALUnitLength field in each sample.
+
+
nalUnitLengthFieldLength - Variable in class com.google.android.exoplayer2.video.AvcConfig
+
 
+
nalUnitLengthFieldLength - Variable in class com.google.android.exoplayer2.video.HevcConfig
+
 
+
NalUnitUtil - Class in com.google.android.exoplayer2.util
+
+
Utility methods for handling H.264/AVC and H.265/HEVC NAL units.
+
+
NalUnitUtil.PpsData - Class in com.google.android.exoplayer2.util
+
+
Holds data parsed from a picture parameter set NAL unit.
+
+
NalUnitUtil.SpsData - Class in com.google.android.exoplayer2.util
+
+
Holds data parsed from a sequence parameter set NAL unit.
+
+
name - Variable in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
The name of the decoder.
+
+
name - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
+
 
+
name - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
NANOS_PER_SECOND - Static variable in class com.google.android.exoplayer2.C
+
+
The number of nanoseconds in one second.
+
+
newFrameworkInstance(UUID, MediaDrmCallback, HashMap<String, String>, Handler, StreamingDrmSessionManager.EventListener) - Static method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
+
Instantiates a new instance.
+
+
newInstance(UUID) - Static method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
+
Creates an instance for the specified scheme UUID.
+
+
newInstance(Renderer[], TrackSelector<?>) - Static method in class com.google.android.exoplayer2.ExoPlayerFactory
+
+
Creates an ExoPlayer instance.
+
+
newInstance(Renderer[], TrackSelector<?>, LoadControl) - Static method in class com.google.android.exoplayer2.ExoPlayerFactory
+
+
Creates an ExoPlayer instance.
+
+
newInstance(String, String, MediaCodecInfo.CodecCapabilities) - Static method in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
Creates an instance.
+
+
newInstance(String, long, Format, SegmentBase) - Static method in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
Constructs a new instance.
+
+
newInstance(String, long, Format, SegmentBase, String) - Static method in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
Constructs a new instance.
+
+
newInstance(String, long, Format, String, long, long, long, long, String, long) - Static method in class com.google.android.exoplayer2.source.dash.manifest.Representation.SingleSegmentRepresentation
+
 
+
newPassthroughInstance(String) - Static method in class com.google.android.exoplayer2.mediacodec.MediaCodecInfo
+
+
Creates an instance representing an audio passthrough decoder.
+
+
newPlayReadyInstance(MediaDrmCallback, String, Handler, StreamingDrmSessionManager.EventListener) - Static method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
+
Instantiates a new instance using the PlayReady scheme.
+
+
newSimpleInstance(Context, TrackSelector<?>, LoadControl) - Static method in class com.google.android.exoplayer2.ExoPlayerFactory
+
+
Creates a SimpleExoPlayer instance.
+
+
newSimpleInstance(Context, TrackSelector<?>, LoadControl, DrmSessionManager<FrameworkMediaCrypto>) - Static method in class com.google.android.exoplayer2.ExoPlayerFactory
+
+
Creates a SimpleExoPlayer instance.
+
+
newSimpleInstance(Context, TrackSelector<?>, LoadControl, DrmSessionManager<FrameworkMediaCrypto>, boolean) - Static method in class com.google.android.exoplayer2.ExoPlayerFactory
+
+
Creates a SimpleExoPlayer instance.
+
+
newSimpleInstance(Context, TrackSelector<?>, LoadControl, DrmSessionManager<FrameworkMediaCrypto>, boolean, long) - Static method in class com.google.android.exoplayer2.ExoPlayerFactory
+
+
Creates a SimpleExoPlayer instance.
+
+
newSingleThreadExecutor(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Instantiates a new single threaded executor whose thread has the specified name.
+
+
newWidevineInstance(MediaDrmCallback, HashMap<String, String>, Handler, StreamingDrmSessionManager.EventListener) - Static method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
+
Instantiates a new instance using the Widevine scheme.
+
+
NO_ESTIMATE - Static variable in interface com.google.android.exoplayer2.upstream.BandwidthMeter
+
+
Indicates no bandwidth estimate is available.
+
+
NO_VALUE - Static variable in class com.google.android.exoplayer2.Format
+
+
A value for various fields to indicate that the field's value is unknown or not applicable.
+
+
NoOpCacheEvictor - Class in com.google.android.exoplayer2.upstream.cache
+
+
Evictor that doesn't ever evict cache files.
+
+
NoOpCacheEvictor() - Constructor for class com.google.android.exoplayer2.upstream.cache.NoOpCacheEvictor
+
 
+
normalizeLanguageCode(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns a normalized RFC 5646 language code.
+
+
numBytesOfClearData - Variable in class com.google.android.exoplayer2.decoder.CryptoInfo
+
 
+
numBytesOfEncryptedData - Variable in class com.google.android.exoplayer2.decoder.CryptoInfo
+
 
+
numSubSamples - Variable in class com.google.android.exoplayer2.decoder.CryptoInfo
+
 
+
+ + + +

O

+
+
OFFSET_SAMPLE_RELATIVE - Static variable in class com.google.android.exoplayer2.Format
+
+
A value for Format.subsampleOffsetUs to indicate that subsample timestamps are relative to + the timestamps of their parent samples.
+
+
offsets - Variable in class com.google.android.exoplayer2.extractor.ChunkIndex
+
+
The chunk byte offsets.
+
+
OggExtractor - Class in com.google.android.exoplayer2.extractor.ogg
+
+ +
+
OggExtractor() - Constructor for class com.google.android.exoplayer2.extractor.ogg.OggExtractor
+
 
+
onAttachedToWindow() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
 
+
onAudioCapabilitiesChanged(AudioCapabilities) - Method in interface com.google.android.exoplayer2.audio.AudioCapabilitiesReceiver.Listener
+
+
Called when the audio capabilities change.
+
+
onAudioDecoderInitialized(String, long, long) - Method in interface com.google.android.exoplayer2.audio.AudioRendererEventListener
+
+
Called when a decoder is created.
+
+
onAudioDisabled(DecoderCounters) - Method in interface com.google.android.exoplayer2.audio.AudioRendererEventListener
+
+
Called when the renderer is disabled.
+
+
onAudioEnabled(DecoderCounters) - Method in interface com.google.android.exoplayer2.audio.AudioRendererEventListener
+
+
Called when the renderer is enabled.
+
+
onAudioInputFormatChanged(Format) - Method in interface com.google.android.exoplayer2.audio.AudioRendererEventListener
+
+
Called when the format of the media being consumed by the renderer changes.
+
+
onAudioSessionId(int) - Method in interface com.google.android.exoplayer2.audio.AudioRendererEventListener
+
+
Called when the audio session is set.
+
+
onAudioSessionId(int) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
+
Called when the audio session id becomes known.
+
+
onAudioSessionId(int) - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
+
Called when the audio session id becomes known.
+
+
onAudioTrackUnderrun(int, long, long) - Method in interface com.google.android.exoplayer2.audio.AudioRendererEventListener
+
+
Called when an AudioTrack underrun occurs.
+
+
onBandwidthSample(int, long, long) - Method in interface com.google.android.exoplayer2.upstream.BandwidthMeter.EventListener
+
+
Called periodically to indicate that bytes have been transferred.
+
+
onBytesTransferred(Object, int) - Method in class com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
+
 
+
onBytesTransferred(S, int) - Method in interface com.google.android.exoplayer2.upstream.TransferListener
+
+
Called incrementally during a transfer.
+
+
onCachedBytesRead(long, long) - Method in interface com.google.android.exoplayer2.upstream.cache.CacheDataSource.EventListener
+
+
Called when bytes have been read from the cache.
+
+
onCacheInitialized() - Method in interface com.google.android.exoplayer2.upstream.cache.CacheEvictor
+
+
Called when cache has beeen initialized.
+
+
onCacheInitialized() - Method in class com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
+
 
+
onCacheInitialized() - Method in class com.google.android.exoplayer2.upstream.cache.NoOpCacheEvictor
+
 
+
onChunkLoadCompleted(Chunk) - Method in interface com.google.android.exoplayer2.source.chunk.ChunkSource
+
+
Called when the ChunkSampleStream has finished loading a chunk obtained from this + source.
+
+
onChunkLoadCompleted(Chunk) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource
+
 
+
onChunkLoadCompleted(Chunk) - Method in class com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
+
 
+
onChunkLoadError(Chunk, boolean, Exception) - Method in interface com.google.android.exoplayer2.source.chunk.ChunkSource
+
+
Called when the ChunkSampleStream encounters an error loading a chunk obtained from + this source.
+
+
onChunkLoadError(Chunk, boolean, Exception) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource
+
 
+
onChunkLoadError(Chunk, boolean, Exception) - Method in class com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
+
 
+
onCodecInitialized(String, long, long) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
onCodecInitialized(String, long, long) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Called when a MediaCodec has been created and configured.
+
+
onCodecInitialized(String, long, long) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
onContinueLoadingRequested(T) - Method in interface com.google.android.exoplayer2.source.SequenceableLoader.Callback
+
+
Called by the loader to indicate that it wishes for its SequenceableLoader.continueLoading(long) method + to be called when it can continue to load data.
+
+
onCues(List<Cue>) - Method in interface com.google.android.exoplayer2.text.TextRenderer.Output
+
+
Called each time there is a change in the Cues.
+
+
onCues(List<Cue>) - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
 
+
onDetachedFromWindow() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
 
+
onDisabled() - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
onDisabled() - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
onDisabled() - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Called when the renderer is disabled.
+
+
onDisabled() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
onDisabled() - Method in class com.google.android.exoplayer2.metadata.MetadataRenderer
+
 
+
onDisabled() - Method in class com.google.android.exoplayer2.text.TextRenderer
+
 
+
onDisabled() - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
onDownstreamFormatChanged(int, Format, int, Object, long) - Method in interface com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener
+
+
Called when a downstream format change occurs (i.e.
+
+
onDrmKeysLoaded() - Method in interface com.google.android.exoplayer2.drm.StreamingDrmSessionManager.EventListener
+
+
Called each time keys are loaded.
+
+
onDrmSessionManagerError(Exception) - Method in interface com.google.android.exoplayer2.drm.StreamingDrmSessionManager.EventListener
+
+
Called when a drm error occurs.
+
+
onDroppedFrames(int, long) - Method in interface com.google.android.exoplayer2.video.VideoRendererEventListener
+
+
Called to report the number of frames dropped by the renderer.
+
+
onEnabled(boolean) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
onEnabled(boolean) - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
onEnabled(boolean) - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Called when the renderer is enabled.
+
+
onEnabled(boolean) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
onEnabled(boolean) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
onEvent(ExoMediaDrm<? extends T>, byte[], int, int, byte[]) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm.OnEventListener
+
+
Called when an event occurs that requires the app to be notified
+
+
onInputFormatChanged(Format) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
onInputFormatChanged(Format) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Called when a new format is read from the upstream MediaPeriod.
+
+
onInputFormatChanged(Format) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
onLoadCanceled(DataSpec, int, int, Format, int, Object, long, long, long, long, long) - Method in interface com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener
+
+
Called when a load is canceled.
+
+
onLoadCanceled(Chunk, long, long, boolean) - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
onLoadCanceled(ParsingLoadable<SsManifest>, long, long, boolean) - Method in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
onLoadCanceled(T, long, long, boolean) - Method in interface com.google.android.exoplayer2.upstream.Loader.Callback
+
+
Called when a load has been canceled.
+
+
onLoadCompleted(DataSpec, int, int, Format, int, Object, long, long, long, long, long) - Method in interface com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener
+
+
Called when a load ends.
+
+
onLoadCompleted(Chunk, long, long) - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
onLoadCompleted(ParsingLoadable<SsManifest>, long, long) - Method in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
onLoadCompleted(T, long, long) - Method in interface com.google.android.exoplayer2.upstream.Loader.Callback
+
+
Called when a load has completed.
+
+
onLoadError(DataSpec, int, int, Format, int, Object, long, long, long, long, long, IOException, boolean) - Method in interface com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener
+
+
Called when a load error occurs.
+
+
onLoadError(Chunk, long, long, IOException) - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
onLoadError(IOException) - Method in interface com.google.android.exoplayer2.source.ExtractorMediaSource.EventListener
+
+
Called when an error occurs loading media data.
+
+
onLoadError(int, IOException) - Method in interface com.google.android.exoplayer2.source.SingleSampleMediaSource.EventListener
+
+
Called when an error occurs loading media data.
+
+
onLoadError(ParsingLoadable<SsManifest>, long, long, IOException) - Method in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
onLoadError(T, long, long, IOException) - Method in interface com.google.android.exoplayer2.upstream.Loader.Callback
+
+
Called when a load encounters an error.
+
+
onLoadingChanged(boolean) - Method in interface com.google.android.exoplayer2.ExoPlayer.EventListener
+
+
Called when the player starts or stops loading the source.
+
+
onLoadingChanged(boolean) - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
+
 
+
onLoadStarted(DataSpec, int, int, Format, int, Object, long, long, long) - Method in interface com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener
+
+
Called when a load begins.
+
+
onMeasure(int, int) - Method in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
+
 
+
onMetadata(T) - Method in interface com.google.android.exoplayer2.metadata.MetadataRenderer.Output
+
+
Called each time there is a metadata associated with current playback time.
+
+
onOutputFormatChanged(MediaCodec, MediaFormat) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
onOutputFormatChanged(MediaCodec, MediaFormat) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Called when the output format of the MediaCodec changes.
+
+
onOutputFormatChanged(MediaCodec, MediaFormat) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
onOutputStreamEnded() - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
onOutputStreamEnded() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Called when the output stream ends, meaning that the last output buffer has been processed and + the MediaCodec.BUFFER_FLAG_END_OF_STREAM flag has been propagated through the decoder.
+
+
onPlayerError(ExoPlaybackException) - Method in interface com.google.android.exoplayer2.ExoPlayer.EventListener
+
+
Called when an error occurs.
+
+
onPlayerError(ExoPlaybackException) - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
+
 
+
onPlayerStateChanged(boolean, int) - Method in interface com.google.android.exoplayer2.ExoPlayer.EventListener
+
+
Called when the value returned from either ExoPlayer.getPlayWhenReady() or + ExoPlayer.getPlaybackState() changes.
+
+
onPlayerStateChanged(boolean, int) - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
+
 
+
onPositionDiscontinuity() - Method in interface com.google.android.exoplayer2.ExoPlayer.EventListener
+
+
Called when a position discontinuity occurs.
+
+
onPositionDiscontinuity() - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
+
 
+
onPositionReset(long, boolean) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
onPositionReset(long, boolean) - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
onPositionReset(long, boolean) - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Called when the position is reset.
+
+
onPositionReset(long, boolean) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
onPositionReset(long, boolean) - Method in class com.google.android.exoplayer2.metadata.MetadataRenderer
+
 
+
onPositionReset(long, boolean) - Method in class com.google.android.exoplayer2.text.TextRenderer
+
 
+
onPositionReset(long, boolean) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
onPrepared() - Method in class com.google.android.exoplayer2.DefaultLoadControl
+
 
+
onPrepared() - Method in interface com.google.android.exoplayer2.LoadControl
+
+
Called by the player when prepared with a new source.
+
+
onPrepared(MediaPeriod) - Method in interface com.google.android.exoplayer2.source.MediaPeriod.Callback
+
+
Called when preparation completes.
+
+
onProcessedOutputBuffer(long) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Called when an output buffer is successfully processed.
+
+
onQueueInputBuffer(DecoderInputBuffer) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Called immediately before an input buffer is queued into the codec.
+
+
onReleased() - Method in class com.google.android.exoplayer2.DefaultLoadControl
+
 
+
onReleased() - Method in interface com.google.android.exoplayer2.LoadControl
+
+
Called by the player when released.
+
+
onRenderedFirstFrame() - Method in interface com.google.android.exoplayer2.SimpleExoPlayer.VideoListener
+
+
Called when a frame is rendered for the first time since setting the surface, and when a + frame is rendered for the first time since a video track was selected.
+
+
onRenderedFirstFrame(Surface) - Method in interface com.google.android.exoplayer2.video.VideoRendererEventListener
+
+
Called when a frame is rendered for the first time since setting the surface, and when a frame + is rendered for the first time since the renderer was reset.
+
+
onSelectionActivated(TrackSelections<T>) - Method in class com.google.android.exoplayer2.trackselection.TrackSelector
+
+ +
+
onSourceInfoRefreshed(Timeline, Object) - Method in class com.google.android.exoplayer2.source.ExtractorMediaSource
+
 
+
onSourceInfoRefreshed(Timeline, Object) - Method in interface com.google.android.exoplayer2.source.MediaSource.Listener
+
+
Called when manifest and/or timeline has been refreshed.
+
+
onSpanAdded(Cache, CacheSpan) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache.Listener
+
+
Called when a CacheSpan is added to the cache.
+
+
onSpanAdded(Cache, CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
+
 
+
onSpanAdded(Cache, CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.NoOpCacheEvictor
+
 
+
onSpanRemoved(Cache, CacheSpan) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache.Listener
+
+
Called when a CacheSpan is removed from the cache.
+
+
onSpanRemoved(Cache, CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
+
 
+
onSpanRemoved(Cache, CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.NoOpCacheEvictor
+
 
+
onSpanTouched(Cache, CacheSpan, CacheSpan) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache.Listener
+
+
Called when an existing CacheSpan is accessed, causing it to be replaced.
+
+
onSpanTouched(Cache, CacheSpan, CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
+
 
+
onSpanTouched(Cache, CacheSpan, CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.NoOpCacheEvictor
+
 
+
onStarted() - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
onStarted() - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
onStarted() - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Called when the renderer is started.
+
+
onStarted() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
onStarted() - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
onStartFile(Cache, String, long, long) - Method in interface com.google.android.exoplayer2.upstream.cache.CacheEvictor
+
+
Called when a writer starts writing to the cache.
+
+
onStartFile(Cache, String, long, long) - Method in class com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
+
 
+
onStartFile(Cache, String, long, long) - Method in class com.google.android.exoplayer2.upstream.cache.NoOpCacheEvictor
+
 
+
onStopped() - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
onStopped() - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
onStopped() - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Called when the renderer is stopped.
+
+
onStopped() - Method in class com.google.android.exoplayer2.DefaultLoadControl
+
 
+
onStopped() - Method in interface com.google.android.exoplayer2.LoadControl
+
+
Called by the player when stopped.
+
+
onStopped() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
onStopped() - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
onStreamChanged(Format[]) - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Called when the renderer's stream has changed.
+
+
onStreamChanged(Format[]) - Method in class com.google.android.exoplayer2.text.TextRenderer
+
 
+
onStreamChanged(Format[]) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
onSynced() - Method in class com.google.android.exoplayer2.video.VideoFrameReleaseTimeHelper
+
 
+
onTimelineChanged(Timeline, Object) - Method in interface com.google.android.exoplayer2.ExoPlayer.EventListener
+
+
Called when timeline and/or manifest has been refreshed.
+
+
onTimelineChanged(Timeline, Object) - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
+
 
+
onTouchEvent(MotionEvent) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
 
+
onTrackballEvent(MotionEvent) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
 
+
onTrackSelectionsChanged(TrackSelections<? extends T>) - Method in interface com.google.android.exoplayer2.trackselection.TrackSelector.EventListener
+
+
Called when the track selections have changed.
+
+
onTrackSelectionsInvalidated() - Method in interface com.google.android.exoplayer2.trackselection.TrackSelector.InvalidationListener
+
+
Called by a TrackSelector when previous selections are no longer valid.
+
+
onTracksSelected(Renderer[], TrackGroupArray, TrackSelections<?>) - Method in class com.google.android.exoplayer2.DefaultLoadControl
+
 
+
onTracksSelected(Renderer[], TrackGroupArray, TrackSelections<?>) - Method in interface com.google.android.exoplayer2.LoadControl
+
+
Called by the player when a track selection occurs.
+
+
onTransferEnd(Object) - Method in class com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
+
 
+
onTransferEnd(S) - Method in interface com.google.android.exoplayer2.upstream.TransferListener
+
+
Called when a transfer ends.
+
+
onTransferStart(Object, DataSpec) - Method in class com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
+
 
+
onTransferStart(S, DataSpec) - Method in interface com.google.android.exoplayer2.upstream.TransferListener
+
+
Called when a transfer starts.
+
+
onUpstreamDiscarded(int, long, long) - Method in interface com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener
+
+
Called when data is removed from the back of a media buffer, typically so that it can be + re-buffered in a different format.
+
+
onUpstreamFormatChanged(Format) - Method in interface com.google.android.exoplayer2.extractor.DefaultTrackOutput.UpstreamFormatChangedListener
+
+
Called on the loading thread when an upstream format change occurs.
+
+
onVideoDecoderInitialized(String, long, long) - Method in interface com.google.android.exoplayer2.video.VideoRendererEventListener
+
+
Called when a decoder is created.
+
+
onVideoDisabled(DecoderCounters) - Method in interface com.google.android.exoplayer2.video.VideoRendererEventListener
+
+
Called when the renderer is disabled.
+
+
onVideoEnabled(DecoderCounters) - Method in interface com.google.android.exoplayer2.video.VideoRendererEventListener
+
+
Called when the renderer is enabled.
+
+
onVideoInputFormatChanged(Format) - Method in interface com.google.android.exoplayer2.video.VideoRendererEventListener
+
+
Called when the format of the media being consumed by the renderer changes.
+
+
onVideoSizeChanged(int, int, int, float) - Method in interface com.google.android.exoplayer2.SimpleExoPlayer.VideoListener
+
+
Called each time there's a change in the size of the video being rendered.
+
+
onVideoSizeChanged(int, int, int, float) - Method in interface com.google.android.exoplayer2.video.VideoRendererEventListener
+
+
Called each time there's a change in the size of the video being rendered.
+
+
onVideoTracksDisabled() - Method in interface com.google.android.exoplayer2.SimpleExoPlayer.VideoListener
+
+
Called when a video track is no longer selected.
+
+
onVisibilityChange(int) - Method in interface com.google.android.exoplayer2.ui.PlaybackControlView.VisibilityListener
+
+
Called when the visibility changes.
+
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.AssetDataSource
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.ByteArrayDataSink
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.ByteArrayDataSource
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.cache.CacheDataSink
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.ContentDataSource
+
 
+
open(DataSpec) - Method in interface com.google.android.exoplayer2.upstream.DataSink
+
+
Opens the sink to consume the specified data.
+
+
open(DataSpec) - Method in interface com.google.android.exoplayer2.upstream.DataSource
+
+
Opens the source to read the specified data.
+
+
open() - Method in class com.google.android.exoplayer2.upstream.DataSourceInputStream
+
+
Optional call to open the underlying DataSource.
+
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.DefaultDataSource
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.FileDataSource
+
 
+
open(DataSpec) - Method in interface com.google.android.exoplayer2.upstream.HttpDataSource
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.PriorityDataSource
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.RawResourceDataSource
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.TeeDataSource
+
 
+
open(DataSpec) - Method in class com.google.android.exoplayer2.upstream.UdpDataSource
+
 
+
open() - Method in class com.google.android.exoplayer2.util.ConditionVariable
+
+
Opens the condition and releases all threads that are blocked.
+
+
openSession() - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
openSession() - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
orientationMayChange - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
OutputBuffer - Class in com.google.android.exoplayer2.decoder
+
+
Output buffer decoded by a Decoder.
+
+
OutputBuffer() - Constructor for class com.google.android.exoplayer2.decoder.OutputBuffer
+
 
+
owner - Variable in class com.google.android.exoplayer2.metadata.id3.PrivFrame
+
 
+
+ + + +

P

+
+
packetFinished() - Method in class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader
+
+
Called when a packet ends.
+
+
packetStarted(long, boolean) - Method in class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader
+
+
Called when a packet starts.
+
+
Parameters() - Constructor for class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Constructor with default selection parameters: + + No preferred audio language is set. + No preferred text language is set. + Adaptation between different mime types is not allowed. + Non seamless adaptation is allowed. + No max limit for video width/height. + Video constraints are ignored if no supported selection can be made otherwise. + No viewport width/height constraints are set. +
+
+
Parameters(String, String, boolean, boolean, int, int, boolean, int, int, boolean) - Constructor for class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
ParsableBitArray - Class in com.google.android.exoplayer2.util
+
+
Wraps a byte array, providing methods that allow it to be read as a bitstream.
+
+
ParsableBitArray() - Constructor for class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Creates a new instance that initially has no backing data.
+
+
ParsableBitArray(byte[]) - Constructor for class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Creates a new instance that wraps an existing array.
+
+
ParsableBitArray(byte[], int) - Constructor for class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Creates a new instance that wraps an existing array.
+
+
ParsableByteArray - Class in com.google.android.exoplayer2.util
+
+
Wraps a byte array, providing a set of methods for parsing data from it.
+
+
ParsableByteArray() - Constructor for class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Creates a new instance that initially has no backing data.
+
+
ParsableByteArray(int) - Constructor for class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Creates a new instance with limit bytes and sets the limit.
+
+
ParsableByteArray(byte[]) - Constructor for class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Creates a new instance wrapping data, and sets the limit to data.length.
+
+
ParsableByteArray(byte[], int) - Constructor for class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Creates a new instance that wraps an existing array.
+
+
ParsableNalUnitBitArray - Class in com.google.android.exoplayer2.util
+
+
Wraps a byte array, providing methods that allow it to be read as a NAL unit bitstream.
+
+
ParsableNalUnitBitArray(byte[], int, int) - Constructor for class com.google.android.exoplayer2.util.ParsableNalUnitBitArray
+
 
+
parse(Uri, InputStream) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parse(Uri, InputStream) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParser
+
 
+
parse(Uri, InputStream) - Method in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifestParser
+
 
+
parse(Uri, InputStream) - Method in interface com.google.android.exoplayer2.upstream.ParsingLoadable.Parser
+
+
Parses an object from a response.
+
+
parse(ParsableByteArray) - Static method in class com.google.android.exoplayer2.video.AvcConfig
+
+
Parses AVC configuration data.
+
+
parse(ParsableByteArray) - Static method in class com.google.android.exoplayer2.video.HevcConfig
+
+
Parses HEVC configuration data.
+
+
parseAacAudioSpecificConfig(byte[]) - Static method in class com.google.android.exoplayer2.util.CodecSpecificDataUtil
+
+
Parses an AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
+
+
parseAc3AnnexFFormat(ParsableByteArray, String, String, DrmInitData) - Static method in class com.google.android.exoplayer2.audio.Ac3Util
+
+
Returns the AC-3 format given data containing the AC3SpecificBox according to + ETSI TS 102 366 Annex F.
+
+
parseAc3SyncframeFormat(ParsableBitArray, String, String, DrmInitData) - Static method in class com.google.android.exoplayer2.audio.Ac3Util
+
+
Returns the AC-3 format given data containing a syncframe.
+
+
parseAc3SyncframeSize(byte[]) - Static method in class com.google.android.exoplayer2.audio.Ac3Util
+
+
Returns the size in bytes of the given AC-3 syncframe.
+
+
parseAdaptationSet(XmlPullParser, String, SegmentBase) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseAdaptationSetChild(XmlPullParser) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
+
Parses children of AdaptationSet elements not specifically parsed elsewhere.
+
+
parseAudioChannelConfiguration(XmlPullParser) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseBaseUrl(XmlPullParser, String) - Static method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseContentProtection(XmlPullParser) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
+
Parses a ContentProtection element.
+
+
parseContentType(XmlPullParser) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseCssColor(String) - Static method in class com.google.android.exoplayer2.util.ColorParser
+
+
Parses a CSS color expression.
+
+
parseDateTime(XmlPullParser, String, long) - Static method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseDtsAudioSampleCount(byte[]) - Static method in class com.google.android.exoplayer2.audio.DtsUtil
+
+
Returns the number of audio samples represented by the given DTS frame.
+
+
parseDtsAudioSampleCount(ByteBuffer) - Static method in class com.google.android.exoplayer2.audio.DtsUtil
+
+
Like DtsUtil.parseDtsAudioSampleCount(byte[]) but reads from a ByteBuffer.
+
+
parseDtsFormat(byte[], String, String, DrmInitData) - Static method in class com.google.android.exoplayer2.audio.DtsUtil
+
+
Returns the DTS format given data containing the DTS frame according to ETSI TS 102 114 + subsections 5.3/5.4.
+
+
parseDuration(XmlPullParser, String, long) - Static method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseEAc3AnnexFFormat(ParsableByteArray, String, String, DrmInitData) - Static method in class com.google.android.exoplayer2.audio.Ac3Util
+
+
Returns the E-AC-3 format given data containing the EC3SpecificBox according to + ETSI TS 102 366 Annex F.
+
+
parseEAc3SyncframeAudioSampleCount(byte[]) - Static method in class com.google.android.exoplayer2.audio.Ac3Util
+
+
Returns the number of audio samples represented by the given E-AC-3 syncframe.
+
+
parseEAc3SyncframeAudioSampleCount(ByteBuffer) - Static method in class com.google.android.exoplayer2.audio.Ac3Util
+
+
Like Ac3Util.parseEAc3SyncframeAudioSampleCount(byte[]) but reads from a ByteBuffer.
+
+
parseEac3SyncframeFormat(ParsableBitArray, String, String, DrmInitData) - Static method in class com.google.android.exoplayer2.audio.Ac3Util
+
+
Returns the E-AC-3 format given data containing a syncframe.
+
+
parseEAc3SyncframeSize(byte[]) - Static method in class com.google.android.exoplayer2.audio.Ac3Util
+
+
Returns the size in bytes of the given E-AC-3 syncframe.
+
+
parseFrameRate(XmlPullParser, float) - Static method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseInitialization(XmlPullParser, String) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseInt(XmlPullParser, String, int) - Static method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseLong(XmlPullParser, String, long) - Static method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseMediaPresentationDescription(XmlPullParser, String) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parsePercentage(String) - Static method in class com.google.android.exoplayer2.text.webvtt.WebvttParserUtil
+
+
Parses a percentage string.
+
+
parsePeriod(XmlPullParser, String, long) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parsePpsNalUnit(byte[], int, int) - Static method in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Parses a PPS NAL unit using the syntax defined in ITU-T Recommendation H.264 (2013) subsection + 7.3.2.2.
+
+
parseRangedUrl(XmlPullParser, String, String, String) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseRepresentation(XmlPullParser, String, String, String, int, int, float, int, int, String, SegmentBase) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
ParserException - Exception in com.google.android.exoplayer2
+
+
Thrown when an error occurs parsing media data and metadata.
+
+
ParserException() - Constructor for exception com.google.android.exoplayer2.ParserException
+
 
+
ParserException(String) - Constructor for exception com.google.android.exoplayer2.ParserException
+
 
+
ParserException(Throwable) - Constructor for exception com.google.android.exoplayer2.ParserException
+
 
+
ParserException(String, Throwable) - Constructor for exception com.google.android.exoplayer2.ParserException
+
 
+
parseSchemeSpecificData(byte[], UUID) - Static method in class com.google.android.exoplayer2.extractor.mp4.PsshAtomUtil
+
+
Parses the scheme specific data from a PSSH atom.
+
+
parseSegmentBase(XmlPullParser, String, SegmentBase.SingleSegmentBase) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseSegmentList(XmlPullParser, String, SegmentBase.SegmentList) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseSegmentTemplate(XmlPullParser, String, SegmentBase.SegmentTemplate) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseSegmentTimeline(XmlPullParser) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseSegmentUrl(XmlPullParser, String) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseSpsNalUnit(byte[], int, int) - Static method in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Parses an SPS NAL unit using the syntax defined in ITU-T Recommendation H.264 (2013) subsection + 7.3.2.1.1.
+
+
parseString(XmlPullParser, String, String) - Static method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseTimestampUs(String) - Static method in class com.google.android.exoplayer2.text.webvtt.WebvttParserUtil
+
+
Parses a WebVTT timestamp.
+
+
parseTtmlColor(String) - Static method in class com.google.android.exoplayer2.util.ColorParser
+
+
Parses a TTML color expression.
+
+
parseUrlTemplate(XmlPullParser, String, UrlTemplate) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseUtcTiming(XmlPullParser) - Method in class com.google.android.exoplayer2.source.dash.manifest.DashManifestParser
+
 
+
parseUuid(byte[]) - Static method in class com.google.android.exoplayer2.extractor.mp4.PsshAtomUtil
+
+
Parses the UUID from a PSSH atom.
+
+
parseXsDateTime(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Parses an xs:dateTime attribute value, returning the parsed timestamp in milliseconds since + the epoch.
+
+
parseXsDuration(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Parses an xs:duration attribute value, returning the parsed duration in milliseconds.
+
+
ParsingLoadable<T> - Class in com.google.android.exoplayer2.upstream
+
+
A Loader.Loadable for objects that can be parsed from binary data using a ParsingLoadable.Parser.
+
+
ParsingLoadable(DataSource, Uri, int, ParsingLoadable.Parser<T>) - Constructor for class com.google.android.exoplayer2.upstream.ParsingLoadable
+
 
+
ParsingLoadable.Parser<T> - Interface in com.google.android.exoplayer2.upstream
+
+
Parses an object from loaded data.
+
+
pause() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Pauses playback.
+
+
pcmEncoding - Variable in class com.google.android.exoplayer2.Format
+
+
The encoding for PCM audio streams.
+
+
peekFully(byte[], int, int, boolean) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
peekFully(byte[], int, int) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
peekFully(byte[], int, int, boolean) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Peeks length bytes from the peek position, writing them into target at index + offset.
+
+
peekFully(byte[], int, int) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Peeks length bytes from the peek position, writing them into target at index + offset.
+
+
peekSourceId() - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Peeks the source id of the next sample, or the current upstream source id if the buffer is + empty.
+
+
peekUnsignedByte() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Peeks at the next byte as an unsigned value.
+
+
Period - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
Encapsulates media content components over a contiguous period of time.
+
+
Period(String, long, List<AdaptationSet>) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.Period
+
 
+
Period() - Constructor for class com.google.android.exoplayer2.Timeline.Period
+
 
+
picOrderCntLsbLength - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
picOrderCountType - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
picParameterSetId - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.PpsData
+
 
+
pictureData - Variable in class com.google.android.exoplayer2.metadata.id3.ApicFrame
+
 
+
pictureType - Variable in class com.google.android.exoplayer2.metadata.id3.ApicFrame
+
 
+
pixelWidthAspectRatio - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
pixelWidthAspectRatio - Variable in class com.google.android.exoplayer2.video.AvcConfig
+
 
+
pixelWidthHeightRatio - Variable in class com.google.android.exoplayer2.Format
+
+
The width to height ratio of pixels in the video, or Format.NO_VALUE if unknown or not + applicable.
+
+
play() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Starts or resumes playing audio if the audio track has been initialized.
+
+
PlaybackControlView - Class in com.google.android.exoplayer2.ui
+
+
A view to control video playback of an ExoPlayer.
+
+
PlaybackControlView(Context) - Constructor for class com.google.android.exoplayer2.ui.PlaybackControlView
+
 
+
PlaybackControlView(Context, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.PlaybackControlView
+
 
+
PlaybackControlView(Context, AttributeSet, int) - Constructor for class com.google.android.exoplayer2.ui.PlaybackControlView
+
 
+
PlaybackControlView.VisibilityListener - Interface in com.google.android.exoplayer2.ui
+
+
Listener to be notified about changes of the visibility of the UI control.
+
+
PLAYREADY_CUSTOM_DATA_KEY - Static variable in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
+
The key to use when passing CustomData to a PlayReady instance in an optional parameter map.
+
+
PLAYREADY_UUID - Static variable in class com.google.android.exoplayer2.C
+
+
UUID for the PlayReady DRM scheme.
+
+
populateHeader(int, MpegAudioHeader) - Static method in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
Parses headerData, populating header with the parsed data.
+
+
position - Variable in class com.google.android.exoplayer2.extractor.PositionHolder
+
+
The held position.
+
+
position - Variable in class com.google.android.exoplayer2.text.Cue
+
+
The fractional position of the Cue.positionAnchor of the cue box within the viewport in + the direction orthogonal to Cue.line, or Cue.DIMEN_UNSET.
+
+
position - Variable in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
+
The position of the CacheSpan in the original stream.
+
+
position - Variable in class com.google.android.exoplayer2.upstream.DataSpec
+
+
The position of the data when read from DataSpec.uri.
+
+
POSITION_OUT_OF_RANGE - Static variable in exception com.google.android.exoplayer2.upstream.DataSourceException
+
 
+
POSITION_UNSET - Static variable in class com.google.android.exoplayer2.C
+
+
Represents an unset or unknown position.
+
+
positionAnchor - Variable in class com.google.android.exoplayer2.text.Cue
+
+
The cue box anchor positioned by Cue.position.
+
+
PositionHolder - Class in com.google.android.exoplayer2.extractor
+
+
Holds a position in the stream.
+
+
PositionHolder() - Constructor for class com.google.android.exoplayer2.extractor.PositionHolder
+
 
+
postBody - Variable in class com.google.android.exoplayer2.upstream.DataSpec
+
+
Body for a POST request, null otherwise.
+
+
PpsData(int, int, boolean) - Constructor for class com.google.android.exoplayer2.util.NalUnitUtil.PpsData
+
 
+
Predicate<T> - Interface in com.google.android.exoplayer2.util
+
+
Determines a true of false value for a given input.
+
+
preferredAudioLanguage - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
preferredTextLanguage - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
prepare(MediaSource) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Prepares the player to play the provided MediaSource.
+
+
prepare(MediaSource, boolean, boolean) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Prepares the player to play the provided MediaSource, optionally resetting the playback + position the default position in the first Timeline.Window.
+
+
prepare(MediaSource) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
prepare(MediaSource, boolean, boolean) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
prepare(MediaPeriod.Callback) - Method in interface com.google.android.exoplayer2.source.MediaPeriod
+
+
Prepares this media period asynchronously.
+
+
prepareSource(MediaSource.Listener) - Method in class com.google.android.exoplayer2.source.ConcatenatingMediaSource
+
 
+
prepareSource(MediaSource.Listener) - Method in class com.google.android.exoplayer2.source.dash.DashMediaSource
+
 
+
prepareSource(MediaSource.Listener) - Method in class com.google.android.exoplayer2.source.ExtractorMediaSource
+
 
+
prepareSource(MediaSource.Listener) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
+
 
+
prepareSource(MediaSource.Listener) - Method in class com.google.android.exoplayer2.source.LoopingMediaSource
+
 
+
prepareSource(MediaSource.Listener) - Method in interface com.google.android.exoplayer2.source.MediaSource
+
+
Starts preparation of the source.
+
+
prepareSource(MediaSource.Listener) - Method in class com.google.android.exoplayer2.source.MergingMediaSource
+
 
+
prepareSource(MediaSource.Listener) - Method in class com.google.android.exoplayer2.source.SingleSampleMediaSource
+
 
+
prepareSource(MediaSource.Listener) - Method in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
presentationStartTimeMs - Variable in class com.google.android.exoplayer2.Timeline.Window
+
+
The start time of the presentation to which this window belongs in milliseconds since the + epoch, or C.TIME_UNSET if unknown or not applicable.
+
+
presentationTimeOffsetUs - Variable in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
The offset of the presentation timestamps in the media stream relative to media time.
+
+
PriorityDataSource - Class in com.google.android.exoplayer2.upstream
+
+
A DataSource that can be used as part of a task registered with a + PriorityTaskManager.
+
+
PriorityDataSource(DataSource, PriorityTaskManager, int) - Constructor for class com.google.android.exoplayer2.upstream.PriorityDataSource
+
 
+
PriorityHandlerThread - Class in com.google.android.exoplayer2.util
+
+
A HandlerThread with a specified process priority.
+
+
PriorityHandlerThread(String, int) - Constructor for class com.google.android.exoplayer2.util.PriorityHandlerThread
+
 
+
PriorityTaskManager - Class in com.google.android.exoplayer2.util
+
+
Allows tasks with associated priorities to control how they proceed relative to one another.
+
+
PriorityTaskManager.PriorityTooLowException - Exception in com.google.android.exoplayer2.util
+
+
Thrown when task attempts to proceed when another registered task has a higher priority.
+
+
PriorityTooLowException(int, int) - Constructor for exception com.google.android.exoplayer2.util.PriorityTaskManager.PriorityTooLowException
+
 
+
PRIVATE_STREAM_1 - Static variable in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
privateData - Variable in class com.google.android.exoplayer2.metadata.id3.PrivFrame
+
 
+
PrivFrame - Class in com.google.android.exoplayer2.metadata.id3
+
+
PRIV (Private) ID3 frame.
+
+
PrivFrame(String, byte[]) - Constructor for class com.google.android.exoplayer2.metadata.id3.PrivFrame
+
 
+
proceed(int) - Method in class com.google.android.exoplayer2.util.PriorityTaskManager
+
+
Blocks until the task is allowed to proceed.
+
+
proceedNonBlocking(int) - Method in class com.google.android.exoplayer2.util.PriorityTaskManager
+
+
A non-blocking variant of PriorityTaskManager.proceed(int).
+
+
proceedOrThrow(int) - Method in class com.google.android.exoplayer2.util.PriorityTaskManager
+
+
A throwing variant of PriorityTaskManager.proceed(int).
+
+
processOutputBuffer(long, long, MediaCodec, ByteBuffer, int, int, long, boolean) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
processOutputBuffer(long, long, MediaCodec, ByteBuffer, int, int, long, boolean) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Processes an output media buffer.
+
+
processOutputBuffer(long, long, MediaCodec, ByteBuffer, int, int, long, boolean) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
projectionData - Variable in class com.google.android.exoplayer2.Format
+
+
The projection data for 360/VR video, or null if not applicable.
+
+
protectionElement - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
+
Content protection information, or null if the content is not protected.
+
+
ProtectionElement(UUID, byte[]) - Constructor for class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.ProtectionElement
+
 
+
provideKeyResponse(byte[], byte[]) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
provideKeyResponse(byte[], byte[]) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
provideProvisionResponse(byte[]) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
provideProvisionResponse(byte[]) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
PsExtractor - Class in com.google.android.exoplayer2.extractor.ts
+
+
Facilitates the extraction of data from the MPEG-2 TS container format.
+
+
PsExtractor() - Constructor for class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
PsExtractor(TimestampAdjuster) - Constructor for class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
PsshAtomUtil - Class in com.google.android.exoplayer2.extractor.mp4
+
+
Utility methods for handling PSSH atoms.
+
+
ptsToUs(long) - Static method in class com.google.android.exoplayer2.extractor.TimestampAdjuster
+
+
Converts a value in MPEG-2 timestamp units to the corresponding value in microseconds.
+
+
+ + + +

Q

+
+
queryKeyStatus(byte[]) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
queryKeyStatus(byte[]) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
queueInputBuffer(I) - Method in interface com.google.android.exoplayer2.decoder.Decoder
+
+
Queues an input buffer to the decoder.
+
+
queueInputBuffer(I) - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
 
+
+ + + +

R

+
+
RandomTrackSelection - Class in com.google.android.exoplayer2.trackselection
+
+
A TrackSelection whose selected track is updated randomly.
+
+
RandomTrackSelection(TrackGroup, int...) - Constructor for class com.google.android.exoplayer2.trackselection.RandomTrackSelection
+
 
+
RandomTrackSelection(TrackGroup, int[], long) - Constructor for class com.google.android.exoplayer2.trackselection.RandomTrackSelection
+
 
+
RandomTrackSelection(TrackGroup, int[], Random) - Constructor for class com.google.android.exoplayer2.trackselection.RandomTrackSelection
+
 
+
RandomTrackSelection.Factory - Class in com.google.android.exoplayer2.trackselection
+
+
Factory for RandomTrackSelection instances.
+
+
RangedUri - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
Defines a range of data located at a Uri.
+
+
RangedUri(String, String, long, long) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.RangedUri
+
+
Constructs an ranged uri.
+
+
RawCcExtractor - Class in com.google.android.exoplayer2.extractor.rawcc
+
+
Extracts CEA data from a RawCC file.
+
+
RawCcExtractor() - Constructor for class com.google.android.exoplayer2.extractor.rawcc.RawCcExtractor
+
 
+
RawResourceDataSource - Class in com.google.android.exoplayer2.upstream
+
+
A DataSource for reading a raw resource inside the APK.
+
+
RawResourceDataSource(Context) - Constructor for class com.google.android.exoplayer2.upstream.RawResourceDataSource
+
 
+
RawResourceDataSource(Context, TransferListener<? super RawResourceDataSource>) - Constructor for class com.google.android.exoplayer2.upstream.RawResourceDataSource
+
 
+
RawResourceDataSource.RawResourceDataSourceException - Exception in com.google.android.exoplayer2.upstream
+
+
Thrown when an IOException is encountered reading from a raw resource.
+
+
RawResourceDataSourceException(String) - Constructor for exception com.google.android.exoplayer2.upstream.RawResourceDataSource.RawResourceDataSourceException
+
 
+
RawResourceDataSourceException(IOException) - Constructor for exception com.google.android.exoplayer2.upstream.RawResourceDataSource.RawResourceDataSourceException
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
read(ExtractorInput, PositionHolder) - Method in interface com.google.android.exoplayer2.extractor.Extractor
+
+
Extracts data read from a provided ExtractorInput.
+
+
read(byte[], int, int) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Reads up to length bytes from the input and resets the peek position.
+
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.mp3.Mp3Extractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.ogg.OggExtractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.rawcc.RawCcExtractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.ts.Ac3Extractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.ts.AdtsExtractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
read(ExtractorInput, PositionHolder) - Method in class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
 
+
read(ExtractorInput) - Method in class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
+
Reads from the provided ExtractorInput.
+
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.AssetDataSource
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.ByteArrayDataSource
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.cache.CacheDataSource
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.ContentDataSource
+
 
+
read(byte[], int, int) - Method in interface com.google.android.exoplayer2.upstream.DataSource
+
+
Reads up to length bytes of data and stores them into buffer, starting at + index offset.
+
+
read() - Method in class com.google.android.exoplayer2.upstream.DataSourceInputStream
+
 
+
read(byte[]) - Method in class com.google.android.exoplayer2.upstream.DataSourceInputStream
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.DataSourceInputStream
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.DefaultDataSource
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.FileDataSource
+
 
+
read(byte[], int, int) - Method in interface com.google.android.exoplayer2.upstream.HttpDataSource
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.PriorityDataSource
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.RawResourceDataSource
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.TeeDataSource
+
 
+
read(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.UdpDataSource
+
 
+
readBit() - Method in class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Reads a single bit.
+
+
readBit() - Method in class com.google.android.exoplayer2.util.ParsableNalUnitBitArray
+
+
Reads a single bit.
+
+
readBits(int) - Method in class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Reads up to 32 bits.
+
+
readBits(int) - Method in class com.google.android.exoplayer2.util.ParsableNalUnitBitArray
+
+
Reads up to 32 bits.
+
+
readBytes(ParsableBitArray, int) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next length bytes into bitArray, and resets the position of + bitArray to zero.
+
+
readBytes(byte[], int, int) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next length bytes into buffer at offset.
+
+
readBytes(ByteBuffer, int) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next length bytes into buffer.
+
+
readData(FormatHolder, DecoderInputBuffer, boolean, long) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Attempts to read from the queue.
+
+
readData(FormatHolder, DecoderInputBuffer) - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
readData(FormatHolder, DecoderInputBuffer) - Method in interface com.google.android.exoplayer2.source.SampleStream
+
+
Attempts to read from the stream.
+
+
readDiscontinuity() - Method in interface com.google.android.exoplayer2.source.MediaPeriod
+
+
Attempts to read a discontinuity.
+
+
readDouble() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next eight bytes as a 64-bit floating point value.
+
+
readFloat() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next four bytes as a 32-bit floating point value.
+
+
readFully(byte[], int, int, boolean) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
readFully(byte[], int, int) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
readFully(byte[], int, int, boolean) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Like ExtractorInput.read(byte[], int, int), but reads the requested length in full.
+
+
readFully(byte[], int, int) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Equivalent to readFully(target, offset, length, false).
+
+
readInt() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next four bytes as a signed value
+
+
readLine() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads a line of text.
+
+
readLittleEndianInt() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next four bytes as an signed value in little endian order.
+
+
readLittleEndianInt24() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next three bytes as a signed value in little endian order.
+
+
readLittleEndianLong() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next eight bytes as a signed value in little endian order.
+
+
readLittleEndianShort() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next two bytes as a signed value.
+
+
readLittleEndianUnsignedInt() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next four bytes as an unsigned value in little endian order.
+
+
readLittleEndianUnsignedInt24() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next three bytes as an unsigned value in little endian order.
+
+
readLittleEndianUnsignedIntToInt() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next four bytes as a little endian unsigned integer into an integer, if the top bit + is a zero.
+
+
readLittleEndianUnsignedShort() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next two bytes as an unsigned value.
+
+
readLong() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next eight bytes as a signed value.
+
+
readShort() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next two bytes as an signed value.
+
+
readSignedExpGolombCodedInt() - Method in class com.google.android.exoplayer2.util.ParsableNalUnitBitArray
+
+
Reads an signed Exp-Golomb-coded format integer.
+
+
readSource(FormatHolder, DecoderInputBuffer) - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Reads from the enabled upstream source.
+
+
readString(int) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next length bytes as UTF-8 characters.
+
+
readString(int, Charset) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next length bytes as characters in the specified Charset.
+
+
readSynchSafeInt() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads a Synchsafe integer.
+
+
readUnsignedByte() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next byte as an unsigned value.
+
+
readUnsignedExpGolombCodedInt() - Method in class com.google.android.exoplayer2.util.ParsableNalUnitBitArray
+
+
Reads an unsigned Exp-Golomb-coded format integer.
+
+
readUnsignedFixedPoint1616() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next four bytes, returning the integer portion of the fixed point 16.16 integer.
+
+
readUnsignedInt() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next four bytes as an unsigned value.
+
+
readUnsignedInt24() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next three bytes as an unsigned value.
+
+
readUnsignedIntToInt() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next four bytes as an unsigned integer into an integer, if the top bit is a zero.
+
+
readUnsignedLongToLong() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next eight bytes as an unsigned long into a long, if the top bit is a zero.
+
+
readUnsignedShort() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads the next two bytes as an unsigned value.
+
+
readUtf8EncodedLong() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Reads a long value encoded by UTF-8 encoding
+
+
reason - Variable in exception com.google.android.exoplayer2.drm.UnsupportedDrmException
+
+ +
+
reason - Variable in exception com.google.android.exoplayer2.source.MergingMediaSource.IllegalMergeException
+
+
The reason the merge failed.
+
+
reason - Variable in exception com.google.android.exoplayer2.upstream.DataSourceException
+
+
The reason of this DataSourceException.
+
+
REASON_INSTANTIATION_ERROR - Static variable in exception com.google.android.exoplayer2.drm.UnsupportedDrmException
+
+
There device advertises support for the requested DRM scheme, but there was an error + instantiating it.
+
+
REASON_PERIOD_COUNT_MISMATCH - Static variable in exception com.google.android.exoplayer2.source.MergingMediaSource.IllegalMergeException
+
+
The merge failed because the sources have different period counts.
+
+
REASON_UNSUPPORTED_SCHEME - Static variable in exception com.google.android.exoplayer2.drm.UnsupportedDrmException
+
+
The requested DRM scheme is unsupported by the device.
+
+
REASON_WINDOWS_ARE_DYNAMIC - Static variable in exception com.google.android.exoplayer2.source.MergingMediaSource.IllegalMergeException
+
+
The merge failed because one of the sources being merged has a dynamic window.
+
+
register() - Method in class com.google.android.exoplayer2.audio.AudioCapabilitiesReceiver
+
+
Registers the receiver, meaning it will notify the listener when audio capability changes + occur.
+
+
REJECT_PAYWALL_TYPES - Static variable in interface com.google.android.exoplayer2.upstream.HttpDataSource
+
+
A Predicate that rejects content types often used for pay-walls.
+
+
release() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Releases all resources associated with this instance.
+
+
release() - Method in interface com.google.android.exoplayer2.decoder.Decoder
+
+
Releases the decoder.
+
+
release() - Method in class com.google.android.exoplayer2.decoder.OutputBuffer
+
+
Releases the output buffer for reuse.
+
+
release() - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
 
+
release() - Method in class com.google.android.exoplayer2.decoder.SimpleOutputBuffer
+
 
+
release() - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
release() - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
release() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Releases the player.
+
+
release() - Method in interface com.google.android.exoplayer2.extractor.Extractor
+
+
Releases all kept resources.
+
+
release() - Method in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.mp3.Mp3Extractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.ogg.OggExtractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.rawcc.RawCcExtractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.ts.Ac3Extractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.ts.AdtsExtractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
release() - Method in class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
 
+
release() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
release() - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
+
Releases the stream.
+
+
release() - Method in class com.google.android.exoplayer2.text.cea.Cea608Decoder
+
 
+
release() - Method in class com.google.android.exoplayer2.text.cea.CeaOutputBuffer
+
 
+
release() - Method in class com.google.android.exoplayer2.text.SubtitleOutputBuffer
+
 
+
release(Allocation) - Method in interface com.google.android.exoplayer2.upstream.Allocator
+
+
Releases an Allocation back to the allocator.
+
+
release(Allocation[]) - Method in interface com.google.android.exoplayer2.upstream.Allocator
+
+
Releases an array of Allocations back to the allocator.
+
+
release(Allocation) - Method in class com.google.android.exoplayer2.upstream.DefaultAllocator
+
 
+
release(Allocation[]) - Method in class com.google.android.exoplayer2.upstream.DefaultAllocator
+
 
+
release() - Method in class com.google.android.exoplayer2.upstream.Loader
+
+
Releases the Loader.
+
+
release(Runnable) - Method in class com.google.android.exoplayer2.upstream.Loader
+
+
Releases the Loader, running postLoadAction on its thread.
+
+
releaseCodec() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
releaseHoleSpan(CacheSpan) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Releases a CacheSpan obtained from Cache.startReadWrite(String, long) which + corresponded to a hole in the cache.
+
+
releaseHoleSpan(CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
releaseOutputBuffer(O) - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
+
Releases an output buffer back to the decoder.
+
+
releaseOutputBuffer(SubtitleOutputBuffer) - Method in class com.google.android.exoplayer2.text.SimpleSubtitleDecoder
+
 
+
releasePeriod(MediaPeriod) - Method in class com.google.android.exoplayer2.source.ConcatenatingMediaSource
+
 
+
releasePeriod(MediaPeriod) - Method in class com.google.android.exoplayer2.source.dash.DashMediaSource
+
 
+
releasePeriod(MediaPeriod) - Method in class com.google.android.exoplayer2.source.ExtractorMediaSource
+
 
+
releasePeriod(MediaPeriod) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
+
 
+
releasePeriod(MediaPeriod) - Method in class com.google.android.exoplayer2.source.LoopingMediaSource
+
 
+
releasePeriod(MediaPeriod) - Method in interface com.google.android.exoplayer2.source.MediaSource
+
+
Releases the period.
+
+
releasePeriod(MediaPeriod) - Method in class com.google.android.exoplayer2.source.MergingMediaSource
+
 
+
releasePeriod(MediaPeriod) - Method in class com.google.android.exoplayer2.source.SingleSampleMediaSource
+
 
+
releasePeriod(MediaPeriod) - Method in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
releaseSession(DrmSession<T>) - Method in interface com.google.android.exoplayer2.drm.DrmSessionManager
+
+
Releases a DrmSession.
+
+
releaseSession(DrmSession<T>) - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
 
+
releaseSource() - Method in class com.google.android.exoplayer2.source.ConcatenatingMediaSource
+
 
+
releaseSource() - Method in class com.google.android.exoplayer2.source.dash.DashMediaSource
+
 
+
releaseSource() - Method in class com.google.android.exoplayer2.source.ExtractorMediaSource
+
 
+
releaseSource() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
+
 
+
releaseSource() - Method in class com.google.android.exoplayer2.source.LoopingMediaSource
+
 
+
releaseSource() - Method in interface com.google.android.exoplayer2.source.MediaSource
+
+
Releases the source.
+
+
releaseSource() - Method in class com.google.android.exoplayer2.source.MergingMediaSource
+
 
+
releaseSource() - Method in class com.google.android.exoplayer2.source.SingleSampleMediaSource
+
 
+
releaseSource() - Method in class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
remove(int) - Method in class com.google.android.exoplayer2.util.PriorityTaskManager
+
+
Unregister a task.
+
+
removeListener(ExoPlayer.EventListener) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Unregister a listener.
+
+
removeListener(ExoPlayer.EventListener) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
removeListener(TrackSelector.EventListener<? super T>) - Method in class com.google.android.exoplayer2.trackselection.TrackSelector
+
+
Unregister a listener.
+
+
removeListener(String, Cache.Listener) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Unregisters a listener.
+
+
removeListener(String, Cache.Listener) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
removeSpan(CacheSpan) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Removes a cached CacheSpan from the cache, deleting the underlying file.
+
+
removeSpan(CacheSpan) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
render(long, long) - Method in class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
render(long, long) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
render(long, long) - Method in class com.google.android.exoplayer2.metadata.MetadataRenderer
+
 
+
render(long, long) - Method in interface com.google.android.exoplayer2.Renderer
+
+
Incrementally renders the SampleStream.
+
+
render(long, long) - Method in class com.google.android.exoplayer2.text.TextRenderer
+
 
+
renderedFirstFrame(Surface) - Method in class com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
+
+ +
+
renderedOutputBufferCount - Variable in class com.google.android.exoplayer2.decoder.DecoderCounters
+
+
The number of rendered output buffers.
+
+
Renderer - Interface in com.google.android.exoplayer2
+
+
Renders media read from a SampleStream.
+
+
RENDERER_SUPPORT_NO_TRACKS - Static variable in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
The renderer does not have any associated tracks.
+
+
RENDERER_SUPPORT_PLAYABLE_TRACKS - Static variable in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
The renderer has associated tracks, and can play at least one of them.
+
+
RENDERER_SUPPORT_UNPLAYABLE_TRACKS - Static variable in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
+
+
The renderer has associated tracks, but cannot play any of them.
+
+
RendererCapabilities - Interface in com.google.android.exoplayer2
+
+
Defines the capabilities of a Renderer.
+
+
rendererIndex - Variable in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
If ExoPlaybackException.type is ExoPlaybackException.TYPE_RENDERER, this is the index of the renderer.
+
+
replaceManifestUri(Uri) - Method in class com.google.android.exoplayer2.source.dash.DashMediaSource
+
+
Manually replaces the manifest Uri.
+
+
replaceStream(Format[], SampleStream, long) - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
replaceStream(Format[], SampleStream, long) - Method in interface com.google.android.exoplayer2.Renderer
+
+
Replaces the SampleStream from which samples will be consumed.
+
+
representation - Variable in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
Representation - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
A DASH representation.
+
+
Representation.MultiSegmentRepresentation - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
A DASH representation consisting of multiple segments.
+
+
Representation.SingleSegmentRepresentation - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
A DASH representation consisting of a single segment.
+
+
RepresentationHolder(long, Representation) - Constructor for class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
representations - Variable in class com.google.android.exoplayer2.source.dash.manifest.AdaptationSet
+
 
+
requiresSecureDecoderComponent(String) - Method in interface com.google.android.exoplayer2.drm.DrmSession
+
+
Whether the session requires a secure decoder for the specified mime type.
+
+
requiresSecureDecoderComponent(String) - Method in interface com.google.android.exoplayer2.drm.ExoMediaCrypto
+
 
+
requiresSecureDecoderComponent(String) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaCrypto
+
 
+
requiresSecureDecoderComponent(String) - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
 
+
requiresSecureDecryption - Variable in class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
+
Whether secure decryption is required.
+
+
reset() - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Releases the underlying audio track asynchronously.
+
+
reset(boolean) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Resets the output.
+
+
reset() - Method in class com.google.android.exoplayer2.extractor.TimestampAdjuster
+
+
Resets the instance to its initial state.
+
+
reset() - Method in class com.google.android.exoplayer2.source.hls.TimestampAdjusterProvider
+
+
Resets the provider.
+
+
reset() - Method in class com.google.android.exoplayer2.upstream.DefaultAllocator
+
 
+
reset(byte[]) - Method in class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Updates the instance to wrap data, and resets the position to zero.
+
+
reset(byte[], int) - Method in class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Updates the instance to wrap data, and resets the position to zero.
+
+
reset(int) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Resets the position to zero and the limit to the specified value.
+
+
reset(byte[], int) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Updates the instance to wrap data, and resets the position to zero.
+
+
reset() - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Sets the position and limit to zero.
+
+
reset(byte[], int, int) - Method in class com.google.android.exoplayer2.util.ParsableNalUnitBitArray
+
+
Resets the wrapped data, limit and offset.
+
+
resetPeekPosition() - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
resetPeekPosition() - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Resets the peek position to equal the current read position.
+
+
resetPosition(long) - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
resetPosition(long) - Method in interface com.google.android.exoplayer2.Renderer
+
+
Signals to the renderer that a position discontinuity has occurred.
+
+
RESIZE_MODE_FIT - Static variable in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
+
+
Either the width or height is decreased to obtain the desired aspect ratio.
+
+
RESIZE_MODE_FIXED_HEIGHT - Static variable in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
+
+
The height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
+
+
RESIZE_MODE_FIXED_WIDTH - Static variable in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
+
+
The width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
+
+
resolve(String, String) - Static method in class com.google.android.exoplayer2.util.UriUtil
+
+
Performs relative resolution of a referenceUri with respect to a baseUri.
+
+
resolveToUri(String, String) - Static method in class com.google.android.exoplayer2.util.UriUtil
+
+
Like UriUtil.resolve(String, String), but returns a Uri instead of a String.
+
+
responseCode - Variable in exception com.google.android.exoplayer2.upstream.HttpDataSource.InvalidResponseCodeException
+
+
The response code that was outside of the 2xx range.
+
+
restoreKeys(byte[], byte[]) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
restoreKeys(byte[], byte[]) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
RESULT_BUFFER_CONSUMED - Static variable in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Returned in the result of AudioTrack.handleBuffer(java.nio.ByteBuffer, long) if the buffer can be released.
+
+
RESULT_BUFFER_READ - Static variable in class com.google.android.exoplayer2.C
+
+
A return value for methods where a buffer was read.
+
+
RESULT_CONTINUE - Static variable in interface com.google.android.exoplayer2.extractor.Extractor
+
+
Returned by Extractor.read(ExtractorInput, PositionHolder) if the ExtractorInput passed + to the next Extractor.read(ExtractorInput, PositionHolder) is required to provide data + continuing from the position in the stream reached by the returning call.
+
+
RESULT_END_OF_INPUT - Static variable in class com.google.android.exoplayer2.C
+
+
A return value for methods where the end of an input was encountered.
+
+
RESULT_END_OF_INPUT - Static variable in interface com.google.android.exoplayer2.extractor.Extractor
+
+
Returned by Extractor.read(ExtractorInput, PositionHolder) if the end of the + ExtractorInput was reached.
+
+
RESULT_FORMAT_READ - Static variable in class com.google.android.exoplayer2.C
+
+
A return value for methods where a format was read.
+
+
RESULT_MAX_LENGTH_EXCEEDED - Static variable in class com.google.android.exoplayer2.C
+
+
A return value for methods where the length of parsed data exceeds the maximum length allowed.
+
+
RESULT_NOTHING_READ - Static variable in class com.google.android.exoplayer2.C
+
+
A return value for methods where nothing was read.
+
+
RESULT_POSITION_DISCONTINUITY - Static variable in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Returned in the result of AudioTrack.handleBuffer(java.nio.ByteBuffer, long) if the buffer was discontinuous.
+
+
RESULT_SEEK - Static variable in interface com.google.android.exoplayer2.extractor.Extractor
+
+
Returned by Extractor.read(ExtractorInput, PositionHolder) if the ExtractorInput passed + to the next Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting + from a specified position in the stream.
+
+
RETRY - Static variable in class com.google.android.exoplayer2.upstream.Loader
+
 
+
RETRY_RESET_ERROR_COUNT - Static variable in class com.google.android.exoplayer2.upstream.Loader
+
 
+
REVISION_ID_DEFAULT - Static variable in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
A default value for Representation.revisionId.
+
+
revisionId - Variable in class com.google.android.exoplayer2.source.dash.manifest.Representation
+
+
Identifies the revision of the content.
+
+
rotationDegrees - Variable in class com.google.android.exoplayer2.Format
+
+
The clockwise rotation that should be applied to the video for it to be rendered in the correct + orientation, or Format.NO_VALUE if unknown or not applicable.
+
+
run() - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
+
 
+
run() - Method in class com.google.android.exoplayer2.util.PriorityHandlerThread
+
 
+
+ + + +

S

+
+
sampleData(ExtractorInput, int, boolean) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
 
+
sampleData(ParsableByteArray, int) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
 
+
sampleData(ExtractorInput, int, boolean) - Method in class com.google.android.exoplayer2.extractor.DummyTrackOutput
+
 
+
sampleData(ParsableByteArray, int) - Method in class com.google.android.exoplayer2.extractor.DummyTrackOutput
+
 
+
sampleData(ExtractorInput, int, boolean) - Method in interface com.google.android.exoplayer2.extractor.TrackOutput
+
+
Called to write sample data to the output.
+
+
sampleData(ParsableByteArray, int) - Method in interface com.google.android.exoplayer2.extractor.TrackOutput
+
+
Called to write sample data to the output.
+
+
sampleData(ExtractorInput, int, boolean) - Method in class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
 
+
sampleData(ParsableByteArray, int) - Method in class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
 
+
sampleData(ExtractorInput, int, boolean) - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
sampleData(ParsableByteArray, int) - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
sampleDescriptionEncryptionBoxes - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
Track encryption boxes for the different track sample descriptions.
+
+
sampleFormat - Variable in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
sampleMetadata(long, int, int, int, byte[]) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
 
+
sampleMetadata(long, int, int, int, byte[]) - Method in class com.google.android.exoplayer2.extractor.DummyTrackOutput
+
 
+
sampleMetadata(long, int, int, int, byte[]) - Method in interface com.google.android.exoplayer2.extractor.TrackOutput
+
+
Called when metadata associated with a sample has been extracted from the stream.
+
+
sampleMetadata(long, int, int, int, byte[]) - Method in class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
 
+
sampleMetadata(long, int, int, int, byte[]) - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
sampleMimeType - Variable in class com.google.android.exoplayer2.Format
+
+
The mime type of the elementary stream (i.e.
+
+
sampleRate - Variable in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
Sample rate in samples per second.
+
+
sampleRate - Variable in class com.google.android.exoplayer2.Format
+
+
The audio sampling rate in Hz, or Format.NO_VALUE if unknown or not applicable.
+
+
sampleRate - Variable in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
samplesPerFrame - Variable in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
Number of samples stored in the frame.
+
+
SampleStream - Interface in com.google.android.exoplayer2.source
+
+
A stream of media samples (and associated format information).
+
+
sampleTransformation - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
One of TRANSFORMATION_*.
+
+
scaleLargeTimestamp(long, long, long) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Scales a large timestamp.
+
+
scaleLargeTimestamps(List<Long>, long, long) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Applies Util.scaleLargeTimestamp(long, long, long) to a list of unscaled timestamps.
+
+
scaleLargeTimestampsInPlace(long[], long, long) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Applies Util.scaleLargeTimestamp(long, long, long) to an array of unscaled timestamps.
+
+
SchemeData(UUID, String, byte[]) - Constructor for class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
 
+
SchemeData(UUID, String, byte[], boolean) - Constructor for class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
 
+
schemeDataCount - Variable in class com.google.android.exoplayer2.drm.DrmInitData
+
+ +
+
schemeIdUri - Variable in class com.google.android.exoplayer2.source.dash.manifest.UtcTimingElement
+
 
+
SDK_INT - Static variable in class com.google.android.exoplayer2.util.Util
+
+
Like Build.VERSION.SDK_INT, but in a place where it can be conveniently + overridden for local testing.
+
+
secureDecoderRequired - Variable in exception com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException
+
+
Whether it was required that the decoder support a secure output path.
+
+
seek(long) - Method in interface com.google.android.exoplayer2.extractor.Extractor
+
+
Notifies the extractor that a seek has occurred.
+
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.mp3.Mp3Extractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.ogg.OggExtractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.rawcc.RawCcExtractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.ts.Ac3Extractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.ts.AdtsExtractor
+
 
+
seek() - Method in class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader
+
+
Notifies the reader that a seek has occurred.
+
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
seek(long) - Method in class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
 
+
seekMap(SeekMap) - Method in interface com.google.android.exoplayer2.extractor.ExtractorOutput
+
+
Called when a SeekMap has been extracted from the stream.
+
+
SeekMap - Interface in com.google.android.exoplayer2.extractor
+
+
Maps seek positions (in microseconds) to corresponding positions (byte offsets) in the stream.
+
+
seekMap(SeekMap) - Method in class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
 
+
seekMap(SeekMap) - Method in interface com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper.SingleTrackMetadataOutput
+
 
+
seekMap(SeekMap) - Method in class com.google.android.exoplayer2.source.chunk.ContainerMediaChunk
+
 
+
seekMap(SeekMap) - Method in class com.google.android.exoplayer2.source.chunk.InitializationChunk
+
 
+
SeekMap.Unseekable - Class in com.google.android.exoplayer2.extractor
+
+
A SeekMap that does not support seeking.
+
+
seekTo(long) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Seeks to a position specified in milliseconds in the current window.
+
+
seekTo(int, long) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Seeks to a position specified in milliseconds in the specified window.
+
+
seekTo(long) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
seekTo(int, long) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
seekToDefaultPosition() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Seeks to the default position associated with the current window.
+
+
seekToDefaultPosition(int) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Seeks to the default position associated with the specified window.
+
+
seekToDefaultPosition() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
seekToDefaultPosition(int) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
seekToUs(long) - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
+
Seeks to the specified position in microseconds.
+
+
seekToUs(long) - Method in interface com.google.android.exoplayer2.source.MediaPeriod
+
+
Attempts to seek to the specified position in microseconds.
+
+
Segment(String, long, long) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
Segment(String, double, int, long, boolean, String, String, long, long) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
SegmentBase - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
An approximate representation of a SegmentBase manifest element.
+
+
SegmentBase(RangedUri, long, long) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.SegmentBase
+
 
+
SegmentBase.MultiSegmentBase - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
A SegmentBase that consists of multiple segments.
+
+
SegmentBase.SegmentList - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
A SegmentBase.MultiSegmentBase that uses a SegmentList to define its segments.
+
+
SegmentBase.SegmentTemplate - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
A SegmentBase.MultiSegmentBase that uses a SegmentTemplate to define its segments.
+
+
SegmentBase.SegmentTimelineElement - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
Represents a timeline segment from the MPD's SegmentTimeline list.
+
+
SegmentBase.SingleSegmentBase - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
A SegmentBase that defines a single segment.
+
+
segmentIndex - Variable in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
SegmentList(RangedUri, long, long, int, long, List<SegmentBase.SegmentTimelineElement>, List<RangedUri>) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentList
+
 
+
segments - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
SegmentTemplate(RangedUri, long, long, int, long, List<SegmentBase.SegmentTimelineElement>, UrlTemplate, UrlTemplate, String) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTemplate
+
 
+
SegmentTimelineElement(long, long) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTimelineElement
+
 
+
selectAudioTrack(TrackGroupArray, int[][], String) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
+
 
+
SELECTION_FLAG_AUTOSELECT - Static variable in class com.google.android.exoplayer2.C
+
+
Indicates that the player may choose to play the track in absence of an explicit user + preference.
+
+
SELECTION_FLAG_DEFAULT - Static variable in class com.google.android.exoplayer2.C
+
+
Indicates that the track should be selected if user preferences do not state otherwise.
+
+
SELECTION_FLAG_FORCED - Static variable in class com.google.android.exoplayer2.C
+
+
Indicates that the track must be displayed.
+
+
SELECTION_REASON_ADAPTIVE - Static variable in class com.google.android.exoplayer2.C
+
+
A selection reason constant for an adaptive track selection.
+
+
SELECTION_REASON_CUSTOM_BASE - Static variable in class com.google.android.exoplayer2.C
+
+
Applications or extensions may define custom SELECTION_REASON_* constants greater than + or equal to this value.
+
+
SELECTION_REASON_INITIAL - Static variable in class com.google.android.exoplayer2.C
+
+
A selection reason constant for an initial track selection.
+
+
SELECTION_REASON_MANUAL - Static variable in class com.google.android.exoplayer2.C
+
+
A selection reason constant for an manual (i.e.
+
+
SELECTION_REASON_TRICK_PLAY - Static variable in class com.google.android.exoplayer2.C
+
+
A selection reason constant for a trick play track selection.
+
+
SELECTION_REASON_UNKNOWN - Static variable in class com.google.android.exoplayer2.C
+
+
A selection reason constant for selections whose reasons are unknown or unspecified.
+
+
selectionFlags - Variable in class com.google.android.exoplayer2.Format
+
+
Track selection flags.
+
+
SelectionOverride(TrackSelection.Factory, int, int...) - Constructor for class com.google.android.exoplayer2.trackselection.MappingTrackSelector.SelectionOverride
+
 
+
selectOtherTrack(int, TrackGroupArray, int[][]) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
+
 
+
selectTextTrack(TrackGroupArray, int[][], String, String) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
+
 
+
selectTracks(TrackSelection[], boolean[], SampleStream[], boolean[], long) - Method in interface com.google.android.exoplayer2.source.MediaPeriod
+
+
Performs a track selection.
+
+
selectTracks(RendererCapabilities[], TrackGroupArray[], int[][][]) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
+
 
+
selectTracks(RendererCapabilities[], TrackGroupArray) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
 
+
selectTracks(RendererCapabilities[], TrackGroupArray[], int[][][]) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
+
Given an array of renderers and a set of TrackGroups mapped to each of them, provides a + TrackSelection per renderer.
+
+
selectTracks(RendererCapabilities[], TrackGroupArray) - Method in class com.google.android.exoplayer2.trackselection.TrackSelector
+
+
Generates TrackSelections for the renderers.
+
+
selectVideoTrack(RendererCapabilities, TrackGroupArray, int[][], int, int, boolean, boolean, int, int, boolean, TrackSelection.Factory, boolean) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
+
 
+
sendMessages(ExoPlayer.ExoPlayerMessage...) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Sends messages to their target components.
+
+
sendMessages(ExoPlayer.ExoPlayerMessage...) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
separateColorPlaneFlag - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
seqParameterSetId - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.PpsData
+
 
+
seqParameterSetId - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
SequenceableLoader - Interface in com.google.android.exoplayer2.source
+
+
A loader that can proceed in approximate synchronization with other loaders.
+
+
SequenceableLoader.Callback<T extends SequenceableLoader> - Interface in com.google.android.exoplayer2.source
+
+
A callback to be notified of SequenceableLoader events.
+
+
SESSION_ID_NOT_SET - Static variable in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Represents an unset AudioTrack session identifier.
+
+
set(int, int[], int[], byte[], byte[], int) - Method in class com.google.android.exoplayer2.decoder.CryptoInfo
+
 
+
set(Object, Object, int, long, long) - Method in class com.google.android.exoplayer2.Timeline.Period
+
+
Sets the data held by this period.
+
+
set(Object, long, long, boolean, boolean, long, long, int, int, long) - Method in class com.google.android.exoplayer2.Timeline.Window
+
+
Sets the data held by this window.
+
+
setApplyEmbeddedStyles(boolean) - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
+
Sets whether styling embedded within the cues should be applied.
+
+
setAspectRatio(float) - Method in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
+
+
Set the aspect ratio that this view should satisfy.
+
+
setAudioDebugListener(AudioRendererEventListener) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets a listener to receive debug events from the audio renderer.
+
+
setBottomPaddingFraction(float) - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
+
Sets the bottom padding fraction to apply when Cue.line is Cue.DIMEN_UNSET, + as a fraction of the view's remaining height after its top and bottom padding have been + subtracted.
+
+
setContent(long, Subtitle, long) - Method in class com.google.android.exoplayer2.text.SubtitleOutputBuffer
+
+
Sets the content of the output buffer, consisting of a Subtitle and associated + metadata.
+
+
setContentLength(String, long) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Sets the content length for the given key.
+
+
setContentLength(String, long) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
setControllerShowTimeoutMs(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+
Sets the playback controls timeout.
+
+
setControllerVisibilityListener(PlaybackControlView.VisibilityListener) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+ +
+
setCues(List<Cue>) - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
+
Sets the cues to be displayed by the view.
+
+
setCurrentStreamIsFinal() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
setCurrentStreamIsFinal() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Signals to the renderer that the current SampleStream will be the final one supplied + before it is next disabled or reset.
+
+
setFastForwardIncrementMs(int) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+
Sets the fast forward increment in milliseconds.
+
+
setFastForwardIncrementMs(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+
Sets the fast forward increment in milliseconds.
+
+
setFixedTextSize(int, float) - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
+
Set the text size to a given unit and value.
+
+
setFlags(int) - Method in class com.google.android.exoplayer2.decoder.Buffer
+
+
Replaces this buffer's flags with flags.
+
+
setFractionalTextSize(float) - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
+
Sets the text size to be a fraction of the view's remaining height after its top and bottom + padding have been subtracted.
+
+
setFractionalTextSize(float, boolean) - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
+
Sets the text size to be a fraction of the height of this view.
+
+
setFromComment(String, String) - Method in class com.google.android.exoplayer2.extractor.GaplessInfoHolder
+
+
Populates the holder with data parsed from a gapless playback comment (stored in an ID3 header + or MPEG 4 user data), if valid and non-zero.
+
+
setFromXingHeaderValue(int) - Method in class com.google.android.exoplayer2.extractor.GaplessInfoHolder
+
+
Populates the holder with data from an MP3 Xing header, if valid and non-zero.
+
+
setId3Output(MetadataRenderer.Output<List<Id3Frame>>) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets a listener to receive ID3 metadata events.
+
+
setIndex(int) - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
setIndex(int) - Method in interface com.google.android.exoplayer2.Renderer
+
+
Sets the index of this renderer within the player.
+
+
setInitialInputBufferSize(int) - Method in class com.google.android.exoplayer2.decoder.SimpleDecoder
+
+
Sets the initial size of each input buffer.
+
+
setLibraries(String...) - Method in class com.google.android.exoplayer2.util.LibraryLoader
+
+
Overrides the names of the libraries to load.
+
+
setLimit(int) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Sets the limit.
+
+
setOnEventListener(ExoMediaDrm.OnEventListener<? super T>) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
setOnEventListener(ExoMediaDrm.OnEventListener<? super FrameworkMediaCrypto>) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
setParameters(DefaultTrackSelector.Parameters) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector
+
+
Atomically sets the provided parameters for track selection.
+
+
setPlaybackParams(PlaybackParams) - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Sets the playback parameters.
+
+
setPlaybackParams(PlaybackParams) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets the PlaybackParams governing audio playback.
+
+
setPlayer(ExoPlayer) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+
Sets the ExoPlayer to control.
+
+
setPlayer(SimpleExoPlayer) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+
Set the SimpleExoPlayer to use.
+
+
setPlayWhenReady(boolean) - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Sets whether playback should proceed when ExoPlayer.getPlaybackState() == ExoPlayer.STATE_READY.
+
+
setPlayWhenReady(boolean) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
setPosition(int) - Method in class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Sets the current bit offset.
+
+
setPosition(int) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Sets the reading offset in the array.
+
+
setPositionUs(long) - Method in class com.google.android.exoplayer2.text.SimpleSubtitleDecoder
+
 
+
setPositionUs(long) - Method in interface com.google.android.exoplayer2.text.SubtitleDecoder
+
+
Informs the decoder of the current playback position.
+
+
setPositionUs(long) - Method in class com.google.android.exoplayer2.util.StandaloneMediaClock
+
 
+
setPropertyByteArray(String, byte[]) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
setPropertyByteArray(String, byte[]) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
setPropertyByteArray(String, byte[]) - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
+
Provides access to MediaDrm.setPropertyByteArray(String, byte[]).
+
+
setPropertyString(String, String) - Method in interface com.google.android.exoplayer2.drm.ExoMediaDrm
+
 
+
setPropertyString(String, String) - Method in class com.google.android.exoplayer2.drm.FrameworkMediaDrm
+
 
+
setPropertyString(String, String) - Method in class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
+
Provides access to MediaDrm.setPropertyString(String, String).
+
+
setRendererDisabled(int, boolean) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
+
Sets whether the renderer at the specified index is disabled.
+
+
setRequestProperty(String, String) - Method in class com.google.android.exoplayer2.upstream.DefaultHttpDataSource
+
 
+
setRequestProperty(String, String) - Method in interface com.google.android.exoplayer2.upstream.HttpDataSource
+
+
Sets the value of a request header field.
+
+
setResizeMode(int) - Method in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
+
+ +
+
setResizeMode(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+ +
+
setRetryPosition(long, E) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
setRetryPosition(long, E) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Called when reading fails and the required retry position is different from the last position.
+
+
setRewindIncrementMs(int) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+
Sets the rewind increment in milliseconds.
+
+
setRewindIncrementMs(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+
Sets the rewind increment in milliseconds.
+
+
setSampleFormat(Format) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
setSelectionOverride(int, TrackGroupArray, MappingTrackSelector.SelectionOverride) - Method in class com.google.android.exoplayer2.trackselection.MappingTrackSelector
+
+
Overrides the track selection for the renderer at a specified index.
+
+
setShowTimeoutMs(int) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+
Sets the playback controls timeout.
+
+
setStyle(CaptionStyleCompat) - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
+
Sets the caption style.
+
+
setTargetBufferSize(int) - Method in class com.google.android.exoplayer2.upstream.DefaultAllocator
+
 
+
setTextOutput(TextRenderer.Output) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets an output to receive text events.
+
+
setUpstreamFormatChangeListener(DefaultTrackOutput.UpstreamFormatChangedListener) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Sets a listener to be notified of changes to the upstream format.
+
+
setUseController(boolean) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
+
Sets whether playback controls are enabled.
+
+
setUserDefaultStyle() - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
+
Sets the caption style to be equivalent to the one returned by + CaptioningManager.getUserStyle(), or to a default style on API level 19 and earlier.
+
+
setUserDefaultTextSize() - Method in class com.google.android.exoplayer2.ui.SubtitleView
+
+
Sets the text size to one derived from CaptioningManager.getFontScale(), or to a + default size on API level 19 and earlier.
+
+
setVideoDebugListener(VideoRendererEventListener) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets a listener to receive debug events from the video renderer.
+
+
setVideoListener(SimpleExoPlayer.VideoListener) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets a listener to receive video events.
+
+
setVideoSurface(Surface) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets the Surface onto which video will be rendered.
+
+
setVideoSurfaceHolder(SurfaceHolder) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets the SurfaceHolder that holds the Surface onto which video will be + rendered.
+
+
setVideoSurfaceView(SurfaceView) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets the SurfaceView onto which video will be rendered.
+
+
setVideoTextureView(TextureView) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets the TextureView onto which video will be rendered.
+
+
setVisibilityListener(PlaybackControlView.VisibilityListener) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+ +
+
setVolume(float) - Method in class com.google.android.exoplayer2.audio.AudioTrack
+
+
Sets the playback volume.
+
+
setVolume(float) - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
+
Sets the audio volume, with 0 being silence and 1 being unity gain.
+
+
sha1(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Returns the SHA-1 digest of input as a hex string.
+
+
shouldContinueLoading(long) - Method in class com.google.android.exoplayer2.DefaultLoadControl
+
 
+
shouldContinueLoading(long) - Method in interface com.google.android.exoplayer2.LoadControl
+
+
Called by the player to determine whether it should continue to load the source.
+
+
shouldInitCodec() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
shouldInitCodec() - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
shouldStartPlayback(long, boolean) - Method in class com.google.android.exoplayer2.DefaultLoadControl
+
 
+
shouldStartPlayback(long, boolean) - Method in interface com.google.android.exoplayer2.LoadControl
+
+
Called by the player to determine whether sufficient media is buffered for playback to be + started or resumed.
+
+
show() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
+
+
Shows the playback controls.
+
+
SimpleCache - Class in com.google.android.exoplayer2.upstream.cache
+
+
A Cache implementation that maintains an in-memory representation.
+
+
SimpleCache(File, CacheEvictor) - Constructor for class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
+
Constructs the cache.
+
+
SimpleDecoder<I extends DecoderInputBuffer,O extends OutputBuffer,E extends java.lang.Exception> - Class in com.google.android.exoplayer2.decoder
+
+
Base class for Decoders that use their own decode thread.
+
+
SimpleDecoder(I[], O[]) - Constructor for class com.google.android.exoplayer2.decoder.SimpleDecoder
+
 
+
SimpleDecoderAudioRenderer - Class in com.google.android.exoplayer2.audio
+
+
Decodes and renders audio using a SimpleDecoder.
+
+
SimpleDecoderAudioRenderer() - Constructor for class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
SimpleDecoderAudioRenderer(Handler, AudioRendererEventListener) - Constructor for class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
SimpleDecoderAudioRenderer(Handler, AudioRendererEventListener, AudioCapabilities, int) - Constructor for class com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer
+
 
+
SimpleExoPlayer - Class in com.google.android.exoplayer2
+
+
An ExoPlayer implementation that uses default Renderer components.
+
+
SimpleExoPlayer.VideoListener - Interface in com.google.android.exoplayer2
+
+
A listener for video rendering information from a SimpleExoPlayer.
+
+
SimpleExoPlayerView - Class in com.google.android.exoplayer2.ui
+
+
Displays a video stream.
+
+
SimpleExoPlayerView(Context) - Constructor for class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
 
+
SimpleExoPlayerView(Context, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
 
+
SimpleExoPlayerView(Context, AttributeSet, int) - Constructor for class com.google.android.exoplayer2.ui.SimpleExoPlayerView
+
 
+
SimpleOutputBuffer - Class in com.google.android.exoplayer2.decoder
+
+
Buffer for SimpleDecoder output.
+
+
SimpleOutputBuffer(SimpleDecoder<?, SimpleOutputBuffer, ?>) - Constructor for class com.google.android.exoplayer2.decoder.SimpleOutputBuffer
+
 
+
SimpleSubtitleDecoder - Class in com.google.android.exoplayer2.text
+
+
Base class for subtitle parsers that use their own decode thread.
+
+
SimpleSubtitleDecoder(String) - Constructor for class com.google.android.exoplayer2.text.SimpleSubtitleDecoder
+
 
+
SinglePeriodTimeline - Class in com.google.android.exoplayer2.source
+
+
A Timeline consisting of a single period and static window.
+
+
SinglePeriodTimeline(long, boolean) - Constructor for class com.google.android.exoplayer2.source.SinglePeriodTimeline
+
+
Creates a timeline of one period of known duration, and a static window starting at zero and + extending to that duration.
+
+
SinglePeriodTimeline(long, long, long, long, boolean, boolean) - Constructor for class com.google.android.exoplayer2.source.SinglePeriodTimeline
+
+
Creates a timeline with one period of known duration, and a window of known duration starting + at a specified position in the period.
+
+
SingleSampleMediaChunk - Class in com.google.android.exoplayer2.source.chunk
+
+
A BaseMediaChunk for chunks consisting of a single raw sample.
+
+
SingleSampleMediaChunk(DataSource, DataSpec, Format, int, Object, long, long, int, Format) - Constructor for class com.google.android.exoplayer2.source.chunk.SingleSampleMediaChunk
+
 
+
SingleSampleMediaSource - Class in com.google.android.exoplayer2.source
+
+
Loads data at a given Uri as a single sample belonging to a single MediaPeriod.
+
+
SingleSampleMediaSource(Uri, DataSource.Factory, Format, long) - Constructor for class com.google.android.exoplayer2.source.SingleSampleMediaSource
+
 
+
SingleSampleMediaSource(Uri, DataSource.Factory, Format, long, int) - Constructor for class com.google.android.exoplayer2.source.SingleSampleMediaSource
+
 
+
SingleSampleMediaSource(Uri, DataSource.Factory, Format, long, int, Handler, SingleSampleMediaSource.EventListener, int) - Constructor for class com.google.android.exoplayer2.source.SingleSampleMediaSource
+
 
+
SingleSampleMediaSource.EventListener - Interface in com.google.android.exoplayer2.source
+
+
Listener of SingleSampleMediaSource events.
+
+
SingleSegmentBase(RangedUri, long, long, String, long, long) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SingleSegmentBase
+
 
+
SingleSegmentBase(String) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SingleSegmentBase
+
 
+
SingleSegmentRepresentation(String, long, Format, SegmentBase.SingleSegmentBase, String, long) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.Representation.SingleSegmentRepresentation
+
 
+
size - Variable in class com.google.android.exoplayer2.text.Cue
+
+
The size of the cue box in the writing direction specified as a fraction of the viewport size + in that direction, or Cue.DIMEN_UNSET.
+
+
size() - Method in class com.google.android.exoplayer2.util.LongArray
+
+
Returns the current size of the array.
+
+
sizes - Variable in class com.google.android.exoplayer2.extractor.ChunkIndex
+
+
The chunk sizes, in bytes.
+
+
skip(int) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
skip(int) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Like ExtractorInput.read(byte[], int, int), except the data is skipped instead of read.
+
+
skip(long) - Method in class com.google.android.exoplayer2.upstream.DataSourceInputStream
+
 
+
skipBits(int) - Method in class com.google.android.exoplayer2.util.ParsableBitArray
+
+
Skips bits and moves current reading position forward.
+
+
skipBits(int) - Method in class com.google.android.exoplayer2.util.ParsableNalUnitBitArray
+
+
Skips bits and moves current reading position forward.
+
+
skipBytes(int) - Method in class com.google.android.exoplayer2.util.ParsableByteArray
+
+
Moves the reading offset by bytes.
+
+
skipFully(int, boolean) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
skipFully(int) - Method in class com.google.android.exoplayer2.extractor.DefaultExtractorInput
+
 
+
skipFully(int, boolean) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Like ExtractorInput.readFully(byte[], int, int, boolean), except the data is skipped instead of read.
+
+
skipFully(int) - Method in interface com.google.android.exoplayer2.extractor.ExtractorInput
+
+
Like ExtractorInput.readFully(byte[], int, int), except the data is skipped instead of read.
+
+
skippedOutputBufferCount - Variable in class com.google.android.exoplayer2.decoder.DecoderCounters
+
+
The number of skipped output buffers.
+
+
skippedOutputBufferCount - Variable in class com.google.android.exoplayer2.decoder.OutputBuffer
+
+
The number of buffers immediately prior to this one that were skipped in the Decoder.
+
+
skipToKeyframeBefore(long) - Method in class com.google.android.exoplayer2.BaseRenderer
+
+
Attempts to skip to the keyframe before the specified time.
+
+
skipToKeyframeBefore(long) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Attempts to skip to the keyframe before the specified time, if it's present in the buffer.
+
+
skipToKeyframeBefore(long) - Method in class com.google.android.exoplayer2.source.chunk.ChunkSampleStream
+
 
+
skipToKeyframeBefore(long) - Method in interface com.google.android.exoplayer2.source.SampleStream
+
+
Attempts to skip to the keyframe before the specified time.
+
+
SlidingPercentile - Class in com.google.android.exoplayer2.util
+
+
Calculate any percentile over a sliding window of weighted values.
+
+
SlidingPercentile(int) - Constructor for class com.google.android.exoplayer2.util.SlidingPercentile
+
 
+
sniff(ExtractorInput) - Method in interface com.google.android.exoplayer2.extractor.Extractor
+
+
Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream.
+
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.mp3.Mp3Extractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.mp4.Mp4Extractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.ogg.OggExtractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.rawcc.RawCcExtractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.ts.Ac3Extractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.ts.AdtsExtractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
sniff(ExtractorInput) - Method in class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
 
+
sourceId(int) - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Sets a source identifier for subsequent samples.
+
+
splice() - Method in class com.google.android.exoplayer2.extractor.DefaultTrackOutput
+
+
Indicates that samples subsequently queued to the buffer should be spliced into those already + queued.
+
+
splitNalUnits(byte[]) - Static method in class com.google.android.exoplayer2.util.CodecSpecificDataUtil
+
+
Splits an array of NAL units.
+
+
SpsData(int, int, int, float, boolean, boolean, int, int, int, boolean) - Constructor for class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
SsChunkSource - Interface in com.google.android.exoplayer2.source.smoothstreaming
+
+
A ChunkSource for SmoothStreaming.
+
+
SsChunkSource.Factory - Interface in com.google.android.exoplayer2.source.smoothstreaming
+
 
+
SsManifest - Class in com.google.android.exoplayer2.source.smoothstreaming.manifest
+
+
Represents a SmoothStreaming manifest.
+
+
SsManifest(int, int, long, long, long, int, boolean, SsManifest.ProtectionElement, SsManifest.StreamElement[]) - Constructor for class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
 
+
SsManifest.ProtectionElement - Class in com.google.android.exoplayer2.source.smoothstreaming.manifest
+
+
Represents a protection element containing a single header.
+
+
SsManifest.StreamElement - Class in com.google.android.exoplayer2.source.smoothstreaming.manifest
+
+
Represents a StreamIndex element.
+
+
SsManifestParser - Class in com.google.android.exoplayer2.source.smoothstreaming.manifest
+
+
Parses SmoothStreaming client manifests.
+
+
SsManifestParser() - Constructor for class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifestParser
+
 
+
SsManifestParser.MissingFieldException - Exception in com.google.android.exoplayer2.source.smoothstreaming.manifest
+
+
Thrown if a required field is missing.
+
+
SsMediaSource - Class in com.google.android.exoplayer2.source.smoothstreaming
+
+
A SmoothStreaming MediaSource.
+
+
SsMediaSource(Uri, DataSource.Factory, SsChunkSource.Factory, Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
SsMediaSource(Uri, DataSource.Factory, SsChunkSource.Factory, int, long, Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource
+
 
+
StandaloneMediaClock - Class in com.google.android.exoplayer2.util
+
+
A standalone MediaClock.
+
+
StandaloneMediaClock() - Constructor for class com.google.android.exoplayer2.util.StandaloneMediaClock
+
 
+
start() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
start() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Starts the renderer, meaning that calls to Renderer.render(long, long) will cause media to be + rendered.
+
+
start - Variable in class com.google.android.exoplayer2.source.dash.manifest.RangedUri
+
+
The (zero based) index of the first byte of the range.
+
+
start() - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
+
+
Starts periodic updates of the TextView.
+
+
start() - Method in class com.google.android.exoplayer2.util.StandaloneMediaClock
+
+
Starts the clock.
+
+
startFile(String, long, long) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
Obtains a cache file into which data can be written.
+
+
startFile(String, long, long) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
startLoading(T, Loader.Callback<T>, int) - Method in class com.google.android.exoplayer2.upstream.Loader
+
+
Starts loading a Loader.Loadable.
+
+
startMs - Variable in class com.google.android.exoplayer2.source.dash.manifest.Period
+
+
The start time of the period in milliseconds.
+
+
startReadWrite(String, long) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+
A caller should invoke this method when they require data from a given position for a given + key.
+
+
startReadWrite(String, long) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
startReadWriteNonBlocking(String, long) - Method in interface com.google.android.exoplayer2.upstream.cache.Cache
+
+ +
+
startReadWriteNonBlocking(String, long) - Method in class com.google.android.exoplayer2.upstream.cache.SimpleCache
+
 
+
startTimeUs - Variable in class com.google.android.exoplayer2.source.chunk.Chunk
+
+
The start time of the media contained by the chunk, or C.TIME_UNSET if the data + being loaded does not contain media samples.
+
+
startTimeUs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
STATE_BUFFERING - Static variable in interface com.google.android.exoplayer2.ExoPlayer
+
+
The player not able to immediately play from the current position.
+
+
STATE_CLOSED - Static variable in interface com.google.android.exoplayer2.drm.DrmSession
+
+
The session is closed.
+
+
STATE_DISABLED - Static variable in interface com.google.android.exoplayer2.Renderer
+
+
The renderer is disabled.
+
+
STATE_ENABLED - Static variable in interface com.google.android.exoplayer2.Renderer
+
+
The renderer is enabled but not started.
+
+
STATE_ENDED - Static variable in interface com.google.android.exoplayer2.ExoPlayer
+
+
The player has finished playing the media.
+
+
STATE_ERROR - Static variable in interface com.google.android.exoplayer2.drm.DrmSession
+
+
The session has encountered an error.
+
+
STATE_IDLE - Static variable in interface com.google.android.exoplayer2.ExoPlayer
+
+
The player does not have a source to play, so it is neither buffering nor ready to play.
+
+
STATE_OPENED - Static variable in interface com.google.android.exoplayer2.drm.DrmSession
+
+
The session is open, but does not yet have the keys required for decryption.
+
+
STATE_OPENED_WITH_KEYS - Static variable in interface com.google.android.exoplayer2.drm.DrmSession
+
+
The session is open and has the keys required for decryption.
+
+
STATE_OPENING - Static variable in interface com.google.android.exoplayer2.drm.DrmSession
+
+
The session is being opened.
+
+
STATE_READY - Static variable in interface com.google.android.exoplayer2.ExoPlayer
+
+
The player is able to immediately play from the current position.
+
+
STATE_STARTED - Static variable in interface com.google.android.exoplayer2.Renderer
+
+
The renderer is started.
+
+
STEREO_MODE_LEFT_RIGHT - Static variable in class com.google.android.exoplayer2.C
+
+
Indicates Left-Right stereo layout, used with 360/3D/VR videos.
+
+
STEREO_MODE_MONO - Static variable in class com.google.android.exoplayer2.C
+
+
Indicates Monoscopic stereo layout, used with 360/3D/VR videos.
+
+
STEREO_MODE_TOP_BOTTOM - Static variable in class com.google.android.exoplayer2.C
+
+
Indicates Top-Bottom stereo layout, used with 360/3D/VR videos.
+
+
stereoMode - Variable in class com.google.android.exoplayer2.Format
+
+
The stereo layout for 360/3D/VR video, or Format.NO_VALUE if not applicable.
+
+
stop() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
stop() - Method in interface com.google.android.exoplayer2.ExoPlayer
+
+
Stops playback.
+
+
stop() - Method in interface com.google.android.exoplayer2.Renderer
+
+
Stops the renderer, transitioning it to the Renderer.STATE_ENABLED state.
+
+
stop() - Method in class com.google.android.exoplayer2.SimpleExoPlayer
+
 
+
stop() - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
+
+
Stops periodic updates of the TextView.
+
+
stop() - Method in class com.google.android.exoplayer2.util.StandaloneMediaClock
+
+
Stops the clock.
+
+
StreamElement(String, String, int, String, long, String, int, int, int, int, String, Format[], List<Long>, long) - Constructor for class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
streamElements - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
+
The contained stream elements.
+
+
StreamingDrmSessionManager<T extends ExoMediaCrypto> - Class in com.google.android.exoplayer2.drm
+
+
A DrmSessionManager that supports streaming playbacks using MediaDrm.
+
+
StreamingDrmSessionManager(UUID, ExoMediaDrm<T>, MediaDrmCallback, HashMap<String, String>, Handler, StreamingDrmSessionManager.EventListener) - Constructor for class com.google.android.exoplayer2.drm.StreamingDrmSessionManager
+
 
+
StreamingDrmSessionManager.EventListener - Interface in com.google.android.exoplayer2.drm
+
+
Listener of StreamingDrmSessionManager events.
+
+
streamType - Variable in class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.EsInfo
+
 
+
SubripDecoder - Class in com.google.android.exoplayer2.text.subrip
+
+
A SimpleSubtitleDecoder for SubRip.
+
+
SubripDecoder() - Constructor for class com.google.android.exoplayer2.text.subrip.SubripDecoder
+
 
+
subsampleOffsetUs - Variable in class com.google.android.exoplayer2.Format
+
+
For samples that contain subsamples, this is an offset that should be added to subsample + timestamps.
+
+
subsampleOffsetUs - Variable in class com.google.android.exoplayer2.text.SubtitleInputBuffer
+
+
An offset that must be added to the subtitle's event times after it's been decoded, or + Format.OFFSET_SAMPLE_RELATIVE if DecoderInputBuffer.timeUs should be added.
+
+
Subtitle - Interface in com.google.android.exoplayer2.text
+
+
A subtitle consisting of timed Cues.
+
+
SubtitleDecoder - Interface in com.google.android.exoplayer2.text
+
+ +
+
SubtitleDecoderException - Exception in com.google.android.exoplayer2.text
+
+
Thrown when an error occurs decoding subtitle data.
+
+
SubtitleDecoderException(String) - Constructor for exception com.google.android.exoplayer2.text.SubtitleDecoderException
+
 
+
SubtitleDecoderException(String, Throwable) - Constructor for exception com.google.android.exoplayer2.text.SubtitleDecoderException
+
 
+
SubtitleDecoderFactory - Interface in com.google.android.exoplayer2.text
+
+
A factory for SubtitleDecoder instances.
+
+
SubtitleInputBuffer - Class in com.google.android.exoplayer2.text
+
+ +
+
SubtitleInputBuffer() - Constructor for class com.google.android.exoplayer2.text.SubtitleInputBuffer
+
 
+
SubtitleOutputBuffer - Class in com.google.android.exoplayer2.text
+
+
Base class for SubtitleDecoder output buffers.
+
+
SubtitleOutputBuffer() - Constructor for class com.google.android.exoplayer2.text.SubtitleOutputBuffer
+
 
+
subtitles - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
+
 
+
SubtitleView - Class in com.google.android.exoplayer2.ui
+
+
A view for displaying subtitle Cues.
+
+
SubtitleView(Context) - Constructor for class com.google.android.exoplayer2.ui.SubtitleView
+
 
+
SubtitleView(Context, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.SubtitleView
+
 
+
subType - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
suggestedPresentationDelay - Variable in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
supportsEncoding(int) - Method in class com.google.android.exoplayer2.audio.AudioCapabilities
+
+
Returns whether this device supports playback of the specified audio encoding.
+
+
supportsFormat(MediaCodecSelector, Format) - Method in class com.google.android.exoplayer2.audio.MediaCodecAudioRenderer
+
 
+
supportsFormat(Format) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
supportsFormat(MediaCodecSelector, Format) - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
+
Returns the extent to which the renderer is capable of supporting a given format.
+
+
supportsFormat(Format) - Method in class com.google.android.exoplayer2.metadata.MetadataRenderer
+
 
+
supportsFormat(Format) - Method in interface com.google.android.exoplayer2.RendererCapabilities
+
+
Returns the extent to which the Renderer supports a given format.
+
+
supportsFormat(Format) - Method in interface com.google.android.exoplayer2.text.SubtitleDecoderFactory
+
+
Returns whether the factory is able to instantiate a SubtitleDecoder for the given + Format.
+
+
supportsFormat(Format) - Method in class com.google.android.exoplayer2.text.TextRenderer
+
 
+
supportsFormat(MediaCodecSelector, Format) - Method in class com.google.android.exoplayer2.video.MediaCodecVideoRenderer
+
 
+
supportsMixedMimeTypeAdaptation() - Method in class com.google.android.exoplayer2.BaseRenderer
+
 
+
supportsMixedMimeTypeAdaptation() - Method in class com.google.android.exoplayer2.mediacodec.MediaCodecRenderer
+
 
+
supportsMixedMimeTypeAdaptation() - Method in interface com.google.android.exoplayer2.RendererCapabilities
+
+
Returns the extent to which the Renderer supports adapting between supported formats + that have different mime types.
+
+
SystemClock - Class in com.google.android.exoplayer2.util
+
+
The standard implementation of Clock.
+
+
SystemClock() - Constructor for class com.google.android.exoplayer2.util.SystemClock
+
 
+
+ + + +

T

+
+
tagDataSize - Variable in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
tagTimestampUs - Variable in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
tagType - Variable in class com.google.android.exoplayer2.extractor.flv.FlvExtractor
+
 
+
target - Variable in class com.google.android.exoplayer2.ExoPlayer.ExoPlayerMessage
+
+
The target to receive the message.
+
+
targetDurationSecs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
TeeDataSource - Class in com.google.android.exoplayer2.upstream
+
+
Tees data into a DataSink as the data is read.
+
+
TeeDataSource(DataSource, DataSink) - Constructor for class com.google.android.exoplayer2.upstream.TeeDataSource
+
 
+
text - Variable in class com.google.android.exoplayer2.text.Cue
+
+
The cue text.
+
+
TEXT_VTT - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
textAlignment - Variable in class com.google.android.exoplayer2.text.Cue
+
+
The alignment of the cue text within the cue box, or null if the alignment is undefined.
+
+
textFormats - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
+
 
+
TextInformationFrame - Class in com.google.android.exoplayer2.metadata.id3
+
+
Text information ("T000" - "TZZZ", excluding "TXXX") ID3 frame.
+
+
TextInformationFrame(String, String) - Constructor for class com.google.android.exoplayer2.metadata.id3.TextInformationFrame
+
 
+
TextRenderer - Class in com.google.android.exoplayer2.text
+
+
A renderer for text.
+
+
TextRenderer(TextRenderer.Output, Looper) - Constructor for class com.google.android.exoplayer2.text.TextRenderer
+
 
+
TextRenderer(TextRenderer.Output, Looper, SubtitleDecoderFactory) - Constructor for class com.google.android.exoplayer2.text.TextRenderer
+
 
+
TextRenderer.Output - Interface in com.google.android.exoplayer2.text
+
+
Receives output from a TextRenderer.
+
+
TIME_END_OF_SOURCE - Static variable in class com.google.android.exoplayer2.C
+
+
Special constant representing a time corresponding to the end of a source.
+
+
TIME_UNSET - Static variable in class com.google.android.exoplayer2.C
+
+
Special constant representing an unset or unknown time or duration.
+
+
Timeline - Class in com.google.android.exoplayer2
+
+
A representation of media currently available for playback.
+
+
Timeline() - Constructor for class com.google.android.exoplayer2.Timeline
+
 
+
Timeline.Period - Class in com.google.android.exoplayer2
+
+
Holds information about a period in a Timeline.
+
+
Timeline.Window - Class in com.google.android.exoplayer2
+
+
Holds information about a window in a Timeline.
+
+
timescale - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
The track timescale, defined as the number of time units that pass in one second.
+
+
timescale - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
timeShiftBufferDepth - Variable in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
TimestampAdjuster - Class in com.google.android.exoplayer2.extractor
+
+
Offsets timestamps according to an initial sample timestamp offset.
+
+
TimestampAdjuster(long) - Constructor for class com.google.android.exoplayer2.extractor.TimestampAdjuster
+
 
+
TimestampAdjusterProvider - Class in com.google.android.exoplayer2.source.hls
+
+
Provides TimestampAdjuster instances for use during HLS playbacks.
+
+
TimestampAdjusterProvider() - Constructor for class com.google.android.exoplayer2.source.hls.TimestampAdjusterProvider
+
 
+
timesUs - Variable in class com.google.android.exoplayer2.extractor.ChunkIndex
+
+
The start time of each chunk, in microseconds.
+
+
timeUs - Variable in class com.google.android.exoplayer2.decoder.DecoderInputBuffer
+
+
The time at which the sample should be presented.
+
+
timeUs - Variable in class com.google.android.exoplayer2.decoder.OutputBuffer
+
+
The presentation timestamp for the buffer, in microseconds.
+
+
toArray() - Method in class com.google.android.exoplayer2.util.LongArray
+
+
Copies the current values into a newly allocated primitive array.
+
+
toArray(List<Integer>) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Converts a list of integers to a primitive array.
+
+
toByteArray(InputStream) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Converts the entirety of an InputStream to a byte array.
+
+
toLowerInvariant(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Converts text to lower case using Locale.US.
+
+
toString() - Method in class com.google.android.exoplayer2.audio.AudioCapabilities
+
 
+
toString() - Method in class com.google.android.exoplayer2.Format
+
 
+
toString() - Method in class com.google.android.exoplayer2.source.dash.manifest.UtcTimingElement
+
 
+
toString() - Method in class com.google.android.exoplayer2.upstream.DataSpec
+
 
+
totalSamples - Variable in class com.google.android.exoplayer2.util.FlacStreamInfo
+
 
+
touch() - Method in class com.google.android.exoplayer2.upstream.cache.CacheSpan
+
+
Renames the file underlying this cache span to update its last access time.
+
+
TRACE_ENABLED - Static variable in interface com.google.android.exoplayer2.ExoPlayerLibraryInfo
+
+
Whether the library was compiled with TraceUtil + trace enabled.
+
+
TraceUtil - Class in com.google.android.exoplayer2.util
+
+
Calls through to Trace methods on supported API levels.
+
+
track(int) - Method in interface com.google.android.exoplayer2.extractor.ExtractorOutput
+
+
Called by the Extractor to get the TrackOutput for a specific track.
+
+
Track - Class in com.google.android.exoplayer2.extractor.mp4
+
+
Encapsulates information describing an MP4 track.
+
+
Track(int, int, long, long, long, Format, int, TrackEncryptionBox[], int, long[], long[]) - Constructor for class com.google.android.exoplayer2.extractor.mp4.Track
+
 
+
track(int) - Method in class com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper
+
 
+
Track.Transformation - Annotation Type in com.google.android.exoplayer2.extractor.mp4
+
+
The transformation to apply to samples in the track, if any.
+
+
TRACK_TYPE_AUDIO - Static variable in class com.google.android.exoplayer2.C
+
+
A type constant for audio tracks.
+
+
TRACK_TYPE_CUSTOM_BASE - Static variable in class com.google.android.exoplayer2.C
+
+
Applications or extensions may define custom TRACK_TYPE_* constants greater than or + equal to this value.
+
+
TRACK_TYPE_DEFAULT - Static variable in class com.google.android.exoplayer2.C
+
+
A type constant for tracks of some default type, where the type itself is unknown.
+
+
TRACK_TYPE_METADATA - Static variable in class com.google.android.exoplayer2.C
+
+
A type constant for metadata tracks.
+
+
TRACK_TYPE_TEXT - Static variable in class com.google.android.exoplayer2.C
+
+
A type constant for text tracks.
+
+
TRACK_TYPE_UNKNOWN - Static variable in class com.google.android.exoplayer2.C
+
+
A type constant for tracks of unknown type.
+
+
TRACK_TYPE_VIDEO - Static variable in class com.google.android.exoplayer2.C
+
+
A type constant for video tracks.
+
+
TrackEncryptionBox - Class in com.google.android.exoplayer2.extractor.mp4
+
+
Encapsulates information parsed from a track encryption (tenc) box or sample group description + (sgpd) box in an MP4 stream.
+
+
TrackEncryptionBox(boolean, int, byte[]) - Constructor for class com.google.android.exoplayer2.extractor.mp4.TrackEncryptionBox
+
 
+
trackFormat - Variable in class com.google.android.exoplayer2.source.chunk.Chunk
+
+
The format of the track to which this chunk belongs, or null if the chunk does not belong to + a track.
+
+
TrackGroup - Class in com.google.android.exoplayer2.source
+
+
Defines a group of tracks exposed by a MediaPeriod.
+
+
TrackGroup(Format...) - Constructor for class com.google.android.exoplayer2.source.TrackGroup
+
 
+
TrackGroupArray - Class in com.google.android.exoplayer2.source
+
+
An array of TrackGroups exposed by a MediaPeriod.
+
+
TrackGroupArray(TrackGroup...) - Constructor for class com.google.android.exoplayer2.source.TrackGroupArray
+
 
+
TrackIdGenerator(int, int) - Constructor for class com.google.android.exoplayer2.extractor.ts.ElementaryStreamReader.TrackIdGenerator
+
 
+
TrackOutput - Interface in com.google.android.exoplayer2.extractor
+
+
Receives track level data extracted by an Extractor.
+
+
tracks - Variable in class com.google.android.exoplayer2.trackselection.BaseTrackSelection
+
+
The indices of the selected tracks in BaseTrackSelection.group, in order of decreasing bandwidth.
+
+
tracks - Variable in class com.google.android.exoplayer2.trackselection.MappingTrackSelector.SelectionOverride
+
 
+
TrackSelection - Interface in com.google.android.exoplayer2.trackselection
+
+
A track selection consisting of a static subset of selected tracks belonging to a + TrackGroup, and a possibly varying individual selected track from the subset.
+
+
TrackSelection.Factory - Interface in com.google.android.exoplayer2.trackselection
+
+
Factory for TrackSelection instances.
+
+
trackSelectionData - Variable in class com.google.android.exoplayer2.source.chunk.Chunk
+
+
Optional data associated with the selection of the track to which this chunk belongs.
+
+
trackSelectionReason - Variable in class com.google.android.exoplayer2.source.chunk.Chunk
+
+
One of the C SELECTION_REASON_* constants if the chunk belongs to a track.
+
+
TrackSelections<T> - Class in com.google.android.exoplayer2.trackselection
+
+
The result of a TrackSelector operation.
+
+
TrackSelections(T, TrackSelection...) - Constructor for class com.google.android.exoplayer2.trackselection.TrackSelections
+
 
+
TrackSelector<T> - Class in com.google.android.exoplayer2.trackselection
+
+
Selects tracks to be consumed by available renderers.
+
+
TrackSelector(Handler) - Constructor for class com.google.android.exoplayer2.trackselection.TrackSelector
+
 
+
TrackSelector.EventListener<T> - Interface in com.google.android.exoplayer2.trackselection
+
+
Listener of TrackSelector events.
+
+
TrackSelector.InvalidationListener - Interface in com.google.android.exoplayer2.trackselection
+
+
Notified when previous selections by a TrackSelector are no longer valid.
+
+
TransferListener<S> - Interface in com.google.android.exoplayer2.upstream
+
+
A listener of data transfer events.
+
+
TRANSFORMATION_CEA608_CDAT - Static variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
A transformation for caption samples in cdat atoms.
+
+
TRANSFORMATION_NONE - Static variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+
A no-op sample transformation.
+
+
translateOffset(int) - Method in class com.google.android.exoplayer2.upstream.Allocation
+
+
Translates a zero-based offset into the allocation to the corresponding Allocation.data offset.
+
+
trim() - Method in interface com.google.android.exoplayer2.upstream.Allocator
+
+
Hints to the allocator that it should make a best effort to release any excess + Allocations.
+
+
trim() - Method in class com.google.android.exoplayer2.upstream.DefaultAllocator
+
 
+
TS_STREAM_TYPE_AAC - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_AC3 - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_DTS - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_E_AC3 - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_H262 - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_H264 - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_H265 - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_HDMV_DTS - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_ID3 - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_MPA - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TS_STREAM_TYPE_MPA_LSF - Static variable in class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TsExtractor - Class in com.google.android.exoplayer2.extractor.ts
+
+
Facilitates the extraction of data from the MPEG-2 TS container format.
+
+
TsExtractor() - Constructor for class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TsExtractor(TimestampAdjuster) - Constructor for class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TsExtractor(TimestampAdjuster, ElementaryStreamReader.Factory, boolean) - Constructor for class com.google.android.exoplayer2.extractor.ts.TsExtractor
+
 
+
TtmlDecoder - Class in com.google.android.exoplayer2.text.ttml
+
+
A SimpleSubtitleDecoder for TTML supporting the DFXP presentation profile.
+
+
TtmlDecoder() - Constructor for class com.google.android.exoplayer2.text.ttml.TtmlDecoder
+
 
+
Tx3gDecoder - Class in com.google.android.exoplayer2.text.tx3g
+
+ +
+
Tx3gDecoder() - Constructor for class com.google.android.exoplayer2.text.tx3g.Tx3gDecoder
+
 
+
TxxxFrame - Class in com.google.android.exoplayer2.metadata.id3
+
+
TXXX (User defined text information) ID3 frame.
+
+
TxxxFrame(String, String) - Constructor for class com.google.android.exoplayer2.metadata.id3.TxxxFrame
+
 
+
type - Variable in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
The type of the playback failure.
+
+
type - Variable in class com.google.android.exoplayer2.extractor.mp4.Track
+
+ +
+
type - Variable in class com.google.android.exoplayer2.source.chunk.Chunk
+
+
The type of the chunk.
+
+
type - Variable in class com.google.android.exoplayer2.source.dash.manifest.AdaptationSet
+
 
+
type - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
+
 
+
type - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement
+
 
+
type - Variable in exception com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
+
 
+
type - Variable in class com.google.android.exoplayer2.upstream.ParsingLoadable
+
+
The type of the data.
+
+
TYPE_CLOSE - Static variable in exception com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
+
 
+
TYPE_DASH - Static variable in class com.google.android.exoplayer2.C
+
+
Value returned by Util.inferContentType(String) for DASH manifests.
+
+
TYPE_HLS - Static variable in class com.google.android.exoplayer2.C
+
+
Value returned by Util.inferContentType(String) for HLS manifests.
+
+
TYPE_MASTER - Static variable in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
+
 
+
TYPE_MEDIA - Static variable in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
+
 
+
TYPE_OPEN - Static variable in exception com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
+
 
+
TYPE_OTHER - Static variable in class com.google.android.exoplayer2.C
+
+
Value returned by Util.inferContentType(String) for files other than DASH, HLS or + Smooth Streaming manifests.
+
+
TYPE_READ - Static variable in exception com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException
+
 
+
TYPE_RENDERER - Static variable in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
The error occurred in a Renderer.
+
+
TYPE_SOURCE - Static variable in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
The error occurred loading data from a MediaSource.
+
+
TYPE_SS - Static variable in class com.google.android.exoplayer2.C
+
+
Value returned by Util.inferContentType(String) for Smooth Streaming manifests.
+
+
TYPE_UNEXPECTED - Static variable in exception com.google.android.exoplayer2.ExoPlaybackException
+
+
The error was an unexpected RuntimeException.
+
+
TYPE_UNSET - Static variable in class com.google.android.exoplayer2.text.Cue
+
+
An unset anchor or line type value.
+
+
typeface - Variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
The preferred typeface.
+
+
+ + + +

U

+
+
UdpDataSource - Class in com.google.android.exoplayer2.upstream
+
+
A UDP DataSource.
+
+
UdpDataSource(TransferListener<? super UdpDataSource>) - Constructor for class com.google.android.exoplayer2.upstream.UdpDataSource
+
 
+
UdpDataSource(TransferListener<? super UdpDataSource>, int) - Constructor for class com.google.android.exoplayer2.upstream.UdpDataSource
+
 
+
UdpDataSource(TransferListener<? super UdpDataSource>, int, int) - Constructor for class com.google.android.exoplayer2.upstream.UdpDataSource
+
 
+
UdpDataSource.UdpDataSourceException - Exception in com.google.android.exoplayer2.upstream
+
+
Thrown when an error is encountered when trying to read from a UdpDataSource.
+
+
UdpDataSourceException(IOException) - Constructor for exception com.google.android.exoplayer2.upstream.UdpDataSource.UdpDataSourceException
+
 
+
uid - Variable in class com.google.android.exoplayer2.Timeline.Period
+
+
A unique identifier for the period.
+
+
unescapeFileName(String) - Static method in class com.google.android.exoplayer2.util.Util
+
+
Unescapes an escaped file or directory name back to its original value.
+
+
unescapeStream(byte[], int) - Static method in class com.google.android.exoplayer2.util.NalUnitUtil
+
+
Unescapes data up to the specified limit, replacing occurrences of [0, 0, 3] with + [0, 0].
+
+
UnexpectedLoaderException(Exception) - Constructor for exception com.google.android.exoplayer2.upstream.Loader.UnexpectedLoaderException
+
 
+
UnrecognizedInputFormatException(Extractor[]) - Constructor for exception com.google.android.exoplayer2.source.ExtractorMediaSource.UnrecognizedInputFormatException
+
 
+
unregister() - Method in class com.google.android.exoplayer2.audio.AudioCapabilitiesReceiver
+
+
Unregisters the receiver, meaning it will no longer notify the listener when audio capability + changes occur.
+
+
Unseekable(long) - Constructor for class com.google.android.exoplayer2.extractor.SeekMap.Unseekable
+
 
+
UNSET_ID - Static variable in class com.google.android.exoplayer2.source.dash.manifest.AdaptationSet
+
 
+
UNSET_LOOKAHEAD - Static variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest
+
 
+
UnsupportedDrmException - Exception in com.google.android.exoplayer2.drm
+
+
Thrown when the requested DRM scheme is not supported.
+
+
UnsupportedDrmException(int) - Constructor for exception com.google.android.exoplayer2.drm.UnsupportedDrmException
+
 
+
UnsupportedDrmException(int, Exception) - Constructor for exception com.google.android.exoplayer2.drm.UnsupportedDrmException
+
 
+
UnsupportedDrmException.Reason - Annotation Type in com.google.android.exoplayer2.drm
+
+
The reason for the exception.
+
+
updateManifest(DashManifest, int) - Method in interface com.google.android.exoplayer2.source.dash.DashChunkSource
+
 
+
updateManifest(DashManifest, int) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource
+
 
+
updateManifest(SsManifest) - Method in class com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
+
 
+
updateManifest(SsManifest) - Method in interface com.google.android.exoplayer2.source.smoothstreaming.SsChunkSource
+
 
+
updateRepresentation(long, Representation) - Method in class com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.RepresentationHolder
+
 
+
updateSelectedTrack(long) - Method in class com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection
+
 
+
updateSelectedTrack(long) - Method in class com.google.android.exoplayer2.trackselection.FixedTrackSelection
+
 
+
updateSelectedTrack(long) - Method in class com.google.android.exoplayer2.trackselection.RandomTrackSelection
+
 
+
updateSelectedTrack(long) - Method in interface com.google.android.exoplayer2.trackselection.TrackSelection
+
+
Updates the selected track.
+
+
upstreamDiscarded(int, long, long) - Method in class com.google.android.exoplayer2.source.AdaptiveMediaSourceEventListener.EventDispatcher
+
 
+
uri - Variable in class com.google.android.exoplayer2.source.dash.manifest.Representation.SingleSegmentRepresentation
+
+
The uri of the single segment.
+
+
uri - Variable in class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SingleSegmentBase
+
+
The uri of the segment.
+
+
uri - Variable in class com.google.android.exoplayer2.upstream.DataSpec
+
+
The source from which data should be read.
+
+
UriUtil - Class in com.google.android.exoplayer2.util
+
+
Utility methods for manipulating URIs.
+
+
url - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
+
 
+
url - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
+
 
+
UrlTemplate - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
A template from which URLs can be built.
+
+
USE_TRACK_COLOR_SETTINGS - Static variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
Use color setting specified by the track and fallback to default caption style.
+
+
usToMs(long) - Static method in class com.google.android.exoplayer2.C
+
+
Converts a time in microseconds to the corresponding time in milliseconds, preserving + C.TIME_UNSET values.
+
+
usToPts(long) - Static method in class com.google.android.exoplayer2.extractor.TimestampAdjuster
+
+
Converts a value in microseconds to the corresponding values in MPEG-2 timestamp units.
+
+
utcTiming - Variable in class com.google.android.exoplayer2.source.dash.manifest.DashManifest
+
 
+
UtcTimingElement - Class in com.google.android.exoplayer2.source.dash.manifest
+
+
Represents a UTCTiming element.
+
+
UtcTimingElement(String, String) - Constructor for class com.google.android.exoplayer2.source.dash.manifest.UtcTimingElement
+
 
+
UTF8_NAME - Static variable in class com.google.android.exoplayer2.C
+
+
The name of the UTF-8 charset.
+
+
Util - Class in com.google.android.exoplayer2.util
+
+
Miscellaneous utility methods.
+
+
uuid - Variable in class com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.ProtectionElement
+
 
+
UUID_NIL - Static variable in class com.google.android.exoplayer2.C
+
+
The Nil UUID as defined by + RFC4122.
+
+
+ + + +

V

+
+
validateWebvttHeaderLine(ParsableByteArray) - Static method in class com.google.android.exoplayer2.text.webvtt.WebvttParserUtil
+
+
Reads and validates the first line of a WebVTT file.
+
+
value - Variable in class com.google.android.exoplayer2.metadata.id3.TxxxFrame
+
 
+
value - Variable in class com.google.android.exoplayer2.source.dash.manifest.UtcTimingElement
+
 
+
variants - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
+
 
+
VERSION - Static variable in interface com.google.android.exoplayer2.ExoPlayerLibraryInfo
+
+
The version of the library, expressed as a string.
+
+
version - Variable in class com.google.android.exoplayer2.extractor.MpegAudioHeader
+
+
MPEG audio header version.
+
+
version - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
+
 
+
VERSION_INT - Static variable in interface com.google.android.exoplayer2.ExoPlayerLibraryInfo
+
+
The version of the library, expressed as an integer.
+
+
VIDEO_H263 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_H264 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_H265 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_MP4 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_MP4V - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_MPEG2 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_STREAM - Static variable in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
VIDEO_STREAM_MASK - Static variable in class com.google.android.exoplayer2.extractor.ts.PsExtractor
+
 
+
VIDEO_UNKNOWN - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_VC1 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_VP8 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_VP9 - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
VIDEO_WEBM - Static variable in class com.google.android.exoplayer2.util.MimeTypes
+
 
+
videoFormat - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
+
 
+
VideoFrameReleaseTimeHelper - Class in com.google.android.exoplayer2.video
+
+
Makes a best effort to adjust frame release timestamps for a smoother visual result.
+
+
VideoFrameReleaseTimeHelper() - Constructor for class com.google.android.exoplayer2.video.VideoFrameReleaseTimeHelper
+
+
Constructs an instance that smoothes frame release timestamps but does not align them with + the default display's vsync signal.
+
+
VideoFrameReleaseTimeHelper(Context) - Constructor for class com.google.android.exoplayer2.video.VideoFrameReleaseTimeHelper
+
+
Constructs an instance that smoothes frame release timestamps and aligns them with the default + display's vsync signal.
+
+
VideoRendererEventListener - Interface in com.google.android.exoplayer2.video
+
+
Listener of video Renderer events.
+
+
VideoRendererEventListener.EventDispatcher - Class in com.google.android.exoplayer2.video
+
+
Dispatches events to a VideoRendererEventListener.
+
+
videoSizeChanged(int, int, int, float) - Method in class com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
+
+ +
+
viewportHeight - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
viewportWidth - Variable in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
 
+
+ + + +

W

+
+
waitUntilInitialized() - Method in class com.google.android.exoplayer2.extractor.TimestampAdjuster
+
+
Blocks the calling thread until this adjuster is initialized.
+
+
warmDecoderInfoCache(String, boolean) - Static method in class com.google.android.exoplayer2.mediacodec.MediaCodecUtil
+
+
Optional call to warm the codec cache for a given mime type.
+
+
WavExtractor - Class in com.google.android.exoplayer2.extractor.wav
+
+
Extractor to extract samples from a WAV byte stream.
+
+
WavExtractor() - Constructor for class com.google.android.exoplayer2.extractor.wav.WavExtractor
+
 
+
WebvttDecoder - Class in com.google.android.exoplayer2.text.webvtt
+
+
A SimpleSubtitleDecoder for WebVTT.
+
+
WebvttDecoder() - Constructor for class com.google.android.exoplayer2.text.webvtt.WebvttDecoder
+
 
+
WebvttParserUtil - Class in com.google.android.exoplayer2.text.webvtt
+
+
Utility methods for parsing WebVTT data.
+
+
WIDEVINE_UUID - Static variable in class com.google.android.exoplayer2.C
+
+
UUID for the Widevine DRM scheme.
+
+
width - Variable in class com.google.android.exoplayer2.Format
+
+
The width of the video in pixels, or Format.NO_VALUE if unknown or not applicable.
+
+
width - Variable in class com.google.android.exoplayer2.util.NalUnitUtil.SpsData
+
 
+
width - Variable in class com.google.android.exoplayer2.video.AvcConfig
+
 
+
Window() - Constructor for class com.google.android.exoplayer2.Timeline.Window
+
 
+
windowColor - Variable in class com.google.android.exoplayer2.text.CaptionStyleCompat
+
+
The preferred window color.
+
+
windowIndex - Variable in class com.google.android.exoplayer2.Timeline.Period
+
+
The index of the window to which this period belongs.
+
+
windowStartTimeMs - Variable in class com.google.android.exoplayer2.Timeline.Window
+
+
The windows start time in milliseconds since the epoch, or C.TIME_UNSET if unknown or + not applicable.
+
+
withAllowMixedMimeAdaptiveness(boolean) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Returns a DefaultTrackSelector.Parameters instance with the provided mixed mime adaptiveness allowance.
+
+
withAllowNonSeamlessAdaptiveness(boolean) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Returns a DefaultTrackSelector.Parameters instance with the provided seamless adaptiveness allowance.
+
+
withExceedVideoConstraintsIfNecessary(boolean) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Returns a DefaultTrackSelector.Parameters instance with the provided + exceedVideoConstraintsIfNecessary value.
+
+
withMaxVideoSize(int, int) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Returns a DefaultTrackSelector.Parameters instance with the provided max video size.
+
+
withMaxVideoSizeSd() - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Equivalent to withMaxVideoSize(1279, 719).
+
+
withoutVideoSizeConstraints() - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Equivalent to withMaxVideoSize(Integer.MAX_VALUE, Integer.MAX_VALUE).
+
+
withoutViewportSizeConstraints() - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Equivalent to withViewportSize(Integer.MAX_VALUE, Integer.MAX_VALUE, true).
+
+
withPreferredAudioLanguage(String) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Returns a DefaultTrackSelector.Parameters instance with the provided preferred language for audio and + forced text tracks.
+
+
withPreferredTextLanguage(String) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Returns a DefaultTrackSelector.Parameters instance with the provided preferred language for text tracks.
+
+
withViewportSize(int, int, boolean) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Returns a DefaultTrackSelector.Parameters instance with the provided viewport size.
+
+
withViewportSizeFromContext(Context, boolean) - Method in class com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters
+
+
Returns a DefaultTrackSelector.Parameters instance where the viewport size is obtained from the provided + Context.
+
+
write(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.ByteArrayDataSink
+
 
+
write(byte[], int, int) - Method in class com.google.android.exoplayer2.upstream.cache.CacheDataSink
+
 
+
write(byte[], int, int) - Method in interface com.google.android.exoplayer2.upstream.DataSink
+
+
Consumes the provided data.
+
+
WriteException(int) - Constructor for exception com.google.android.exoplayer2.audio.AudioTrack.WriteException
+
 
+
writeToParcel(Parcel, int) - Method in class com.google.android.exoplayer2.drm.DrmInitData.SchemeData
+
 
+
writeToParcel(Parcel, int) - Method in class com.google.android.exoplayer2.drm.DrmInitData
+
 
+
writeToParcel(Parcel, int) - Method in class com.google.android.exoplayer2.Format
+
 
+
+ + + +

X

+
+
XmlPullParserUtil - Class in com.google.android.exoplayer2.util
+
+
XmlPullParser utility methods.
+
+
+A B C D E F G H I K L M N O P Q R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/ExoPlayer/JavaDoc/index.html b/ExoPlayer/JavaDoc/index.html new file mode 100644 index 00000000..a73f8c4a --- /dev/null +++ b/ExoPlayer/JavaDoc/index.html @@ -0,0 +1,74 @@ + + + + + +library API + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/ExoPlayer/JavaDoc/overview-frame.html b/ExoPlayer/JavaDoc/overview-frame.html new file mode 100644 index 00000000..c1fe584a --- /dev/null +++ b/ExoPlayer/JavaDoc/overview-frame.html @@ -0,0 +1,56 @@ + + + + + +Overview List (library API) + + + + + + +
+

Packages

+ +
+

 

+ + diff --git a/ExoPlayer/JavaDoc/overview-summary.html b/ExoPlayer/JavaDoc/overview-summary.html new file mode 100644 index 00000000..82c41208 --- /dev/null +++ b/ExoPlayer/JavaDoc/overview-summary.html @@ -0,0 +1,276 @@ + + + + + +Overview (library API) + + + + + + + + +
+ + + + + + + +
+ + +
+

library API

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
com.google.android.exoplayer2 
com.google.android.exoplayer2.audio 
com.google.android.exoplayer2.decoder 
com.google.android.exoplayer2.drm 
com.google.android.exoplayer2.extractor 
com.google.android.exoplayer2.extractor.flv 
com.google.android.exoplayer2.extractor.mkv 
com.google.android.exoplayer2.extractor.mp3 
com.google.android.exoplayer2.extractor.mp4 
com.google.android.exoplayer2.extractor.ogg 
com.google.android.exoplayer2.extractor.rawcc 
com.google.android.exoplayer2.extractor.ts 
com.google.android.exoplayer2.extractor.wav 
com.google.android.exoplayer2.mediacodec 
com.google.android.exoplayer2.metadata 
com.google.android.exoplayer2.metadata.id3 
com.google.android.exoplayer2.source 
com.google.android.exoplayer2.source.chunk 
com.google.android.exoplayer2.source.dash 
com.google.android.exoplayer2.source.dash.manifest 
com.google.android.exoplayer2.source.hls 
com.google.android.exoplayer2.source.hls.playlist 
com.google.android.exoplayer2.source.smoothstreaming 
com.google.android.exoplayer2.source.smoothstreaming.manifest 
com.google.android.exoplayer2.text 
com.google.android.exoplayer2.text.cea 
com.google.android.exoplayer2.text.subrip 
com.google.android.exoplayer2.text.ttml 
com.google.android.exoplayer2.text.tx3g 
com.google.android.exoplayer2.text.webvtt 
com.google.android.exoplayer2.trackselection 
com.google.android.exoplayer2.ui 
com.google.android.exoplayer2.upstream 
com.google.android.exoplayer2.upstream.cache 
com.google.android.exoplayer2.util 
com.google.android.exoplayer2.video 
+
+ +
+ + + + + + + +
+ + + + diff --git a/ExoPlayer/JavaDoc/overview-tree.html b/ExoPlayer/JavaDoc/overview-tree.html new file mode 100644 index 00000000..e11fc42d --- /dev/null +++ b/ExoPlayer/JavaDoc/overview-tree.html @@ -0,0 +1,657 @@ + + + + + +Class Hierarchy (library API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/ExoPlayer/JavaDoc/package-list b/ExoPlayer/JavaDoc/package-list new file mode 100644 index 00000000..5a37af6a --- /dev/null +++ b/ExoPlayer/JavaDoc/package-list @@ -0,0 +1,36 @@ +com.google.android.exoplayer2 +com.google.android.exoplayer2.audio +com.google.android.exoplayer2.decoder +com.google.android.exoplayer2.drm +com.google.android.exoplayer2.extractor +com.google.android.exoplayer2.extractor.flv +com.google.android.exoplayer2.extractor.mkv +com.google.android.exoplayer2.extractor.mp3 +com.google.android.exoplayer2.extractor.mp4 +com.google.android.exoplayer2.extractor.ogg +com.google.android.exoplayer2.extractor.rawcc +com.google.android.exoplayer2.extractor.ts +com.google.android.exoplayer2.extractor.wav +com.google.android.exoplayer2.mediacodec +com.google.android.exoplayer2.metadata +com.google.android.exoplayer2.metadata.id3 +com.google.android.exoplayer2.source +com.google.android.exoplayer2.source.chunk +com.google.android.exoplayer2.source.dash +com.google.android.exoplayer2.source.dash.manifest +com.google.android.exoplayer2.source.hls +com.google.android.exoplayer2.source.hls.playlist +com.google.android.exoplayer2.source.smoothstreaming +com.google.android.exoplayer2.source.smoothstreaming.manifest +com.google.android.exoplayer2.text +com.google.android.exoplayer2.text.cea +com.google.android.exoplayer2.text.subrip +com.google.android.exoplayer2.text.ttml +com.google.android.exoplayer2.text.tx3g +com.google.android.exoplayer2.text.webvtt +com.google.android.exoplayer2.trackselection +com.google.android.exoplayer2.ui +com.google.android.exoplayer2.upstream +com.google.android.exoplayer2.upstream.cache +com.google.android.exoplayer2.util +com.google.android.exoplayer2.video diff --git a/ExoPlayer/JavaDoc/script.js b/ExoPlayer/JavaDoc/script.js new file mode 100644 index 00000000..b3463569 --- /dev/null +++ b/ExoPlayer/JavaDoc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/ExoPlayer/JavaDoc/serialized-form.html b/ExoPlayer/JavaDoc/serialized-form.html new file mode 100644 index 00000000..9ba8158e --- /dev/null +++ b/ExoPlayer/JavaDoc/serialized-form.html @@ -0,0 +1,480 @@ + + + + + +Serialized Form (library API) + + + + + + + + + + + +
+

Serialized Form

+
+
+ +
+ + + + + + diff --git a/ExoPlayer/JavaDoc/stylesheet.css b/ExoPlayer/JavaDoc/stylesheet.css new file mode 100644 index 00000000..98055b22 --- /dev/null +++ b/ExoPlayer/JavaDoc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/ExoPlayer/Transforms/Metadata.xml b/ExoPlayer/Transforms/Metadata.xml index 406f29e6..7ed0f1e7 100644 --- a/ExoPlayer/Transforms/Metadata.xml +++ b/ExoPlayer/Transforms/Metadata.xml @@ -24,19 +24,19 @@ internal--> - SmoothStreamingManifest.SmoothStreamingProtectionElement + - protected + - com.google.android.exoplayer.text.Subtitle + - public + + + ExoPlayerChunk + ExoPlayerUtil + + internal + + public + public + public + public + + public + + protected + protected + protected + protected + + + + + Java.Lang.Object + + java.lang.Object + + + + + java.lang.Object + + + + com.google.android.exoplayer2.upstream.DataSource + + com.google.android.exoplayer2.trackselection.TrackSelection + com.google.android.exoplayer2.trackselection.TrackSelection + com.google.android.exoplayer2.trackselection.TrackSelection + com.google.android.exoplayer2.upstream.DataSource + com.google.android.exoplayer2.upstream.DataSource + + + + + + + + + + + + java.lang.Object + java.lang.Object + + + InvokeOnRenderedFirstFrame + InvokeOnRenderedFirstFrame + InvokeOnVideoSizeChanged + + InvokeOnVideoSizeChanged + + + + + InvokeSeekMap + + + InvokeSeekMap + + + + public + public + + + + + protected - ExoPlayerChunk - ExoPlayerUtil + java.lang.Object + + \ No newline at end of file diff --git a/ExoPlayer/packages.config b/ExoPlayer/packages.config new file mode 100644 index 00000000..a359693b --- /dev/null +++ b/ExoPlayer/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/nuspec/Xam.Plugins.Android.ExoPlayer.nuspec b/nuspec/Xam.Plugins.Android.ExoPlayer.nuspec index e2510b39..d7686901 100644 --- a/nuspec/Xam.Plugins.Android.ExoPlayer.nuspec +++ b/nuspec/Xam.Plugins.Android.ExoPlayer.nuspec @@ -2,7 +2,7 @@ Xam.Plugins.Android.ExoPlayer - 1.5.10 + 2.0.4 ExoPlayer Control for Xamarin.Android Martijn van Dijk Martijn van Dijk @@ -13,6 +13,11 @@ Xamarin bindings for ExoPlayer Xamarin bindings library for the Google ExoPlayer library xamarin, exoplayer, exo, monodroid, C#, xamarin.android, android, audio, media, player, streaming, mp3 + + + + +