Skip to content
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

Show ui programmatically #6116

Closed
benacler opened this issue Jan 17, 2024 · 1 comment · Fixed by #6117
Closed

Show ui programmatically #6116

benacler opened this issue Jan 17, 2024 · 1 comment · Fixed by #6117
Labels
component: UI The issue involves the Shaka Player UI priority: P3 Useful but not urgent status: archived Archived and locked; will not be updated type: enhancement New feature or request
Milestone

Comments

@benacler
Copy link

I'm using shaka player on a TV system , but when I trigged seeks (fast forwards and rewinds) programmatically, we do not have the focus on the elements so the seek bar is not displayed. Is there a way to force a focus on the seek bar ? (element.focus() does not work...)

@benacler benacler added the type: enhancement New feature or request label Jan 17, 2024
@shaka-bot shaka-bot added this to the Backlog milestone Jan 17, 2024
@avelad avelad added component: UI The issue involves the Shaka Player UI priority: P3 Useful but not urgent labels Jan 17, 2024
@avelad avelad modified the milestones: Backlog, v5.0 Jan 17, 2024
@benacler
Copy link
Author

I found a solution but I see that a PR has been done in blazing speed. In the case someone wants the functionality and is not able to update, I toke the same PR approach that's about delivering a fake mousemove event to the video container:

 var elements = document.getElementsByClassName("video-container");
        if (elements.length > 0) {
          var event = new Event("mousemove"); // (*)
          elements[0].dispatchEvent(event);
        }

Thanks!

@avelad avelad reopened this Jan 17, 2024
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Mar 18, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: UI The issue involves the Shaka Player UI priority: P3 Useful but not urgent status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants