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

vplayer / evlplayer displays big block if no id is provided by default #73

Closed
Suraf opened this issue Nov 10, 2023 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@Suraf
Copy link

Suraf commented Nov 10, 2023

(First of all, thanks for reimplementing these back into the forked version of the extension! I'm sure communities beyond just Warcraft Wiki could really use them!)

Describe the bug
When those tags, vplayer or evlplayer is added like <vplayer /> or <evlplayer />, they instead display this huge block that is otherwise empty.

The original experience, there was no empty block like this. Nothing. Whenever a video link is clicked (vlink or evl), this area would expand to that video.

To Reproduce
Just create an article and add <vplayer /> or the other tag to the article.

Example:
https://warcraft.wiki.gg/wiki/Dragonflight_in-game_cinematics

image

Expected behavior
There should be no big empty space where the video would appear if no default video id is provided.

So it should look like this:
image

When any of the video links is clicked, it expands and displays the video. It'll stay there forever, won't shrink back down or anything.
image

Technical information:

  • OS: Windows 11
  • Browser: Firefox Developer Edition
  • Extension Version 3.4.0
  • MediaWiki Version 1.39.4
  • Host type: Wiki.gg

Additional context
Let me know if you'd like me to clarify anything.

@Suraf Suraf added the bug Something isn't working label Nov 10, 2023
@octfx
Copy link
Member

octfx commented Nov 10, 2023

That is currently expected behavior.
You can hide the empty embed by adding the following css:

.evlplayer[data-service="videolink"] {
  display: none;
}

I'll add this to the 3.4.1 release :)

@Suraf
Copy link
Author

Suraf commented Nov 10, 2023

The problem with the CSS is that it also hides the video when a link is clicked.

@octfx
Copy link
Member

octfx commented Nov 10, 2023

That shouldn't be the case.
The data-service attribute on the player gets updated with the corresponding service from the video link.
With the videolink service being only used for empty embeds.

Empty Embed:
image

After clicking a video link:
image

Can you confirm that the data-service attribute changes after a video link gets clicked?

@Suraf
Copy link
Author

Suraf commented Nov 10, 2023

I can confirm that the data-service does not change at all from videolink after clicking a video link. I've tried it on this page: https://warcraft.wiki.gg/wiki/Shadowlands_in-game_cinematics
data-service-videolink

octfx added a commit that referenced this issue Nov 11, 2023
Also hide `<evlplayer />` with no default video

Fixes #73
@octfx
Copy link
Member

octfx commented Nov 11, 2023

Was an oversight on my part! When explicit consent is not required, the service parameter was not updated.

Fixed in develop.

@octfx octfx closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants