Google的声音翻译成WebBrowser控件听不见 [英] Sound From Google Translate Inaudible from WebBrowser Control

查看:169
本文介绍了Google的声音翻译成WebBrowser控件听不见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用URL为 http://translate.google.com/的Web浏览器创建Windows窗体并运行时它,似乎工作正常,除了一个细节.

翻译该项目后,会出现一个小的扬声器图标.通常(在我的真实浏览器中),当我单击该短语时,该短语会通过我的扬声器播放.但是,在WebBrowser中,没有声音播放.知道为什么它不起作用或如何使它起作用吗?

When I create a Windows Form with a WebBrowser that has a URL of http://translate.google.com/ and run it, it seems to work fine, except for one detail.

When the item is translated, a little speaker icon shows up. Normally (in my real browsers), when I click that, the phrase plays through my speakers. However, in the WebBrowser, no sound plays. Any idea why that is not working or how I could get it to work?

推荐答案

FF版本并不重要.

如您所见http://msdn.microsoft.com/zh-cn/library/aa741313(v=VS.85).aspx,则有效的IE浏览器控件版本是否支持HTML音频是什么?控件是IE容器应用程序和MSHTML引擎之间的一层.如果shdocvw.dll与您的Real Browser所看到的版本不同,则可能就是为什么存在差异的原因.

我的机器上当前的信息版本是6.1.7601.17514(在System32中),实际上机器上有2个版本,但是它们位于WinSXS缓存/备份区域中.

我刚刚尝试了使用Webbrowser控件在我的机器上运行vb.net winforms并打算使用translate.google,小扬声器在.Net4上工作,但在.Net3.5上没有工作尽管出现了图标,所以在winforms中必须有另一个包装器破坏了该功能.

因此解决方案是切换到.net 4:)
The FF version isn''t important.

What is is whether the version of the webbrowser control which is effectively IE supports the HTML audio as you can see http://msdn.microsoft.com/en-us/library/aa741313(v=VS.85).aspx the webbrowser control is a layer between the IE container app and the MSHTML engine. If the shdocvw.dll is a different version from what your Real Browser is seeing then that could be why there is a difference.

The current version on my machine for info is 6.1.7601.17514 (that''s in System32) there are in fact 2 versions on the machine, but they are in the WinSXS caches/backup areas.

I have just tried on my machine vb.net winforms with webbrowser control and going to translate.google, and the little speaker works on .Net4 but does not on .Net3.5 despite the icon appearing, so there must be another wrapper around this in winforms which is breaking the functionality.

So the solution would be to switch to .net 4 :)


我仍然无法在计算机(XP)上正常运行,但是我将同事发送给了运行Windows 7没问题.两天前.但是,昨天没有.他说他没有运行任何Windows更新程序(但由于混淆了错误消息而运行了scandisk,这是由于他对文件夹和zip文件中的内容感到困惑!)这有意义吗?

他只是将Windows恢复到可以正常工作的前一天,但仍然无法正常工作!!!!!!!
I''ve still not managed to get this to work on my computer (XP) however a colleague I sent the application to running windows 7 had no problems. Two days ago. Yesterday, however, it did not. He says he has not run any windows updates (but having run scandisk because of confusion over error messages caused by him getting confused over what was a folder and what was inside a zip file!!) Does this make any sense??

He has just restored windows to the day before it worked and it still doesn''t work!!!!


清空Internet Explorer缓存(即Internet临时文件夹),然后重新启动应用程序..它有效..
Empty Internet Explorer Cache (ie Temporary Internet Files folder) and then restart your application.. it works..


这篇关于Google的声音翻译成WebBrowser控件听不见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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