如何在WPF C#中播放双音频电影 [英] how to play dual audio movies in wpf c#

查看:48
本文介绍了如何在WPF C#中播放双音频电影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本的WPF媒体元素仅播放MKV文件,但不寻求并提供更改音频的工具.

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

是否可以在Media-element中播放此类视频.我已经搜索了很多Que ...关于stackoverflow的信息,例如扩展媒体元素功能等,或者使用了第三方组件,但是找不到任何合适的解决方案.

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.

我不是说您告诉我完整的教程,而只是给我指导,应该怎么做或可以选择什么?

我不想使用c ++,因为我喜欢WPF图形

有人可以帮助我吗?预先感谢!

Can somebody help me ? Thanks in advance!

推荐答案

我建议您使用一些C#VLC接口,它将为您提供比 MediaElement 内置的更多选项.

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

其中之一是 Vlc.DotNet ,它具有用于WPF的NuGet包(<代码> Vlc.DotNet.Wpf ),并允许您执行命令行中可以执行的任何操作(即,在独立VLC中可以执行的任何操作),因此更改音轨不会造成任何问题.

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.

这篇关于如何在WPF C#中播放双音频电影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆