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 the default player size #58

Closed
wants to merge 1 commit into from

Conversation

viktor-yunenko
Copy link

@viktor-yunenko viktor-yunenko commented Apr 11, 2020

Hi @FinalAngel, this is a css fix that I'm using for all my cms projects, would it be possible to merge it in?

Closes #57

It has been tested using youtube embed url and an uploaded mp4 file through Source plugin.

@viktor-yunenko viktor-yunenko force-pushed the 1-fix-default-player-size branch 4 times, most recently from be9d6d2 to de147b8 Compare April 16, 2020 12:51
@viktor-yunenko viktor-yunenko force-pushed the 1-fix-default-player-size branch from de147b8 to 445165e Compare April 16, 2020 12:53
Copy link
Member

@FinalAngel FinalAngel left a comment

Choose a reason for hiding this comment

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

tbh I'm not sure if we want to include preset css, it's the developers choice to use a frontend that properly sets the video size.

{% trans "Your browser doesn't support this video format." %}
</video>
{% endif %}
<link rel="stylesheet" type="text/css" href="{% static 'djangocms_video/video_player.css' %}"/>
Copy link
Member

Choose a reason for hiding this comment

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

can you use sekizai to load the css?

Copy link
Member

Choose a reason for hiding this comment

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

please rather include it inline if we want to provide a "sample" css config

Copy link
Member

Choose a reason for hiding this comment

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

I'm really reluctant doing this :D

@FinalAngel
Copy link
Member

@victor-yunenko I'm closing this for now. As mentioned, the following approach is acceptable:

Adding an inline style for some initial styling when prototyping. Though we keep recommending adding your own style/framework to handle video display. The Addons default HTML/CSS should be bare-minimum.

@FinalAngel FinalAngel closed this Aug 27, 2020
@macolo macolo deleted the 1-fix-default-player-size branch August 14, 2021 19:39
@macolo macolo restored the 1-fix-default-player-size branch August 16, 2021 11:08
@fsbraun fsbraun deleted the 1-fix-default-player-size branch December 6, 2023 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

By default the player has minimal size, eg 100x100 pixels, and editors don't know how to fix it
2 participants