Previously insus.net was developing ASP. RealPlayer's RMVB format video was not played and displayed on the ASPX page. Now that you have learned ASP. NET MVC, try this again, and look at the MVC application that it can run.
Here are the methods and steps to implement:
One, to establish a model, is to solve the long parameters.
Second, customize a result, create a directory results under the MVC application, and then build a new class Videomedia.
This custom class inherits Contentresult and the override Executeresult () method.
Three, create the action in the controller:
Four, in the Views/exercise directory, create a rmvbdemo.cshtml view:
Five, Live Demo:
Wow, wrong, can't play, what happens? In the previous demo, the "MVC Application Display RealPlayer (RM) Video" Http://www.cnblogs.com/insus/p/3607808.html,Realplayer RM was able to play normally, Because the client has already installed the RealPlayer. Why not RMVB format?
Workaround, add the MIME Type to IIS:
Furthermore, if you are developing with Visual Studio, it is typically IIS Express, how do you add this MIME type? It's OK, you can add it directly in Web. config.
Browse again, OK: