From 085042d6aa42fbec54b53f4e47e9a52fd995de40 Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Mon, 17 Jan 2022 14:06:32 +0000 Subject: [PATCH] Fix minor exoplayer.dev issues PiperOrigin-RevId: 422349626 --- docs/glossary.md | 32 +++++++++++++++--------------- docs/listening-to-player-events.md | 4 ++-- docs/live-streaming.md | 6 +++--- docs/media-items.md | 2 +- docs/media-sources.md | 4 ++-- docs/retrieving-metadata.md | 2 +- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/docs/glossary.md b/docs/glossary.md index 3af6723dfb..1c7857a764 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -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). diff --git a/docs/listening-to-player-events.md b/docs/listening-to-player-events.md index 5bf7f7b53d..d0e6f32b66 100644 --- a/docs/listening-to-player-events.md +++ b/docs/listening-to-player-events.md @@ -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. diff --git a/docs/live-streaming.md b/docs/live-streaming.md index f9091ba261..27a10dee0a 100644 --- a/docs/live-streaming.md +++ b/docs/live-streaming.md @@ -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 diff --git a/docs/media-items.md b/docs/media-items.md index f57b3b9392..4845c062ac 100644 --- a/docs/media-items.md +++ b/docs/media-items.md @@ -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 diff --git a/docs/media-sources.md b/docs/media-sources.md index 15435baf74..1855abd6cb 100644 --- a/docs/media-sources.md +++ b/docs/media-sources.md @@ -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 diff --git a/docs/retrieving-metadata.md b/docs/retrieving-metadata.md index b0a288353a..c718baae7e 100644 --- a/docs/retrieving-metadata.md +++ b/docs/retrieving-metadata.md @@ -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