2

I want to include a video for my website which is locally available in my C drive. But after I have done the website only plays audio. If I add a thumbnail only that image is shown. My code

<!DOCTYPE html>
<html>
    <head>
      <meta charset ="UTF-8">
      <meta name ="description" content="It is nice website">
      <title>Ajay Web</title>
    </head>
    <body>
      <video src="C:\Users\ajayr\Downloads\[TIF]_S04_E16_The_Big_Bang_Theory_720p_10bit.mkv"  controls></video>
      
     
    </body>
</html>

1 Answers1

0

MKV is - e. g. - in Chrome not supported without plugins or extensions.

Having a look here on SO, I found another question about this (incl. solution).

Curanai
  • 77
  • 6
  • The answer for that question is somewhat unclear. But all they trying to say is you cant play a MKV file in chrome right ,? I am just learning HTML. –  Jan 24 '21 at 14:35
  • @Ajayx no problem about learning something new. pls follow the link and check the attribute at the video tag - seems like a hack/workaround. – Curanai Jan 24 '21 at 15:02
  • @Ajay you need to provide a relative url – sonali Jan 29 '21 at 00:41