Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am playing videos in website not online(offline). videos will be in a folder of computer. how to play those videos securely. please help me i don't know i am a fresher.

What I have tried:

I googled i did't get solution.
Posted
Comments
debashishPaul 11-Feb-16 16:21pm    
Define "securely" please...

1 solution

C#
<video width="400" controls>
  <source src="mov_bbb.mp4" type="video/mp4">
  <source src="folder directory" type="video/fileextension">
  Your browser does not support HTML5 video.
</video>
 
Share this answer
 
Comments
Member 12124588 11-Feb-16 6:01am    
thanks for solution. mov_bb.mp4 can be played when we play outside web page means in folder. how can we protect that video. I known folder lock apart from that is there any way to make video to play only in web page and not directly from folder..
Beginner Luck 11-Feb-16 20:51pm    
Your video file and html file must be same web folder

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900