Hello Django Forum Members,
Not sure if this is the correct forum or area to post this question, but thought I would start here. I am using django-embed-video for a project and would like the embedded video size to be somewhat responsive. I can see from the readthedocs that there are several ways to adjust the size. The only method that seems to allow for responsive nature is using “relative percentual size” (e.g. {% video my_video ‘100% x 50%’ %}). On my app, the first part of the string - the “100%” in the example above seems to dynamically adjust the width based on the width the viewing screen, but can’t seem to figure out what the “50%” part does. Can someone point me in the direction of the interpretation of the 2nd part of the string? Varying the percentage in the 2nd part of the string does not seem to have an affect on the height of the video.
If this is not an appropriate place to post a question related to the django-embed-video app, could you please suggest a good resource for django apps?
Thanks in advance for the help,
Chris
This is certainly an appropriate location for your question. However, I don’t believe I’ve ever seen any conversation on here discussing that particular app. I’m not sure how much help you may get here. (We’ll see!)
This is a third-party app - so any resources available is up to the author(s) of that app. I don’t see any “official support channels” identified in their docs, so I’m not sure how much they’re open to general user questions.
I’d first suggest taking a look at their code. See how much you can figure out from it. This includes looking at their tests as well.
Then you may want to review their github issues to see if there’s already information posted about this. Finally, you could try opening an issue on their repo and see what sort of response you get.
Hi Ken,
Thank you very much for your help. This gives me some good starting places. Much appreciated!
Thanks,
Chris
Hi Chris,
Did you find the answer to your question? I am also looking for it.
Report an issue/question on their GitHub repository.
But first perhaps experiment with the values and see what it does in the generated HTML. Alternatively dive
into the source code
.