mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +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.
|
||||
|
||||
For more information, see the
|
||||
[Javadoc](https://developer.android.com/reference/android/media/AudioTrack).
|
||||
[Javadoc]({{ site.android_sdk }}/android/media/AudioTrack).
|
||||
|
||||
###### CDM
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ decrypting [DRM](#drm) protected content. CDMs are accessed via Android’s
|
|||
[`MediaDrm`](#mediadrm) API.
|
||||
|
||||
For more information, see the
|
||||
[Javadoc](https://developer.android.com/reference/android/media/MediaDrm).
|
||||
[Javadoc]({{ site.android_sdk }}/android/media/MediaDrm).
|
||||
|
||||
###### IMA
|
||||
|
||||
|
|
@ -153,14 +153,14 @@ An Android API for accessing media [codecs](#codec) (i.e. encoder and decoder
|
|||
components) in the platform.
|
||||
|
||||
For more information, see the
|
||||
[Javadoc](https://developer.android.com/reference/android/media/MediaCodec).
|
||||
[Javadoc]({{ site.android_sdk }}/android/media/MediaCodec).
|
||||
|
||||
###### MediaDrm
|
||||
|
||||
An Android API for accessing [CDMs](#cdm) in the platform.
|
||||
|
||||
For more information, see the
|
||||
[Javadoc](https://developer.android.com/reference/android/media/MediaDrm).
|
||||
[Javadoc]({{ site.android_sdk }}/android/media/MediaDrm).
|
||||
|
||||
###### Audio offload
|
||||
|
||||
|
|
@ -181,7 +181,7 @@ For more information, see the
|
|||
|
||||
###### Surface
|
||||
|
||||
See the [Javadoc](https://developer.android.com/reference/android/view/Surface)
|
||||
See the [Javadoc]({{ site.android_sdk }}/android/view/Surface)
|
||||
and the
|
||||
[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.
|
||||
|
||||
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
|
||||
|
||||
Component for requesting data (e.g. over HTTP, from a local file, etc).
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ Component that parses a media [container](#container) format, outputting
|
|||
belonging to each track suitable for consumption by a decoder.
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -236,7 +236,7 @@ Component that decides when to start and stop loading, and when to start
|
|||
playback.
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -245,7 +245,7 @@ Provides high-level information about the structure of media (as a
|
|||
(corresponding to periods of the `Timeline`) for playback.
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -257,7 +257,7 @@ media are loaded and when loading starts and stops are made by the
|
|||
respectively.
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -266,7 +266,7 @@ and [`AudioTrack`](#audiotrack) are the standard Android platform components to
|
|||
which video and audio data are rendered.
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -275,7 +275,7 @@ through to complex compositions of media such as playlists and streams with
|
|||
inserted ads.
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -284,7 +284,7 @@ content, normally at different bitrates for
|
|||
[adaptive streaming](#adaptive-streaming).
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -295,7 +295,7 @@ responsible for selecting the appropriate track whenever a new media chunk
|
|||
starts being loaded.
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -305,4 +305,4 @@ player’s [`Renderers`](#renderer), a `TrackSelector` will generate a
|
|||
[`TrackSelection`](#trackselection) for each `Renderer`.
|
||||
|
||||
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.
|
||||
player.addListener(listener);
|
||||
~~~
|
||||
{: .language-java}
|
||||
{: .language-java }
|
||||
|
||||
`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
|
||||
|
|
@ -195,7 +195,7 @@ additional logging with a single line.
|
|||
```
|
||||
player.addAnalyticsListener(new EventLogger(trackSelector));
|
||||
```
|
||||
{: .language-java}
|
||||
{: .language-java }
|
||||
|
||||
Passing the `trackSelector` enables additional logging, but is optional and so
|
||||
`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`
|
||||
using `Player.getCurrentWindowIndex` and `Timeline.getWindow`. Within the
|
||||
`Window`:
|
||||
* `Window.liveConfiguration` contains the target live offset and and live
|
||||
offset adjustment parameters. These values are based on information in the
|
||||
media and any app-provided overrides set in `MediaItem.liveConfiguration`.
|
||||
* `Window.liveConfiguration` contains the target live offset and live offset
|
||||
adjustment parameters. These values are based on information in the media
|
||||
and any app-provided overrides set in `MediaItem.liveConfiguration`.
|
||||
* `Window.windowStartTimeMs` is the time since the Unix Epoch at which the
|
||||
live window starts.
|
||||
* `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).
|
||||
|
||||
[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}
|
||||
|
||||
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.
|
||||
|
||||
It's also possible to inject a custom `MediaSource.Factory` implementation, for
|
||||
|
|
@ -79,4 +79,4 @@ exoPlayer.play();
|
|||
[HLS]: {{ site.baseurl }}/hls.html
|
||||
[RTSP]: {{ site.baseurl }}/rtsp.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}
|
||||
|
||||
[`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
|
||||
[`MotionPhotoMetadata`]: {{ site.exo_sdk }}/metadata/mp4/MotionPhotoMetadata.html
|
||||
|
|
|
|||
Loading…
Reference in a new issue