IMediaControl.Stop与WPF中的URL源一起挂起 [英] IMediaControl.Stop hangs with URL source in WPF

查看:56
本文介绍了IMediaControl.Stop与WPF中的URL源一起挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚意识到这结合了wpf和c ++,但不确定还有什么要问的.

just realised this incorporates wpf and c++ but not sure where else to ask.

我有一个奇怪的情况,我有一个正在播放url视频的过滤器. mediacontrol.stop挂起.我已经在winforms中测试了我的代码,并且一切似乎都能按预期工作.

i have an odd situation where i have a filter that is playing a url video. The mediacontrol.stop hangs. I have tested my code in winforms and all seems to work as expected.

但是,我需要使用WPF,如果我让视频播放到最后,停止播放就可以了.我的应用程序崩溃了,但停止工作了(崩溃可能是我可能需要调查的其他事情).似乎由于某种原因wpf死锁与仍然缓冲来自 净来源.

however, i need to use WPF and if i let the video play until the end, the stop works. my app crashes but the stop works (crash may be something else i may need to look into). it seems that for some reason wpf deadlocks with the still buffering data from the net source.

由于某些原因,这也在GraphEdit中发生.

This is also happening in GraphEdit for some reason.

有人知道这是否是问题,如果是这样,在调用mediacontrol.stop之前,我将如何停止缓冲数据.

does anyone know if this would be the issue and if so, how would i stop the buffering data before calling the mediacontrol.stop.

如果我的理论是错误的,那么其他任何指针都是很好的.

any other pointers would be great if my theory is wrong.

推荐答案

你好,

感谢您的帖子.我建议将您的问题发布到其中之一 Visual C ++开发人员中心 <跨度>> Visual C ++论坛 > Visual C ++ General 位于此处:

Thank you for the post.  I would suggest posting your question in one of the Visual C++ Developer Center > Visual C++ Forums > Visual C++ General located here:

http://social.msdn.microsoft.com/Forums/en-us/vcgeneral /threads

希望这对您有所帮助.

祝你有美好的一天!


这篇关于IMediaControl.Stop与WPF中的URL源一起挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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