This blog post demonstrates how the MVC application displays the RealPlayer video.
The client can watch the RealPlayer video only if you want to install the RealPlayer client. To view Falsh or WMV videos, you must install the client or related plug-ins.
The implementation method of Insus. NET is still the Render RealPlayer code in the controller.
The following shows the RealPlayer player in cshtml. Insus. NET can be implemented in two ways.
The first method is to use Ajax of jQuery to obtain the GetRm () method:
The above implementation method, it seems that some netizens have different ideas, can see the MVC application shows Flash (swf) Video http://www.cnblogs.com/insus/p/3604955.html comments.
Therefore, Insus. NET has the second method to implement it. Use pure MVC to discard jQuery:
When you browse the two methods, View Source can see their differences:
If you do not want to connect to the server multiple times, the second method is recommended.
The last is a real-time Demonstration: