以Windows窗体播放视频(所有格式) [英] playing video(all formats) in windows form

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

问题描述

嗨朋友..我正在开发一个项目,我必须通过将屏幕划分为4个部分在单个屏幕上播放4个视频..我已经完成了...我使用Windows媒体播放器播放这些视频..每个部分将由他们自己一个接一个地播放多个视频..一切都很好,但问题是当视频结束并且下一个视频正在盯着间隙视频播放其他部分暂停半秒钟左右。 ..你对此的想法??

解决方案

没有回答与所有格式相关的主要问题:这不是由Windows Media Player本身定义的。

实际上,默认情况下,可用媒体格式和编解码器的保留范围非常窄。通常,你需要安装更多,这是在系统上完成的(请参阅我对答案的评论)。



我强烈推荐,例如,免费软件K-Lite Codec Pack:

http://en.wikipedia.org/wiki/K -Lite_Codec_Pack [ ^ ],
http://codecguide.com/ [ ^ ]。



它配备了另类播放器,最佳之一,Windows Media Player经典家庭影院。与之相比,Windows Media Player的功能看起来很荒谬。但是,我不知道基于它的组件。



您可以使用基于视频LAN或VCL播放器的其他组件:

http://en.wikipedia.org/wiki/VLC_media_player [ ^ ],

https://videolan.org/vlc/ [ ^ ]。



这个不依赖于已安装的编解码器,可以播放大多数类型的媒体。如何在代码中使用它?它是开源的,提供API,并且有这个API的.NET包装器。您可以使用其中一个:

https://wiki.videolan.org/C_Sharp/ [ ^ ]。



所以,试试其中一些。它也可能有助于解决你的主要问题。



祝你好运,

-SA

使用窗口媒体播放器lirbary ur的每个对象创建不同的。可能有一个对象的单个实例播放所有四个视频。



或者你也可以检查窗口媒体播放器对象的交叉属性。希望这对你有帮助。


在媒体播放器中我们有一些叫做交叉的东西。如果以前的文件没有完成,它会启动文件,我们需要指定持续时间。检查该财产。可能会帮助你。



-SG


Hi friends.. I am developing a project in which i have to play 4 videos on single screen by dividing the screen into 4 portions.. i have done that.. i used windows media player for playing those videos.. Each portion will be playing multiple videos one after the other by them self.. Everything is fine but the problem is when a video is ended and the next video is staring- in that gap videos playing in other portions pause for half a second or so... Your thoughts on this??

解决方案

Not answering to the main problem, in relation to "all formats": this is not defined by Windows Media Player itself.
Actually, by default, the repertoire of available media formats and codecs is ridiculously narrow. Usually, you need to install a lot more, which is done on the system (please see my comment to the answer).

I would highly recommend, for example, freeware K-Lite Codec Pack:
http://en.wikipedia.org/wiki/K-Lite_Codec_Pack[^],
http://codecguide.com/[^].

It comes with alternative player, one of the best, "Windows Media Player Classic Home Cinema". Compared to it, Windows Media Player's features look ridiculous. However, I don't know the components based on it.

You can use a different component based on Video LAN, or VCL player:
http://en.wikipedia.org/wiki/VLC_media_player[^],
https://videolan.org/vlc/[^].

This one does not depend on installed codecs and can play the most of the kinds of media. How to use it in your code? It is open source, provides the API, and there are .NET wrappers for this API. You can use one of them:
https://wiki.videolan.org/C_Sharp/[^].

So, try some of them out. It may help to solve your main problem, too.

Good luck,
—SA


create different of each of the object of window media player lirbary u r using. May b there is a single instance of the object which playing all four video.

Or you can also check on crossover property of the window media player object. Hope this helps you.


in media player we have something call crossover. What that does it start a file eventhough the previous files doesnt get completed, we need to specify the duration. check with that property. might that help you.

-SG


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

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