Answer the question
In order to leave comments, you need to log in
How to upload videos to the site correctly?
Friends, such a question. We have video in mp4 , respectively, there is a video tag for connecting video to the site.
But after all, the mp4 video itself is not universal, so you need to upload it in other formats in order to make it cross-browser.
Total we have
<video controls width="400" height="300">
<source src="video.mp4" type="video/mp4"><!-- MP4 для Safari, IE9, iPhone, iPad, Android, и Windows Phone 7 -->
<source src="video.webm" type="video/webm"><!-- WebM/VP8 для Firefox4, Opera, и Chrome -->
<source src="video.ogv" type="video/ogg"><!-- Ogg/Vorbis для старых версий браузеров Firefox и Opera -->
</video>
Answer the question
In order to leave comments, you need to log in
I will suggest uploading the video to YouTube. On the site, make a stub under the video. Previews can be loaded via the API. When you click on the stub, download the video from YouTube already - this way you save on downloading video data when loading the page.
On the site, you don’t have to worry about connecting several formats - my opinion. For example, MP4 is supported by almost 99% of browsers: https://caniuse.com/mpeg4
mp4 video is not universal
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question