mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix minor exoplayer.dev issues
PiperOrigin-RevId: 422349626
This commit is contained in:
parent
b3981be8b9
commit
085042d6aa
6 changed files with 25 additions and 25 deletions
|
|
@ -128,7 +128,7 @@ containing the same content at different bitrates.
|
||||||
An Android API for playing audio.
|
An Android API for playing audio.
|
||||||
|
|
||||||
For more information, see the
|
For more information, see the
|
||||||
[Javadoc](https://developer.android.com/reference/android/media/AudioTrack).
|
[Javadoc]({{ site.android_sdk }}/android/media/AudioTrack).
|
||||||
|
|
||||||
###### CDM
|
###### CDM
|
||||||
|
|
||||||
|
|
@ -137,7 +137,7 @@ decrypting [DRM](#drm) protected content. CDMs are accessed via Android’s
|
||||||
[`MediaDrm`](#mediadrm) API.
|
[`MediaDrm`](#mediadrm) API.
|
||||||
|
|
||||||
For more information, see the
|
For more information, see the
|
||||||
[Javadoc](https://developer.android.com/reference/android/media/MediaDrm).
|
[Javadoc]({{ site.android_sdk }}/android/media/MediaDrm).
|
||||||
|
|
||||||
###### IMA
|
###### IMA
|
||||||
|
|
||||||
|
|
@ -153,14 +153,14 @@ An Android API for accessing media [codecs](#codec) (i.e. encoder and decoder
|
||||||
components) in the platform.
|
components) in the platform.
|
||||||
|
|
||||||
For more information, see the
|
For more information, see the
|
||||||
[Javadoc](https://developer.android.com/reference/android/media/MediaCodec).
|
[Javadoc]({{ site.android_sdk }}/android/media/MediaCodec).
|
||||||
|
|
||||||
###### MediaDrm
|
###### MediaDrm
|
||||||
|
|
||||||
An Android API for accessing [CDMs](#cdm) in the platform.
|
An Android API for accessing [CDMs](#cdm) in the platform.
|
||||||
|
|
||||||
For more information, see the
|
For more information, see the
|
||||||
[Javadoc](https://developer.android.com/reference/android/media/MediaDrm).
|
[Javadoc]({{ site.android_sdk }}/android/media/MediaDrm).
|
||||||
|
|
||||||
###### Audio offload
|
###### Audio offload
|
||||||
|
|
||||||
|
|
@ -181,7 +181,7 @@ For more information, see the
|
||||||
|
|
||||||
###### Surface
|
###### Surface
|
||||||
|
|
||||||
See the [Javadoc](https://developer.android.com/reference/android/view/Surface)
|
See the [Javadoc]({{ site.android_sdk }}/android/view/Surface)
|
||||||
and the
|
and the
|
||||||
[Android graphics documentation](https://source.android.com/devices/graphics/arch-sh).
|
[Android graphics documentation](https://source.android.com/devices/graphics/arch-sh).
|
||||||
|
|
||||||
|
|
@ -212,14 +212,14 @@ transfers. In [adaptive streaming](#adaptive-streaming), bandwidth estimates can
|
||||||
be used to select between different bitrate [tracks](#track) during playback.
|
be used to select between different bitrate [tracks](#track) during playback.
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/upstream/BandwidthMeter.html).
|
[Javadoc]({{ site.exo_sdk }}/upstream/BandwidthMeter.html).
|
||||||
|
|
||||||
###### DataSource
|
###### DataSource
|
||||||
|
|
||||||
Component for requesting data (e.g. over HTTP, from a local file, etc).
|
Component for requesting data (e.g. over HTTP, from a local file, etc).
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/upstream/DataSource.html).
|
[Javadoc]({{ site.exo_sdk }}/upstream/DataSource.html).
|
||||||
|
|
||||||
###### Extractor
|
###### Extractor
|
||||||
|
|
||||||
|
|
@ -228,7 +228,7 @@ Component that parses a media [container](#container) format, outputting
|
||||||
belonging to each track suitable for consumption by a decoder.
|
belonging to each track suitable for consumption by a decoder.
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/extractor/Extractor.html).
|
[Javadoc]({{ site.exo_sdk }}/extractor/Extractor.html).
|
||||||
|
|
||||||
###### LoadControl
|
###### LoadControl
|
||||||
|
|
||||||
|
|
@ -236,7 +236,7 @@ Component that decides when to start and stop loading, and when to start
|
||||||
playback.
|
playback.
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/LoadControl.html).
|
[Javadoc]({{ site.exo_sdk }}/LoadControl.html).
|
||||||
|
|
||||||
###### MediaSource
|
###### MediaSource
|
||||||
|
|
||||||
|
|
@ -245,7 +245,7 @@ Provides high-level information about the structure of media (as a
|
||||||
(corresponding to periods of the `Timeline`) for playback.
|
(corresponding to periods of the `Timeline`) for playback.
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/source/MediaSource.html).
|
[Javadoc]({{ site.exo_sdk }}/source/MediaSource.html).
|
||||||
|
|
||||||
###### MediaPeriod
|
###### MediaPeriod
|
||||||
|
|
||||||
|
|
@ -257,7 +257,7 @@ media are loaded and when loading starts and stops are made by the
|
||||||
respectively.
|
respectively.
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/source/MediaPeriod.html).
|
[Javadoc]({{ site.exo_sdk }}/source/MediaPeriod.html).
|
||||||
|
|
||||||
###### Renderer
|
###### Renderer
|
||||||
|
|
||||||
|
|
@ -266,7 +266,7 @@ and [`AudioTrack`](#audiotrack) are the standard Android platform components to
|
||||||
which video and audio data are rendered.
|
which video and audio data are rendered.
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Renderer.html).
|
[Javadoc]({{ site.exo_sdk }}/Renderer.html).
|
||||||
|
|
||||||
###### Timeline
|
###### Timeline
|
||||||
|
|
||||||
|
|
@ -275,7 +275,7 @@ through to complex compositions of media such as playlists and streams with
|
||||||
inserted ads.
|
inserted ads.
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Timeline.html).
|
[Javadoc]({{ site.exo_sdk }}/Timeline.html).
|
||||||
|
|
||||||
###### TrackGroup
|
###### TrackGroup
|
||||||
|
|
||||||
|
|
@ -284,7 +284,7 @@ content, normally at different bitrates for
|
||||||
[adaptive streaming](#adaptive-streaming).
|
[adaptive streaming](#adaptive-streaming).
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/source/TrackGroup.html).
|
[Javadoc]({{ site.exo_sdk }}/source/TrackGroup.html).
|
||||||
|
|
||||||
###### TrackSelection
|
###### TrackSelection
|
||||||
|
|
||||||
|
|
@ -295,7 +295,7 @@ responsible for selecting the appropriate track whenever a new media chunk
|
||||||
starts being loaded.
|
starts being loaded.
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelection.html).
|
[Javadoc]({{ site.exo_sdk }}/trackselection/TrackSelection.html).
|
||||||
|
|
||||||
###### TrackSelector
|
###### TrackSelector
|
||||||
|
|
||||||
|
|
@ -305,4 +305,4 @@ player’s [`Renderers`](#renderer), a `TrackSelector` will generate a
|
||||||
[`TrackSelection`](#trackselection) for each `Renderer`.
|
[`TrackSelection`](#trackselection) for each `Renderer`.
|
||||||
|
|
||||||
For more information, see the component
|
For more information, see the component
|
||||||
[Javadoc](https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelector.html).
|
[Javadoc]({{ site.exo_sdk }}/trackselection/TrackSelector.html).
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ events is easy:
|
||||||
// Add a listener to receive events from the player.
|
// Add a listener to receive events from the player.
|
||||||
player.addListener(listener);
|
player.addListener(listener);
|
||||||
~~~
|
~~~
|
||||||
{: .language-java}
|
{: .language-java }
|
||||||
|
|
||||||
`Player.Listener` has empty default methods, so you only need to implement
|
`Player.Listener` has empty default methods, so you only need to implement
|
||||||
the methods you're interested in. See the [Javadoc][] for a full description of
|
the methods you're interested in. See the [Javadoc][] for a full description of
|
||||||
|
|
@ -195,7 +195,7 @@ additional logging with a single line.
|
||||||
```
|
```
|
||||||
player.addAnalyticsListener(new EventLogger(trackSelector));
|
player.addAnalyticsListener(new EventLogger(trackSelector));
|
||||||
```
|
```
|
||||||
{: .language-java}
|
{: .language-java }
|
||||||
|
|
||||||
Passing the `trackSelector` enables additional logging, but is optional and so
|
Passing the `trackSelector` enables additional logging, but is optional and so
|
||||||
`null` can be passed instead. See the [debug logging page][] for more details.
|
`null` can be passed instead. See the [debug logging page][] for more details.
|
||||||
|
|
|
||||||
|
|
@ -51,9 +51,9 @@ methods, as listed below and shown in the following figure.
|
||||||
`Timeline`. The current `Timeline.Window` can be retrieved from the `Timeline`
|
`Timeline`. The current `Timeline.Window` can be retrieved from the `Timeline`
|
||||||
using `Player.getCurrentWindowIndex` and `Timeline.getWindow`. Within the
|
using `Player.getCurrentWindowIndex` and `Timeline.getWindow`. Within the
|
||||||
`Window`:
|
`Window`:
|
||||||
* `Window.liveConfiguration` contains the target live offset and and live
|
* `Window.liveConfiguration` contains the target live offset and live offset
|
||||||
offset adjustment parameters. These values are based on information in the
|
adjustment parameters. These values are based on information in the media
|
||||||
media and any app-provided overrides set in `MediaItem.liveConfiguration`.
|
and any app-provided overrides set in `MediaItem.liveConfiguration`.
|
||||||
* `Window.windowStartTimeMs` is the time since the Unix Epoch at which the
|
* `Window.windowStartTimeMs` is the time since the Unix Epoch at which the
|
||||||
live window starts.
|
live window starts.
|
||||||
* `Window.getCurrentUnixTimeMs` is the time since the Unix Epoch of the
|
* `Window.getCurrentUnixTimeMs` is the time since the Unix Epoch of the
|
||||||
|
|
|
||||||
|
|
@ -153,4 +153,4 @@ the player also needs to have its `DefaultMediaSourceFactory`
|
||||||
[configured accordingly]({{ site.baseurl }}/ad-insertion.html#declarative-ad-support).
|
[configured accordingly]({{ site.baseurl }}/ad-insertion.html#declarative-ad-support).
|
||||||
|
|
||||||
[playlist API]: {{ site.baseurl }}/playlists.html
|
[playlist API]: {{ site.baseurl }}/playlists.html
|
||||||
[`MediaItem.Builder` Javadoc]: {{ site.baseurl }}/doc/reference/com/google/android/exoplayer2/MediaItem.Builder.html
|
[`MediaItem.Builder` Javadoc]: {{ site.exo_sdk }}/MediaItem.Builder.html
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ ExoPlayer player = new ExoPlayer.Builder(context)
|
||||||
{: .language-java}
|
{: .language-java}
|
||||||
|
|
||||||
The
|
The
|
||||||
[`DefaultMediaSourceFactory` JavaDoc]({{ site.baseurl }}/doc/reference/com/google/android/exoplayer2/source/DefaultMediaSourceFactory.html)
|
[`DefaultMediaSourceFactory` JavaDoc]({{ site.exo_sdk }}/source/DefaultMediaSourceFactory.html)
|
||||||
describes the available options in more detail.
|
describes the available options in more detail.
|
||||||
|
|
||||||
It's also possible to inject a custom `MediaSource.Factory` implementation, for
|
It's also possible to inject a custom `MediaSource.Factory` implementation, for
|
||||||
|
|
@ -79,4 +79,4 @@ exoPlayer.play();
|
||||||
[HLS]: {{ site.baseurl }}/hls.html
|
[HLS]: {{ site.baseurl }}/hls.html
|
||||||
[RTSP]: {{ site.baseurl }}/rtsp.html
|
[RTSP]: {{ site.baseurl }}/rtsp.html
|
||||||
[regular media files]: {{ site.baseurl }}/progressive.html
|
[regular media files]: {{ site.baseurl }}/progressive.html
|
||||||
[`ExoPlayer`]: {{ site.baseurl }}/doc/reference/com/google/android/exoplayer2/ExoPlayer.html
|
[`ExoPlayer`]: {{ site.exo_sdk }}/ExoPlayer.html
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,6 @@ for (int i = 0; i < trackGroups.length; i++) {
|
||||||
{: .language-java}
|
{: .language-java}
|
||||||
|
|
||||||
[`MediaMetadata`]: {{ site.exo_sdk }}/MediaMetadata.html
|
[`MediaMetadata`]: {{ site.exo_sdk }}/MediaMetadata.html
|
||||||
[`Metadata.Entry`]: {{ site.exo_sdk}}/metadata/Metadata.Entry.html
|
[`Metadata.Entry`]: {{ site.exo_sdk }}/metadata/Metadata.Entry.html
|
||||||
[`MetadataRetriever`]: {{ site.exo_sdk }}/MetadataRetriever.html
|
[`MetadataRetriever`]: {{ site.exo_sdk }}/MetadataRetriever.html
|
||||||
[`MotionPhotoMetadata`]: {{ site.exo_sdk }}/metadata/mp4/MotionPhotoMetadata.html
|
[`MotionPhotoMetadata`]: {{ site.exo_sdk }}/metadata/mp4/MotionPhotoMetadata.html
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue