Rename some references from PlayerView to LegacyPlayerView

These were missed in 46ab94bd41

These references will be re-written to PlayerView when exporting to
exoplayer2, so this commit results in some small reformatting changes.

Also fix a reference to LegacyPlayerControlView that should be
StyledPlayerControlView.

PiperOrigin-RevId: 420707706
This commit is contained in:
ibaker 2022-01-10 10:26:16 +00:00 committed by Ian Baker
parent 0af7f5c287
commit 103b170a56
5 changed files with 25 additions and 26 deletions

View file

@ -64,9 +64,9 @@ Internally, `DefaultMediaSourceFactory` will wrap the content media source in an
`AdsLoader.Provider` and use it to insert ads as defined by the media item's ad `AdsLoader.Provider` and use it to insert ads as defined by the media item's ad
tag. tag.
ExoPlayer's `StyledPlayerView` and `PlayerView` UI components both implement ExoPlayer's `StyledPlayerView` and `PlayerView` UI components both
`AdViewProvider`. The IMA extension provides an easy to use `AdsLoader`, as implement `AdViewProvider`. The IMA extension provides an easy to use
described below. `AdsLoader`, as described below.
### Playlists with ads ### ### Playlists with ads ###
@ -123,8 +123,8 @@ VAST/VMAP ad tags in the sample list.
#### UI considerations #### #### UI considerations ####
`StyledPlayerView` and `PlayerView` hide controls during playback of ads by `StyledPlayerView` and `PlayerView` hide controls during playback of ads
default, but apps can toggle this behavior by calling by default, but apps can toggle this behavior by calling
`setControllerHideDuringAds`, which is defined on both views. The IMA SDK will `setControllerHideDuringAds`, which is defined on both views. The IMA SDK will
show additional views on top of the player while an ad is playing (e.g., a 'more show additional views on top of the player while an ad is playing (e.g., a 'more
info' link and a skip button, if applicable). info' link and a skip button, if applicable).
@ -139,9 +139,9 @@ The IMA SDK may report whether ads are obscured by application provided views
rendered on top of the player. Apps that need to overlay views that are rendered on top of the player. Apps that need to overlay views that are
essential for controlling playback must register them with the IMA SDK so that essential for controlling playback must register them with the IMA SDK so that
they can be omitted from viewability calculations. When using `StyledPlayerView` they can be omitted from viewability calculations. When using `StyledPlayerView`
or `PlayerView` as the `AdViewProvider`, they will automatically register their or `PlayerView` as the `AdViewProvider`, they will automatically register
control overlays. Apps that use a custom player UI must register overlay views their control overlays. Apps that use a custom player UI must register overlay
by returning them from `AdViewProvider.getAdOverlayInfos`. views by returning them from `AdViewProvider.getAdOverlayInfos`.
For more information about overlay views, see For more information about overlay views, see
[Open Measurement in the IMA SDK][]. [Open Measurement in the IMA SDK][].

View file

@ -130,7 +130,6 @@ The following guidelines apply specifically for live streams:
[HlsMediaSource]: {{ site.exo_sdk }}/source/hls/HlsMediaSource.html [HlsMediaSource]: {{ site.exo_sdk }}/source/hls/HlsMediaSource.html
[HTTP Live Streaming]: https://tools.ietf.org/html/rfc8216 [HTTP Live Streaming]: https://tools.ietf.org/html/rfc8216
[PlayerView]: {{ site.exo_sdk }}/ui/PlayerView.html
[UI components]: {{ site.baseurl }}/ui-components.html [UI components]: {{ site.baseurl }}/ui-components.html
[Customization page]: {{ site.baseurl }}/customization.html [Customization page]: {{ site.baseurl }}/customization.html
[Medium post about HLS playback in ExoPlayer]: https://medium.com/google-exoplayer/hls-playback-in-exoplayer-a33959a47be7 [Medium post about HLS playback in ExoPlayer]: https://medium.com/google-exoplayer/hls-playback-in-exoplayer-a33959a47be7

View file

@ -112,20 +112,20 @@ gets from the libgav1 decoder:
* GL rendering using GL shader for color space conversion * GL rendering using GL shader for color space conversion
* If you are using `ExoPlayer` with `PlayerView` or `StyledPlayerView`, * If you are using `ExoPlayer` with `PlayerView` or
enable this option by setting `surface_type` of view to be `StyledPlayerView`, enable this option by setting `surface_type` of view
`video_decoder_gl_surface_view`. to be `video_decoder_gl_surface_view`.
* Otherwise, enable this option by sending `Libgav1VideoRenderer` a * Otherwise, enable this option by sending `Libgav1VideoRenderer` a
message of type `Renderer.MSG_SET_VIDEO_OUTPUT` message of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of
with an instance of `VideoDecoderOutputBufferRenderer` as its object. `VideoDecoderOutputBufferRenderer` as its object.
`VideoDecoderGLSurfaceView` is the concrete `VideoDecoderGLSurfaceView` is the concrete
`VideoDecoderOutputBufferRenderer` implementation used by `VideoDecoderOutputBufferRenderer` implementation used by
`(Styled)PlayerView`. `PlayerView` and `StyledPlayerView`.
* Native rendering using `ANativeWindow` * Native rendering using `ANativeWindow`
* If you are using `ExoPlayer` with `PlayerView` or `StyledPlayerView`, * If you are using `ExoPlayer` with `PlayerView` or
this option is enabled by default. `StyledPlayerView`, this option is enabled by default.
* Otherwise, enable this option by sending `Libgav1VideoRenderer` a * Otherwise, enable this option by sending `Libgav1VideoRenderer` a
message of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of message of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of
`SurfaceView` as its object. `SurfaceView` as its object.

View file

@ -125,20 +125,20 @@ gets from the libvpx decoder:
* GL rendering using GL shader for color space conversion * GL rendering using GL shader for color space conversion
* If you are using `ExoPlayer` with `PlayerView` or `StyledPlayerView`, * If you are using `ExoPlayer` with `PlayerView` or
enable this option by setting `surface_type` of view to be `StyledPlayerView`, enable this option by setting `surface_type` of view
`video_decoder_gl_surface_view`. to be `video_decoder_gl_surface_view`.
* Otherwise, enable this option by sending `LibvpxVideoRenderer` a message * Otherwise, enable this option by sending `LibvpxVideoRenderer` a message
of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of
instance of `VideoDecoderOutputBufferRenderer` as its object. `VideoDecoderOutputBufferRenderer` as its object.
`VideoDecoderGLSurfaceView` is the concrete `VideoDecoderGLSurfaceView` is the concrete
`VideoDecoderOutputBufferRenderer` implementation used by `VideoDecoderOutputBufferRenderer` implementation used by
`(Styled)PlayerView`. `PlayerView` and `StyledPlayerView`.
* Native rendering using `ANativeWindow` * Native rendering using `ANativeWindow`
* If you are using `ExoPlayer` with `PlayerView` or `StyledPlayerView`, * If you are using `ExoPlayer` with `PlayerView` or
this option is enabled by default. `StyledPlayerView`, this option is enabled by default.
* Otherwise, enable this option by sending `LibvpxVideoRenderer` a message * Otherwise, enable this option by sending `LibvpxVideoRenderer` a message
of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of
`SurfaceView` as its object. `SurfaceView` as its object.

View file

@ -105,7 +105,7 @@
<attr name="surface_type"/> <attr name="surface_type"/>
<!-- AspectRatioFrameLayout attributes --> <!-- AspectRatioFrameLayout attributes -->
<attr name="resize_mode"/> <attr name="resize_mode"/>
<!-- PlayerControlView attributes --> <!-- StyledPlayerControlView attributes -->
<attr name="show_timeout"/> <attr name="show_timeout"/>
<attr name="repeat_toggle_modes"/> <attr name="repeat_toggle_modes"/>
<attr name="show_shuffle_button"/> <attr name="show_shuffle_button"/>