Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to play .mov files in video tag

I am trying to play .mov videos in HTML5 browser. I have tried everything available over the internet e.g.

  • attribute "controls"

  • using <source> tag

  • using src attribute with even changing MIME type to mp4.

But Nothing worked for me. Can anyone suggest solution for this?

like image 973
deepakchauhan Avatar asked Jan 23 '26 14:01

deepakchauhan


1 Answers

The Video tag only supports certain filetypes. The .MOV container uses the Quicktime codec which is proprietary Apple software and is not on the list of Media formats supported by the HTML audio and video elements. I'd suggest transcoding the footage to .MP4 and using that instead.

like image 119
luc122c Avatar answered Jan 25 '26 10:01

luc122c