Web development small white to how to insert video has a big problem, a period of time do not know where to start, want to import directly in the database, but failed to succeed, and then try to directly in the MyEclipse directly into the video.
For different players, the format of the video is also required, it is recommended to use storm decoding to convert the format.
Share the following tips:
Here, we are using the. mp4 file, under the video file under Webroot, configure the static resource in Spring-mvc and add the Flowplayer.min.js player to the JS file.
Finally, select the appropriate location in the. JSP page to insert the following code:
<div id= "Fh5co-gallery" class= "Fh5co-bg-section" >
<div class= "Row Text-center" >
<a name= "View" ><span > Teaching </span></a>
</div>
<center>
<video id= "Renyu" Controls Width= "height=" >
<source src= "<%=basepath%>video/xiaochouyu.mp4" type= ' Video/mp4 '/>
</video>
</center>
</div>
<script src= "Js/flowplayer.min.js" ></script>
How JSP Video plays