Wednesday, December 3, 2014

How to video upload to database and watch video in the form

Simplest example will be, upload video and save that to server path say /video/file.mp4 and lets say your domain is example.com.


Then save video file path to DB only , instead of binary data, there is no point of saving binary data to DB, rather you need file , when video player loads.


When retrieving, get file path from DB and create html like following to play video in player.



<video src="http://ift.tt/1vKTMol; >
</video>





Tech


No comments:

Post a Comment