Are you confused about how to retrieve the video from the database on your website front end page?
So here's the solution given. To get the video from the database, you require the exact path of the video folder where you have saved the particular video during uploading time. The entire code of the retrieving video is identical with retrieving images from the database except the path of the video which was illustrated below in detail:
A global function is used to get the value of that variable which is used all over website pages. The global function is integrated into the functions file.
$query = "SELECT * FROM videos WHERE id=1";
<video width="100%" controls>
<source src="<?php echo $GLOBALS['video_path'].$row['product_video'];?>">
<!-- Here "controls" is used to get control on video (Start, Stop, Download etc.) -->