Video playback problem using HTML5 native tag

Asked

Viewed 308 times

4

I recently hosted a video file on MP4 on my server and used the native HTML5 tag for playback of the media on the website. The sound comes out normally and the video is not displayed (I tested it on my PC and it performs both audio and video).

I suspect the problem relates to buffer, as it contains an approximate size of 142MB (around 1h16m playback). How can I solve this problem?

HTML code:

<video width="500" height="250" autoplay controls>
      <source src="meu_arquivo_mp4.mp4" type="video/mp4">
</video>

1 answer

4


Try to convert the video to mp4 but this time using H.264 codec

Video H.264 Audio AAC

HTML5 Video Encoding

  • Thanks! I will be converting, soon mark as solved.

  • 1

    Thank you very much for the information, everything worked as expected.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.