AutoPlay and loop video upon loading of webpage

Viewed 27

How to autoplay a video as soon as page loads(not youtube video) and loop it infinitely in HTML while using FLASK?

1 Answers

You can use this. Add muted property to autoplay <video src="test.mp4" width="30%" height="20%" controls autoplay **muted** loop></video>

Flask

{% block content %}

<video src="test.mp4" width="30%" height="20%" controls autoplay **muted** loop></video>

{% endblock %}
Related