The MVC application displays Flash (swf) videos.

Source: Internet
Author: User

Some time ago, Insus. NET has implemented "MVC use Flash to show pictures" http://www.cnblogs.com/insus/p/3598941.html in the demo, it can also display Flash swf media files. But you have to download the swfobject. js component.

This time, Insus. NET wants to demonstrate another method, combining MVC with jQuery. You do not need to download any third-party falsh components.

 

In the MVC application,

 

According to the Code #87 in, we use the Action method SwfVideoDemo () to create a view:

 

# Step 1: Add a div markup to load and display the Falsh video in the future.

# Step 2: Reference jquery's js class library.

# Step 3: Execute the Controller method.

# Step 4: load the html obtained by jQuery to step # div markup.


Finally, we will demonstrate the effect in Real Time:

 

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.