MVC application Displays Flash (SWF) video

Source: Internet
Author: User

A while ago, Insus.net has implemented "MVC uses Flash to display 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 that swfobject.js component.

This time, Insus.net wanted to show you another way, MVC combined with jquery. You do not need to download any third party FALSH components.

You need to be under the MVC application,

Based on the #87 code in, we create a view with the action Method Swfvideodemo ():

#1步, add a div markup that will be loaded and displayed Falsh video in the future.

#2步, the JS class library that references jquery.

#3步, the method for that controller is executed.

#4步, add the HTML that jquery gets to the # # # of Div markup.


Finally, a real-time demo looks at the effect:

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.