-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
Description
Issue description
In android TV. Video with ads use exoplayer-IMA extension version 2.8.4 have some codes to focus skip button on skippable ads. I have modified ima extension to can prevent focus or force focus skip button. Because our UX require that behavior. Everything work as I expected. But, when update to version 2.9.0, I can't do that.
Reproduction steps
In version 2.9.0 don't have this declare
private static final String FOCUS_SKIP_BUTTON_WORKAROUND_JS = "javascript:"
+ "try{ document.getElementsByClassName(\"videoAdUiSkipButton\")[0].focus(); } catch (e) {}";
In version 2.8.4 have this code
case STARTED:
if (ad.isSkippable()) {
focusSkipButton();
}
break;
so I can prevent focus to button by don't call focusSkipButton(), and call it when I need.
But in version 2.9.0
case STARTED:
it's empty. I guess focus skip button is auto and work without trick like before.
Link to test content
Not provided
Version of ExoPlayer being used
2.9.0
Device(s) and version(s) of Android being used
Android TV version 8, 7.1.
A full bug report captured from the device
Not provided
Reactions are currently unavailable