[Django] #35168: Problem with templates and the <video></video> tag

9 views
Skip to first unread message

Django

unread,
Feb 5, 2024, 11:12:11 PM2/5/24
to django-...@googlegroups.com
#35168: Problem with templates and the <video></video> tag
-------------------------------------+-------------------------------------
Reporter: Estuardo | Owner: nobody
Ramírez |
Type: Bug | Status: new
Component: Template | Version: 5.0
system | Keywords: templates, video
Severity: Normal | tag, bug
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The templates have a problem because when you create a <video></video> tag
it plays the video but when the tag has "controls" controls, it does not
allow the video to go forward or backward and it is a problem since you
cannot do anything, not even using js or css code.

And NO, it is not a browser compatibility problem, no matter what browser
you do it in, it doesn't work, whether you use static, media or whatever
you use, it doesn't work.
If you run this code in Django:

{{{
{% load static %}
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<video width="640" height="360" controls>
<source src="{% static "prueba.mp4" %}" type="video/mp4">
Tu navegador no soporta el tag de video.
</video>
</body>
</html>
}}}


It doesn't work, that is, the video plays but it doesn't let you rewind or
fast forward the video.
And if you run that code in a simple html file without all that magic it
works perfectly.

The error has been around for many versions, I have already tried it with
different versions. I noticed this error thanks to the Django community in
Spanish on Telegram
--
Ticket URL: <https://code.djangoproject.com/ticket/35168>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 5, 2024, 11:48:04 PM2/5/24
to django-...@googlegroups.com
#35168: Problem with templates and the <video></video> tag
-------------------------------------+-------------------------------------
Reporter: Estuardo Ramírez | Owner: nobody
Type: Bug | Status: closed
Component: Template system | Version: 5.0
Severity: Normal | Resolution:
| worksforme
Keywords: templates, video | Triage Stage:
tag, bug | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => worksforme

Comment:

Thanks for the report, however it works for me. Django doesn't do anything
specific with the `<video>` tags so if it works in static HTML, it will
work in DTL.

You can try to use one of
[https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
support channels] where folks will help you debug your issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/35168#comment:1>

Reply all
Reply to author
Forward
0 new messages