-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
How to change the fullscreen element? #4859
Comments
Are you using Shaka Player Default UI or some custom? It looks like some CSS Issue. In Chrome, Firefox, etc - If you are on full screen, |
I am using custom UI. |
I guess it is then related to CSS stuff and not Shaka specific. However, feel free to share screenshots, or code snippets or codesandbox link. |
I'm assuming that you built your own UI in HTML + CSS + JS, and that you're not using shaka-player.ui.js. Is that correct? From your diagram, it looks like you currently have something structured like: <div id="container">
<div>
<div id="video"></div>
<div id="sidebar"></div>
</div>
<div id="controls"></div>
</div> But what you want is to have a structure like: <div id="container">
<div>
<div id="video"></div>
<div id="controls"></div>
</div>
<div id="sidebar"></div>
</div> Does this help? |
Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including |
@shaka-bot reopen
I don't have a separate element created for controls. Below is the code snippet which I am using.
The problem with this code is when I try to move Would you be able to help me here? |
The Shaka Player UI doesn't let you choose the fullscreen element. That is hard-coded to the container. So if you want Sidebar to show in fullscreen mode, you'll want to move it inside the container. I would suggest adjusting the styles to make it sit where you want, and to make the controls take up the same space as the video element instead of the whole container. Alternately, you could modify Shaka Player to use a different class to declare the fullscreen element, or to add a method on Overlay to change the fullscreen element (which would default to the video container). This may be easier than restyling everything. Does this help? |
Thanks for the suggestion @joeyparrish . I would update the method to select fullscreen element. |
Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
4.3.0
Please ask your question
I am trying to add a sidebar beside my video, and I am using custom ui element.
The problem which I am facing is, the ui controls are overlapping the sidebar on fullscreen.
As per my understanding, this is because the container for both ui controls and sidebar is same.
I am looking for a way to change the fullscreen element so that I can keep the sidebar in a different container. Can anyone help me here?
The text was updated successfully, but these errors were encountered: