2

I have a file called "C:\folder\movie.mp4". How can I play this in chrome? I tried using html5 video tag, but no luck. I see the player but cannot click play.

<video width="320" height="240" controls><source src="file:///C:/folder/movie.mp4" type="video/mp4">Your browser does not support the video tag.</video>
quldude
  • 507
  • 5
  • 16
  • Why would any good browser implementation allow this? It's a huge security risk, and has little good uses, if any. – RamenChef Aug 28 '16 at 20:15
  • this question was already answered here: http://stackoverflow.com/questions/8885701/play-local-hard-drive-video-file-with-html5-video-tag – G07cha Aug 28 '16 at 20:16

1 Answers1

1

It looks like your code is okey, try placing the video in the same folder of the html document, so let's say you did :

<video width="320" height="240" controls><source src="movie.mp4" type="video/mp4">Your browser does not support the video tag.</video>

Or, place it in a subfolder of the html folder, like so :

<video width="320" height="240" controls><source src="folder/movie.mp4" type="video/mp4">Your browser does not support the video tag.</video>

It should work, because it works for me.

DjaouadNM
  • 22,013
  • 4
  • 33
  • 55