C# 显示视频文件
我想在windows应用程序中显示视频文件。 请帮我了解详细情况。C# 显示视频文件,c#,video,C#,Video,我想在windows应用程序中显示视频文件。 请帮我了解详细情况。 谢谢。您可以安装Windows Media Player组件并转到: player1.URL=@“filename.avi” player1.Ctlcontrols.play() 访问:您可以使用Windows Media Player COM控件在Windows应用程序中显示视频。首先需要将Windows Media Player控件添加到Visual Studio中的工具箱中,然后在“设计”视图中将该控件拖动到Windows
谢谢。您可以安装Windows Media Player组件并转到: player1.URL=@“filename.avi”
player1.Ctlcontrols.play()
访问:您可以使用Windows Media Player COM控件在Windows应用程序中显示视频。首先需要将Windows Media Player控件添加到Visual Studio中的工具箱中,然后在“设计”视图中将该控件拖动到Windows窗体中 在代码中,可以将控件的URL属性设置为要播放的任何视频,如下所示:
// you may also use the full local path to the video, as opposed to a URL
axWindowsMediaPlayer1.URL = @"http://go.microsoft.com/fwlink/?LinkId=95772";
来源:您可以在WPF中使用组件。简单和直接的使用