C# .NET - How we Play video in MVC3 Framework ...

Asked By ALOK RANJAN on 26-Apr-12 02:00 AM
hi.....everyone

       gd morning        
                            I have scenario where I want to play video in mvc3 please provide me complete step .

                            it will greatly appreciated to all...


Regards

ALOK RANJAN






 

Reena Jain replied to ALOK RANJAN on 26-Apr-12 02:51 AM
hi,

try like this and let me know

<!DOCTYPE html>
<html>
  <head>
    <title>MediaPlayer Video</title>
  </head>
  <body>
    @Video.MediaPlayer(
      path: "Media/sample.wmv", 
      width: "400", 
      height: "600", 
      autoStart: true, 
      playCount: 2, 
      uiMode:  "full",
      stretchToFit: true,
      enableContextMenu: true,
      mute: false,
      volume: 75)
  </body>
</html>
Somesh Yadav replied to ALOK RANJAN on 26-Apr-12 04:20 AM
check this,

http://www.codeproject.com/Articles/224378/Custom-Controls-for-MVC3