This blog post is a demonstration of the MVC application display RealPlayer video.
Clients can watch the RealPlayer video, the prerequisite is to install RealPlayer client, just want to see Falsh or WMV video, all to install the client or related plug-ins and so on.
Insus.net the implementation method, or render the RealPlayer code in the controller.
Here is the RealPlayer player shown in cshtml. Insus.net wanted to do it in two ways.
The first is to use jquery's Ajax to get the GETRM () method:
The implementation of the above method, it seems that some netizens have different ideas, you can see the "MVC Application Show Flash (swf) video" http://www.cnblogs.com/insus/p/3604955.html comments.
So Insus.net has a second approach, using pure MVC, to abandon jquery:
When browsing, view source can see the difference between the two methods:
If you do not want to connect to the server multiple times, the second approach is recommended.
Finally, a real-time demo: