Skip to content

Keyboard controls not working in fullscreen #8688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hijuuijj opened this issue Jun 4, 2025 · 3 comments
Open

Keyboard controls not working in fullscreen #8688

hijuuijj opened this issue Jun 4, 2025 · 3 comments
Assignees
Labels
component: UI The issue involves the Shaka Player UI status: waiting on response Waiting on a response from the reporter(s) of the issue type: question A question from the community

Comments

@hijuuijj
Copy link

hijuuijj commented Jun 4, 2025

I'm using the following code and I'd like to know what I need to do so that when I enter full screen mode, the keyboard controls work properly, for example, using the arrow keys to seek forward or backward, and the spacebar to pause and resume playback. I'm already using the "F" key to toggle full screen, which works fine, but with this current setup, none of the keyboard controls work unless I first click on the progress bar, which I find quite annoying. Any suggestions would be greatly appreciated. Thank you.

`
<script src="//v4-15-00-dot-shaka-player-demo.appspot.com/dist/shaka-player.ui.js"></script>

<style>html, body, video {margin: 0; padding: 0; width: 100%; height: 100%; background: #000;}</style>

<script> document.addEventListener('shaka-ui-loaded', async () => { const video = document.getElementById('video'); const player = video.ui.getControls().getPlayer(); await player.load('https://...'); }); </script> `
@hijuuijj hijuuijj added the type: question A question from the community label Jun 4, 2025
@avelad
Copy link
Member

avelad commented Jun 4, 2025

@TAhub can you review it? Thanks!

@avelad avelad added the component: UI The issue involves the Shaka Player UI label Jun 4, 2025
@shaka-bot
Copy link
Collaborator

@hijuuijj Does this answer all your questions? If so, would you please close the issue?

@shaka-bot shaka-bot added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Jun 8, 2025
@avelad avelad removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Jun 8, 2025
@shaka-bot
Copy link
Collaborator

@hijuuijj Does this answer all your questions? If so, would you please close the issue?

@shaka-bot shaka-bot added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: UI The issue involves the Shaka Player UI status: waiting on response Waiting on a response from the reporter(s) of the issue type: question A question from the community
Projects
None yet
Development

No branches or pull requests

4 participants