Ensure TalkBack announces the selected playback speed in the UI menu
Issue: google/ExoPlayer#10298 #minor-release PiperOrigin-RevId: 457991028
This commit is contained in:
parent
621617f981
commit
3fc6a66527
@ -18,6 +18,10 @@
|
|||||||
`MetadataRenderer(MetadataOutput, Looper,
|
`MetadataRenderer(MetadataOutput, Looper,
|
||||||
MetadataDecoderFactory, boolean)` to specify whether the renderer will
|
MetadataDecoderFactory, boolean)` to specify whether the renderer will
|
||||||
output metadata early or in sync with the player position.
|
output metadata early or in sync with the player position.
|
||||||
|
* UI:
|
||||||
|
* Ensure TalkBack announces the currently active speed option in the
|
||||||
|
playback controls menu
|
||||||
|
([#10298](https://github.com/google/ExoPlayer/issues/10298)).
|
||||||
* RTSP:
|
* RTSP:
|
||||||
* Add RTP reader for H263
|
* Add RTP reader for H263
|
||||||
([#63](https://github.com/androidx/media/pull/63)).
|
([#63](https://github.com/androidx/media/pull/63)).
|
||||||
|
@ -1811,7 +1811,13 @@ public class PlayerControlView extends FrameLayout {
|
|||||||
if (position < playbackSpeedTexts.length) {
|
if (position < playbackSpeedTexts.length) {
|
||||||
holder.textView.setText(playbackSpeedTexts[position]);
|
holder.textView.setText(playbackSpeedTexts[position]);
|
||||||
}
|
}
|
||||||
holder.checkView.setVisibility(position == selectedIndex ? VISIBLE : INVISIBLE);
|
if (position == selectedIndex) {
|
||||||
|
holder.itemView.setSelected(true);
|
||||||
|
holder.checkView.setVisibility(VISIBLE);
|
||||||
|
} else {
|
||||||
|
holder.itemView.setSelected(false);
|
||||||
|
holder.checkView.setVisibility(INVISIBLE);
|
||||||
|
}
|
||||||
holder.itemView.setOnClickListener(
|
holder.itemView.setOnClickListener(
|
||||||
v -> {
|
v -> {
|
||||||
if (position != selectedIndex) {
|
if (position != selectedIndex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user