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

Fix various UI things in our paella integration #1208

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

owi92
Copy link
Member

@owi92 owi92 commented Jul 10, 2024

This mainly does two things:

  • some buttons are moved into a settings menu to make the player appear less crammed on smaller screens (resolution, captions and video layout)
  • the control elements (which are also buttons) inside the videos (i.e. maximize video, switch sides etc.) are now less opaque and also smaller when their containers are below a certain width (currently 400px)

Also:

  • the fullscreen button is now always on the rightmost side of the control bar (as you would expect)
  • the buttons for slide navigation were added to presentation videos

Things mentioned in #1196 but missing here:

  • hide Firefox PiP button:
    -> this is not technically possible. Users need to disable it themselves in their browser.
  • hover color of vertical separation lines:
    -> I believe this needs to be fixed in paella-skins as any custom changes are always overwritten by that.

Oh and I also noticed the thing @dagraf mentions in #1196 (comment): Open submenus are not fixed but move with the screen when scrolling up or down. This also needs to be fixed in paella.

Closes #1196

Marked as draft bc I still need to figure out how to hide the settings menu when there are no menu items 🙈

@owi92 owi92 added the changelog:user User facing changes label Jul 10, 2024
@github-actions github-actions bot temporarily deployed to test-deployment-pr1208 July 10, 2024 10:26 Destroyed
@LukasKalbertodt
Copy link
Member

Basically all changes look good to me and are a clear improvement! Code looks good as well. I have only two remarks:

the control elements (which are also buttons) inside the videos (i.e. maximize video, switch sides etc.) are now less opaque

I know this was discussed in the issue, but it's worth noting that this is also an accessibility concern. Making them less opaque obviously reduces contrast, and makes it hard to see for some people. Tobira does not yet have a high contrast mode, otherwise we could at least improve the situation in that mode. So yeah, maybe Olaf and David can reconsider whether the buttons in the current form (without this PR) are really too distracting.

Marked as draft bc I still need to figure out how to hide the settings menu when there are no menu items 🙈

I think I would prefer if the quality selection thing could always be there, even if there is only one quality. Then at least users can see the quality they are currently watching. I am not sure if it's possible to convince Paella of that though...

@oas777
Copy link
Collaborator

oas777 commented Jul 10, 2024

Testing this on a large screen, for once. A certain improvement can be seen, thanks.

However, adding the "Seek video to the previous/next slide" icons was not a request from my end, it was a fear I expressed because it leaves us with eight (!) icons within the video canvass. Which makes me give up on the idea of making them more opaque/"invisible", also in conjunction with the hover-over effect, the different black and grey backgrounds, Firefox adding its thing with a different grey, and the accessibility concerns Lukas mentions. Is there a chance therefore of hiding icons individually the way you added the icons for slide navigation?

I think I would prefer if the quality selection thing could always be there, even if there is only one quality. Then at least users can > see the quality they are currently watching. I am not sure if it's possible to convince Paella of that though...

+1. Which kind of kills the settings menu, does it? The additional "CC" probably shouldn't be hidden there.

@owi92
Copy link
Member Author

owi92 commented Jul 10, 2024

Alright, I can certainly remove the changes to the button opacity again, and also the settings menu if we pull out captions and quality selection (which isn't what Lukas was saying with his comment - at least I don't think so - but I see how it could be read like that and you seem to be agreeing with that point, however interpreted).

Is there a chance therefore of hiding icons individually the way you added the icons for slide navigation?

Hm sorry, I'm not sure I understand. In which case should they be hidden and when are they supposed to be shown? In any case, I don't think paella supports that.

An alternative to the slide navigation buttons at the top is to have them at the sides of the video container (which is still inside the container, so that doesn't necessarily improve the overall situation:
Bildschirmfoto 2024-07-10 um 15 23 00

Or should we just leave out that feature altogether?

@owi92
Copy link
Member Author

owi92 commented Jul 10, 2024

also, re this comment (sorry for not adressing this yet): #1196 (comment):
would you prefer it like this (with blod playtime and colors of the quality selector inverted, if we get rid of the settings menu again)?:
Bildschirmfoto 2024-07-10 um 15 50 59

@oas777
Copy link
Collaborator

oas777 commented Jul 10, 2024

Alright, I can certainly remove the changes to the button opacity again, and also the settings menu if we pull out captions and quality selection (which isn't what Lukas was saying with his comment - at least I don't think so - but I see how it could be read like that and you seem to be agreeing with that point, however interpreted).

I see what you mean, maybe I misread Lukas' comment.

Is there a chance therefore of hiding icons individually the way you added the icons for slide navigation?

Hm sorry, I'm not sure I understand. In which case should they be hidden and when are they supposed to be shown? In any case, I don't think paella supports that.

Version 6 used to allow this. And with adding/removing the slide navigation icons, I thought this might be possible for other icons as well.

An alternative to the slide navigation buttons at the top is to have them at the sides of the video container (which is still inside the container, so that doesn't necessarily improve the overall situation: Bildschirmfoto 2024-07-10 um 15 23 00

Or should we just leave out that feature altogether?

Let's discuss this in our meeting.

These buttons will now be smaller and use less margin when
the video container is smaller than 400px. They will also
be less opaque overall and only be completely opaque when
directly hovered over.
@owi92 owi92 force-pushed the paella-ui-cf branch 2 times, most recently from 6cf413e to c17c49b Compare July 11, 2024 09:26
This menu holds the options for resolution, captions
and video layout to make the player appear less cluttered.
@github-actions github-actions bot temporarily deployed to test-deployment-pr1208 July 11, 2024 09:33 Destroyed
@owi92
Copy link
Member Author

owi92 commented Jul 11, 2024

I have opened polimediaupv/paella-core#368 to address the issue of open submenus not being fixed to their trigger button, and polimediaupv/paella-skins#6 to figure out what to do with the vertical lines in the progress bar.
Edit: also polimediaupv/paella-slide-plugins#7 in regards to the blurry slidemap progress bar marks.

This allows us to always show the quality selector, even if
there is only one available resolution.
@github-actions github-actions bot temporarily deployed to test-deployment-pr1208 July 12, 2024 12:01 Destroyed
@owi92 owi92 marked this pull request as ready for review July 12, 2024 12:42
Copy link
Member

@LukasKalbertodt LukasKalbertodt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Clear improvements on all fronts!

I'm personally not the biggest fan of the bold time-font, but I agree that given the icons and other text, it looks better. Maybe at some point we can make everything a bit thinner, but at least now it's consistent.

@LukasKalbertodt LukasKalbertodt merged commit e029d78 into elan-ev:master Jul 12, 2024
3 checks passed
@LukasKalbertodt
Copy link
Member

For reference, I just checked: it is possible, by changing the Tobira configuration (specifically player.paella_plugin_config) to disable some buttons. For example:

paella_plugin_config = """{
    "es.upv.paella.frameControlButtonPlugin": { "enabled": false }
}"""

This disables the button that lets you see all slide previews. Sadly, the buttons that you, Olaf, wanted to remove most of all -- e.g. the "enlarge" button hovering over the video -- don't seem to be controlled by plugins? Or at least I don't see which ones are responsible for that so I can't disable it right now. But if we are really interested we could dig deeper or ask the Paella devs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:user User facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Paella: Problems with UI
3 participants