Cleanup of playerFocusElement global state variable, as this is not needed anymore to retain focus for previous/next button keyboard navigation with the changes done on these custom components with new implementation
Remove float: inline-end styling with display: inline-block for player controls to right align some of the controls in the player, as this reverses the tab order of the controls when using keyboard navigation. Replace this styling to use display: flex
Fix a bug in the state updates for persisting the player's play/pause status as isPlaying in global state with hotkey implementation and pointer events
Set aspect ratio for inaccessible message display as 16/9 (equivalent to video player) when switching from an audio item to inaccessible item
Attach player hotkeys event handler upon player creation, as hotkeys doesn't work as expected with the previous implementation when the first item is an inaccessible item.
This PR includes the following;
playerFocusElement
global state variable, as this is not needed anymore to retain focus for previous/next button keyboard navigation with the changes done on these custom components with new implementationfloat: inline-end
styling withdisplay: inline-block
for player controls to right align some of the controls in the player, as this reverses the tab order of the controls when using keyboard navigation. Replace this styling to usedisplay: flex
isPlaying
in global state with hotkey implementation and pointer events