简体   繁体   中英

Microsoft.DirectX.AudioVideoPlayback alternative in SharpDX

I want to play a video, and this is how it is done in 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.

Is it supported in 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. See Quickstart: video and audio (XAML) for more details.

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++). In Windows Store and Windows 8.1 phone apps, DirectX 11 is required, which is why Managed DirectX wasn't working for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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