how to play dual audio movies in wpf c#

橙三吉。 提交于 2019-12-04 14:16:59

问题


The basic WPF media-element just play the MKV file but does't seek and provide facility to change audio.

Is it possible to play this type of videos in Media-element. I have searched so many Que... on stackoverflow like extending media-element functionality etc. or using third party component but does't find any suitable SOLUTION.

I does't mean you tell me a complete tutorial but just only gives me direction, what should I do or what can be the alternative?

I don't want to use c++ because I like WPF Graphics

Can somebody help me ? Thanks in advance!


回答1:


I'd suggest you to use some C# VLC interface, it will provide you with a lot more options than built in MediaElement.

One of such is Vlc.DotNet, it has NuGet package for WPF (Vlc.DotNet.Wpf), and lets you do anything that you could do from command line (that is, anything you could do in standalone VLC) so changing audio tracks will not pose any problem.



来源:https://stackoverflow.com/questions/51961420/how-to-play-dual-audio-movies-in-wpf-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!