Vinii Shukla
Vinii Shukla

Reputation: 1

HTML5 - how to run videos from CLIENT MACHINE?

I'm not able to run videos from CLIENT MACHINE using HTML5. See the following syntax.

<div>
<video width="320" height="240" controls autoplay="autoplay">
<source src="file://D:/Videos/bigbuckbunny.mp4" type="video/mp4">
</video>
</div>

Somebody can help me on this?

Thanks in advance.

Upvotes: 0

Views: 195

Answers (1)

Teilmann
Teilmann

Reputation: 2168

I am very curious as to why you'll want to do this. This will never work, because you can't be sure that your client has the video on his/her harddrive. You also dont want to access your clients local machine, for security reasons.

If you would want all clients to see the same video, you should instead upload the video to a server and link to that. You could, for example, upload the video to your webhotel. Like this:

'http://yourwebsite.com/videos/bigbuckbunny.mp4'

Hope my answer was somewhat helpful.

Upvotes: 1

Related Questions