1

I have video in .mp4 format. and I want show that in my html page, For that I use following tag

 <video controls="controls" class="video-ctrl">
        <source src="~/Content/Vedio/Care.mp4" type="video/mp4" />
 </video>  

This is worked in firefox, but not worked in chrome.

shyama
  • 331
  • 3
  • 6
  • 15
  • possible duplicate of [html5 video issue with chrome](http://stackoverflow.com/questions/16773986/html5-video-issue-with-chrome) – redditor Nov 26 '14 at 04:02

1 Answers1

1

You need webm file to play video on webpage. Example code below:

 <video controls="controls" class="video-ctrl">
     <source src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
     <source src="http://techslides.com/demos/sample-videos/small.webm " type="video/webm" controls>
 </video>

And Jsfiddle example

Vel
  • 9,027
  • 6
  • 34
  • 66