[英]Microsoft.DirectX.AudioVideoPlayback alternative in SharpDX
I want to play a video, and this is how it is done in DirectX: 我想播放视频,这是在DirectX中完成的过程:
Microsoft.DirectX.AudioVideoPlayback.Video video = new Video(fileName);
video.Owner = panel1;
video.Play();
But I can't find AudioVideoPlayback
in SharpDX
, the DirectX API for .NET. 但是我在SharpDX
(用于.NET的DirectX API)中找不到AudioVideoPlayback
。
Is it supported in SharpDX? SharpDX支持吗? Any tip is appreciated. 任何提示,不胜感激。
For playing video in Windows 8.1 store apps and Windows Phone 8.1, the preferred method is using the XAML tools Microsoft provides in their framework that makes this fairly simple. 为了在Windows 8.1商店应用程序和Windows Phone 8.1中播放视频,首选方法是使用Microsoft在其框架中提供的XAML工具,这使得此操作相当简单。 See Quickstart: video and audio (XAML) for more details. 有关更多详细信息,请参见快速入门:视频和音频(XAML) 。
Managed DirectX was released in 2002 [1] and based on DirectX 9. It has been deprecated for a while, which is why for users of managed code, libraries like SharpDX exist to provide a managed wrapper around the unmanaged (C++). 托管DirectX于2002年基于DirectX 9发行[1] 。它已被弃用了一段时间,这就是为什么对于托管代码的用户来说,存在SharpDX之类的库来为非托管(C ++)提供托管包装的原因。 In Windows Store and Windows 8.1 phone apps, DirectX 11 is required, which is why Managed DirectX wasn't working for you. 在Windows Store和Windows 8.1手机应用程序中,需要DirectX 11,这就是为什么Managed DirectX无法为您工作的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.