Playback of WMV videos using simple MVC applications

Source: Internet
Author: User

This blog post describes how to play a Windows media video (. wmv) file in the MVC application.

The implementation method of Insus. NET is to embed the media player component into the ContentResult Action of the controller of MVC. In this demonstration, Insus. NET only input three parameters, video length and width, and video file path.

If you want to set other parameters, you can follow the same settings.

Parameters can be set directly in the Action or from the database, provided that the program you set parameters are stored in the database.
 

Step 1: Create a controller:


Step 2:


Step 3: Real-Time demonstration. The video file comes from the video that comes with Win7. It was originally in MP4 format, and Insus. NET used video conversion software to convert it to. wmv format.

 

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.