Windows窗体的媒体播放器 [英] Media player for windows forms

查看:123
本文介绍了Windows窗体的媒体播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在我的应用程序中使用Windows媒体播放器控件...但这需要太多的CPU使用率导致其他线程暂停一两秒......请建议我任何有效和合法的方式来播放音频和视频C#中的文件...

I have been using windows media player control in my application... But this take too much cpu usage causing other threads to pause for one or two seconds... Please suggest me any efficient and legal way to play audio and video files in C#...

推荐答案

看看这个: C#中的低级音频播放器 [ ^ ]和: C#中的全双工音频播放器,使用waveIn / waveOut API [ ^ ]



希望它有帮助

pd更重要的是,activeX媒体播放器控件会产生内存泄漏。
Take a look at this: A low-level audio player in C#[^] and this: A full-duplex audio player in C# using the waveIn/waveOut APIs[^]

Hope it helps
p.d. Even more, the activeX media player control produces memory leaks.


请丢弃previos解决方案,因为它不完整,没注意'视频'部分。我在一个应用程序中也使用了媒体播放器但是产生了内存泄漏,客户决定不在应用程序中显示帮助视频。



无论如何,有一个包装器项目用于这里的VLC库: https://forum.videolan.org/viewtopic.php ?f = 32& t = 58438& sid = e4f9d616bffd69d49e92f74bdace9dda [ ^ ]在sourceforge中托管: http://sourceforge.net/projects/ libvlcnet / [ ^ ]
Please, discard previos solution as it is incomplete, did not pay much attention to the 'video' part. I was using the media player too in one application but was producing memory leaks and the client decided not to show help videos in the application.

Anyway there's one wraper project for the VLC library here: https://forum.videolan.org/viewtopic.php?f=32&t=58438&sid=e4f9d616bffd69d49e92f74bdace9dda[^] hosted in sourceforge here: http://sourceforge.net/projects/libvlcnet/[^]

这篇关于Windows窗体的媒体播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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