简体   繁体   English

在C#中播放DVD?

[英]DVD Playback in C#?

I am in need of a component or control that can read a DVD and play it back either on the current window, on another window, or in an arbitrary position on-screen (to be indicated programmatically). 我需要一个可以读取DVD并在当前窗口,另一个窗口或屏幕上任意位置(以编程方式指示)上播放DVD的组件或控件。 There do not need to be any user-visible controls on it; 不需要任何用户可见的控件; the app will handle that separately. 该应用将单独处理。 Where do I need to turn? 我需要去哪里?

FYI, I'm using .Net 3.5 in a winforms application. 仅供参考,我在Winforms应用程序中使用.Net 3.5。

I feel like I'm probably missing something simple, but it is escaping me. 我觉得我可能缺少一些简单的东西,但是它在逃避我。 ;-) ;-)

-- afward -冒犯

You can use a Windows Media Player control. 您可以使用Windows Media Player控件。 The example is in VB.NET, but you should be able to translate very easily. 该示例在VB.NET中,但您应该能够非常轻松地进行翻译。

http://msdn.microsoft.com/en-us/library/dd562852(VS.85).aspx http://msdn.microsoft.com/en-us/library/dd562852(VS.85).aspx

Embed the windows media control to your window. 将Windows Media控件嵌入到窗口中。 Here is the c# code : http://msdn.microsoft.com/en-us/library/dd562851(v=vs.85).aspx 这是C#代码: http : //msdn.microsoft.com/zh-cn/library/dd562851(v=vs.85).aspx

Using an embedded media player control is a very good idea. 使用嵌入式媒体播放器控件是一个非常好的主意。

you might also wanna take a look at: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3215&lngWId=10 您可能还想看看: http ://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3215&lngWId =10

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM