In addition to playing Falsh on a webpage, FLV video is also the most common format. Insus. NET wants to implement this function in the MVC application.
This function downloads vcastr22.swf from the Internet. If you cannot find it online, download the http://download.cnblogs.com/insus//MVC/vcastr22.swf from the following link and place it under the Scripts directory under the application.
Create a model, because the previous exercise in the MVC application play RealPlayer (rmvb) Video http://www.cnblogs.com/insus/p/3611497.html has been created, it is ready for use directly, if in your application, no, this is also created.
Considering a website, Flv videos are played in more than one place, Insus. NET decides to create a PartialView with the Flv playback position. Use this PartialView. The main benefit of some views is that they can be referenced repeatedly in multiple places. Perhaps only some of these parameters are game-based.
After some views are written, create an Action on the relevant controller to create a view.
Create a FlvDemo View:
# 1Flv video playback position.
#2 reference the jQuery js library.
#3. Execute the Controller method.
#4. input parameters.
#5 load the video for the Div in the first step.
The following is a real-time Demonstration: