视频播放问题 [英] Problem with video playing

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

问题描述

我们正在维护用C#和VB编写的应用程序.其界面是用Flash 8.0编写的.

该应用程序正在播放硬盘驱动器上的视频文件,并且在我们的开发计算机上进行调试或发布时,都可以正常工作.但是在客户端计算机上的生产中,视频冻结并且应用程序将不响应.

应用程序不会崩溃,也不会引发任何异常. Windows仍在运行,因为它响应网络请求.应用程序的制作方式是无法在客户端计算机上将其关闭,以使客户端在视频播放完成之前无法执行任何操作,并且由于视频冻结而永远无法执行.

使用 winmm.dll 并通过"media"参数播放视频.
它不会一直发生,有时可以播放某些视频,但是下次播放视频时,它会冻结.

有任何建议吗?

We are doing the maintenance of an application that is written in C# and VB. Its interface is written in Flash 8.0.

The application is playing video files from hard drive, and in debug or release on our development machines, it works ok. But in production on client machines, the video freezes and application won''t respond.

Application does not crash, nor does it throw any exception. Windows is still running since it responds to network requests. Application is made in a way that it can''t be turned off on client machines so they can''t do anything until video play is done, and it is never done because video freezes.

The videos are played using winmm.dll with "media" parameter passed.
It doesn''t happen all the time, and sometimes it plays certain video okay, but next time when a video is played, it freezes.

Any suggestions?

推荐答案

该软件听起来很混乱.我认为VB表示VB.NET,所以您在后端使用.NET而在前端使用Flash? .NET具有用于播放视频的媒体播放器控件,而且我敢肯定Flash会这样做,那么为什么要这样播放它们呢?

在这种情况下,我将添加一些日志记录,以便您获得冻结应用程序时所在位置的日志,尽管在这种情况下,听起来好像是冻结在媒体播放器的代码中而不是你自己的.您的视频是否使用了可能已损坏的任何特殊编解码器?视频播放时,您的代码是否有任何作用?如果您按CTRL-SHIFT-ESC,是否出现任务管理器?如果您要阻止它,是否可以尝试不阻止它,以查看您的应用程序正在使用多少内存以及它是否响应?
The software sounds very messy. I assume VB means VB.NET, so you''re using .NET on the back end and flash on the front ? .NET has a media player control for playing videos, and I''m sure flash does to, so why are you playing them this way ?

In situations like this, I''d add some logging, so that you get a log written of where the app is when it freezes, although in this case, it sounds like it''s freezing inside the media player''s code and not your own. Do your videos use any special codecs that might be corrupted ? Does your code do anything while the videos play that could be causing this ? If you hit CTRL-SHIFT-ESC, does the task manager come up ? If you''re blocking it, could you try not blocking it, to see how much memory your app is using and if it''s responsive ?


感谢您的回答.非常感谢.

申请书的写法是上帝知道原因.编写该文件的人认为这是正确的方法.

我们添加了一些日志记录,但是似乎应用程序只是挂起了,因此它什么也不记录.它仅记录最后播放的视频,因此我们知道aprox.当应用程序停止播放时.我已经看到事件查看器和应用程序正在尝试更新自身(它记录为错误,因为由于代理设置而无法更新自身),因此我们知道一个应用程序仍在运行,但是它挂起并且视频播放器冻结了界面和用户无法与应用程序进行任何交互.
沃森博士也没有发现任何东西,因此它从未引发任何异常.
也许这是相关的.所有客户端计算机都在运行WinXP SP1和SP2,在装有WinXP SP3的测试计算机上,我们无法产生相同的问题.
可能是WinXP版本还是winmm.dll版本?
Thanks for your answer. We appreciate it.

The application is written that way God knows why. The guy(s) who wrote it thought it is the right way.

We added some logging but it seems application just hangs, so it logs nothing. It logs only the last video played so we know aprox. when application stopped playing. I''ve seen event viewer and application is trying to update itself (it is logged like an error because it can''t update itself due to proxy settings) so we know an application is alive, but it just hangs and video player froze the interface and user can''t do any interaction with application.
Also Dr Watson didn''t catch anything so it never threw any exception.
Maybe this is relevant. All client machines are running WinXP SP1 and SP2, and on our test machine with WinXP SP3 we couldn''t procreate same issue.
Could it be about WinXP version or winmm.dll version?


更新:

我们对代码进行了很多更改(完全更改了视频播放器,数据库comm类等),但没有任何效果.
然后,我们将客户端计算机更新为WinXP SP3,但没有任何效果.
最终,我们发现在我们的测试机上,它永远不会冻结,并且由我们的一个人维护,它具有Flash Player 10.0.45.2,而客户端计算机具有Flash Player9.x.因此,我们将客户端计算机上的Flash Player更改为最新版本,到目前为止,它已经可以工作几个小时了.通常它将在20分钟到1小时后冻结.
我已经读到Flash Player 9有几个主要错误,所以我想它导致我们的应用程序挂起.如果他们有同样的问题,我想听听别人对此的看法?

希望对其他有同样问题的人有所帮助.
Update:

We did a lot of changes in our code (changed entirely video player, database comm classes etc.) and it had no effect.
Then we updated client machines to WinXP SP3 and it had no effect.
Finally we found out that on our test machine which never froze, and which is maintained by one of our guys, has Flash Player 10.0.45.2 and client machines have Flash Player 9.x. So we changed Flash Player on clients machine to newest one and so far it is working for several hours now. Usually it would freeze after 20 minutes to 1 hour.
I''ve read that Flash Player 9 has few major bugs so I guess it was causing our application to hang. I would like to hear someones opinion on this if they had same issue?

Hopefully this will help us, as somebody else who has same issue.


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

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