The MVC application plays FLV videos. Some views can be referenced multiple times.

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.