mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
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:
parent
0af7f5c287
commit
103b170a56
5 changed files with 25 additions and 26 deletions
|
|
@ -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
|
||||
tag.
|
||||
|
||||
ExoPlayer's `StyledPlayerView` and `PlayerView` UI components both implement
|
||||
`AdViewProvider`. The IMA extension provides an easy to use `AdsLoader`, as
|
||||
described below.
|
||||
ExoPlayer's `StyledPlayerView` and `PlayerView` UI components both
|
||||
implement `AdViewProvider`. The IMA extension provides an easy to use
|
||||
`AdsLoader`, as described below.
|
||||
|
||||
### Playlists with ads ###
|
||||
|
||||
|
|
@ -123,8 +123,8 @@ VAST/VMAP ad tags in the sample list.
|
|||
|
||||
#### UI considerations ####
|
||||
|
||||
`StyledPlayerView` and `PlayerView` hide controls during playback of ads by
|
||||
default, but apps can toggle this behavior by calling
|
||||
`StyledPlayerView` and `PlayerView` hide controls during playback of ads
|
||||
by default, but apps can toggle this behavior by calling
|
||||
`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
|
||||
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
|
||||
essential for controlling playback must register them with the IMA SDK so that
|
||||
they can be omitted from viewability calculations. When using `StyledPlayerView`
|
||||
or `PlayerView` as the `AdViewProvider`, they will automatically register their
|
||||
control overlays. Apps that use a custom player UI must register overlay views
|
||||
by returning them from `AdViewProvider.getAdOverlayInfos`.
|
||||
or `PlayerView` as the `AdViewProvider`, they will automatically register
|
||||
their control overlays. Apps that use a custom player UI must register overlay
|
||||
views by returning them from `AdViewProvider.getAdOverlayInfos`.
|
||||
|
||||
For more information about overlay views, see
|
||||
[Open Measurement in the IMA SDK][].
|
||||
|
|
|
|||
|
|
@ -130,7 +130,6 @@ The following guidelines apply specifically for live streams:
|
|||
|
||||
[HlsMediaSource]: {{ site.exo_sdk }}/source/hls/HlsMediaSource.html
|
||||
[HTTP Live Streaming]: https://tools.ietf.org/html/rfc8216
|
||||
[PlayerView]: {{ site.exo_sdk }}/ui/PlayerView.html
|
||||
[UI components]: {{ site.baseurl }}/ui-components.html
|
||||
[Customization page]: {{ site.baseurl }}/customization.html
|
||||
[Medium post about HLS playback in ExoPlayer]: https://medium.com/google-exoplayer/hls-playback-in-exoplayer-a33959a47be7
|
||||
|
|
|
|||
|
|
@ -112,20 +112,20 @@ gets from the libgav1 decoder:
|
|||
|
||||
* GL rendering using GL shader for color space conversion
|
||||
|
||||
* If you are using `ExoPlayer` with `PlayerView` or `StyledPlayerView`,
|
||||
enable this option by setting `surface_type` of view to be
|
||||
`video_decoder_gl_surface_view`.
|
||||
* If you are using `ExoPlayer` with `PlayerView` or
|
||||
`StyledPlayerView`, enable this option by setting `surface_type` of view
|
||||
to be `video_decoder_gl_surface_view`.
|
||||
* Otherwise, enable this option by sending `Libgav1VideoRenderer` a
|
||||
message of type `Renderer.MSG_SET_VIDEO_OUTPUT`
|
||||
with an instance of `VideoDecoderOutputBufferRenderer` as its object.
|
||||
message of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of
|
||||
`VideoDecoderOutputBufferRenderer` as its object.
|
||||
`VideoDecoderGLSurfaceView` is the concrete
|
||||
`VideoDecoderOutputBufferRenderer` implementation used by
|
||||
`(Styled)PlayerView`.
|
||||
`PlayerView` and `StyledPlayerView`.
|
||||
|
||||
* Native rendering using `ANativeWindow`
|
||||
|
||||
* If you are using `ExoPlayer` with `PlayerView` or `StyledPlayerView`,
|
||||
this option is enabled by default.
|
||||
* If you are using `ExoPlayer` with `PlayerView` or
|
||||
`StyledPlayerView`, this option is enabled by default.
|
||||
* Otherwise, enable this option by sending `Libgav1VideoRenderer` a
|
||||
message of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of
|
||||
`SurfaceView` as its object.
|
||||
|
|
|
|||
|
|
@ -125,20 +125,20 @@ gets from the libvpx decoder:
|
|||
|
||||
* GL rendering using GL shader for color space conversion
|
||||
|
||||
* If you are using `ExoPlayer` with `PlayerView` or `StyledPlayerView`,
|
||||
enable this option by setting `surface_type` of view to be
|
||||
`video_decoder_gl_surface_view`.
|
||||
* If you are using `ExoPlayer` with `PlayerView` or
|
||||
`StyledPlayerView`, enable this option by setting `surface_type` of view
|
||||
to be `video_decoder_gl_surface_view`.
|
||||
* Otherwise, enable this option by sending `LibvpxVideoRenderer` a message
|
||||
of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an
|
||||
instance of `VideoDecoderOutputBufferRenderer` as its object.
|
||||
of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of
|
||||
`VideoDecoderOutputBufferRenderer` as its object.
|
||||
`VideoDecoderGLSurfaceView` is the concrete
|
||||
`VideoDecoderOutputBufferRenderer` implementation used by
|
||||
`(Styled)PlayerView`.
|
||||
`PlayerView` and `StyledPlayerView`.
|
||||
|
||||
* Native rendering using `ANativeWindow`
|
||||
|
||||
* If you are using `ExoPlayer` with `PlayerView` or `StyledPlayerView`,
|
||||
this option is enabled by default.
|
||||
* If you are using `ExoPlayer` with `PlayerView` or
|
||||
`StyledPlayerView`, this option is enabled by default.
|
||||
* Otherwise, enable this option by sending `LibvpxVideoRenderer` a message
|
||||
of type `Renderer.MSG_SET_VIDEO_OUTPUT` with an instance of
|
||||
`SurfaceView` as its object.
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@
|
|||
<attr name="surface_type"/>
|
||||
<!-- AspectRatioFrameLayout attributes -->
|
||||
<attr name="resize_mode"/>
|
||||
<!-- PlayerControlView attributes -->
|
||||
<!-- StyledPlayerControlView attributes -->
|
||||
<attr name="show_timeout"/>
|
||||
<attr name="repeat_toggle_modes"/>
|
||||
<attr name="show_shuffle_button"/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue