天道酬勤,学无止境

opera

HTML5 video MEDIA_ERR_DECODE occurs randomly

问题 我正在开发的项目女巫包含 6 个音频和视频元素,它们一个接一个地播放。 发布前的代码顺序是这样的: 预加载所有媒体资源直到“canplaythrough” 播放视频-1 停止 video-1 并播放 audio-1 停止音频 1 并再次播放视频 1。 然后 video-1 播放 2-3 秒并停止发送错误代码 3(3 = MEDIA_ERR_DECODE - 解码时发生错误)。 我试图通过链接播放相同的视频,并且播放正常。 此外,该问题在某些浏览器的某些操作系统上随机发生。 例如: Win10最新Opera-出现 Win10 最新 Chrome - 很好 MacOS 所有浏览器 - 很好另一个 MacOS 最新的 Chrome - 出现在 10 个案例中的 1 个 iPhone所有浏览器 - 很好 iPad所有浏览器 - 很好 更新仅在第一次查看或禁用缓存时才在 Win10 最新的 Opera 上发生。 更新 2视频编解码器是 H.264,音频编解码器是 AAC,帧速率是 24。 回答1 MEDIA_ERR_DECODE 的定义 媒体错误代码的 HTML5 规范 在确定资源可用后,解码媒体资源时发生某些描述错误。 Mozilla MediaError 文档 尽管先前已确定可用,但在尝试解码媒体资源时发生错误,从而导致错误。 Firefox 错误消息(如在此支持票中)

2022-05-14 22:11:04    分类:技术分享    javascript   html   video   decode   opera

Is there user-select for Opera 10.62 and IE9?

问题 我一直在尝试为 Opera 10.62 和 IE9 应用user-select ,但没有成功。 我不能/不会将事件与preventDefault()的 JavaScript 绑定,因为有很多地方要设置为不可选择,我仍然需要在几个地方保留选择。 事实上,我希望整个文档的默认行为是不可选择的,为此我在样式表中设置了以下内容: * { -o-user-select: none; -webkit-user-select: none; -moz-user-select: -moz-none; -khtml-user-select: none; -ms-user-select: none; user-select: none; } 一切都适用于 Firefox 4、Chrome 7 和 Safari 5。只有 IE9 和 Opera 10.62 无法正常工作。 有任何想法吗? PS:我的目标是现代浏览器。 回答1 您是否尝试使用::selection {color:currentColor;background:transparent} ? 对于 Firefox,您可以使用::-moz-selection 。 https://developer.mozilla.org/En/CSS/::selection http://msdn.microsoft.com/en-us/library

2022-05-14 19:39:15    分类:技术分享    css   internet-explorer   opera

Opera - driver.WindowHandles returns wrong count

问题 在我的场景中,我正在验证单击链接是否导航到另一个页面(验证页面标题)。 IE 、 FF和chrome按预期返回 2,但Opera返回 4。在运行测试时我没有打开任何其他 Opera 实例。 它单击链接并打开所需的页面,但 WindowHandles 返回 4。 代码: string BaseWindow = Drivers._driverInstance.CurrentWindowHandle; Drivers._driverInstance.SwitchTo().Frame(Drivers._driverInstance.FindElement(By.ClassName("iframe-fix"))); if (Drivers._driverInstance.GetType().Name.ToString() == "InternetExplorerDriver") { IJavaScriptExecutor js = (IJavaScriptExecutor)Drivers._driverInstance; js.ExecuteScript("arguments[0].click();", Drivers._driverInstance.FindElement(By.LinkText("Professional Services."))); } else {

2022-05-13 10:18:22    分类:技术分享    c#   selenium   selenium-webdriver   opera

My Navigation Bar CSS is overwriting my other links CSS on Opera

问题 我为导航栏设置样式的方式如下: nav a:link,a:visited { display:block; width: 125px; color:#000000; background-color:#FFFFFF; text-decoration:none; font-family: Arial,Helvetica,sans-serif; font-variant:small-caps; padding: 5px; font-size: 18px; } 我的其余链接的样式如下: footer a:link { color:#7A7A7A; } footer a:visited { color:#7A7A7A; } footer a:hover { color:#383838; } footer a:active { color:#000000; } 问题是 Opera 无法识别 a:link,a:visited 之前的 #nav 或 #footer,因此,我页面上的每个链接看起来都像 Opera 中的导航栏。 谁能想到解决这个问题? HTML <ul id="nav"> <li> <a href="#home">Home</a> </li> <li> <a href="#news">About Us</a> </li> <li> <a href="#contact"

2022-05-05 11:13:08    分类:技术分享    css   opera

Pause script execution on opera dragonfly

问题 在 Chrome 开发工具中,我们可以使用界面底部一行的“暂停”图标来中断所有异常。 所以当我们的网页在运行的时候,我们可以在不加断点的情况下突然中断,并且知道脚本在哪里停止。 我们可以在歌剧蜻蜓中做到这一点吗? 谢谢。 回答1

2022-05-03 22:11:05    分类:技术分享    opera   pausing-execution   opera-dragonfly

HTML5 video MEDIA_ERR_DECODE occurs randomly

I'm developing the project witch contains 6 audio and video elements which plays one after another. The code order before issue is like that: preloading all media resources till "canplaythrough" playing video-1 stoping video-1 and playing audio-1 stoping audio-1 and playing video-1 again. Then the video-1 is playing 2-3 seconds and stops sending the error code 3 (3 = MEDIA_ERR_DECODE - error occurred when decoding). I have tried to play the same video just by link and it is playing fine. Also the problem randomly occurs on some OS in some browsers. For example: Win10 latest Opera - occurs

2022-05-02 09:12:28    分类:问答    javascript   html   video   decode   opera

Opera - driver.WindowHandles returns wrong count

In my scenario, I'm verifying whether clicking on a link navigates to another page (verifying for the page title). IE, FF and chrome return 2 as expected but Opera returns 4. I didn't have any other Opera instances opened at the time of running tests. It clicks on the link and required page is opened but WindowHandles returns 4. Code: string BaseWindow = Drivers._driverInstance.CurrentWindowHandle; Drivers._driverInstance.SwitchTo().Frame(Drivers._driverInstance.FindElement(By.ClassName("iframe-fix"))); if (Drivers._driverInstance.GetType().Name.ToString() == "InternetExplorerDriver") {

2022-04-28 21:23:05    分类:问答    c#   selenium   selenium-webdriver   opera

My Navigation Bar CSS is overwriting my other links CSS on Opera

The way I have styled my navigation bar follows as: nav a:link,a:visited { display:block; width: 125px; color:#000000; background-color:#FFFFFF; text-decoration:none; font-family: Arial,Helvetica,sans-serif; font-variant:small-caps; padding: 5px; font-size: 18px; } The rest of my links are styled as this: footer a:link { color:#7A7A7A; } footer a:visited { color:#7A7A7A; } footer a:hover { color:#383838; } footer a:active { color:#000000; } The problem is that Opera cannot recognize the #nav or #footer before the a:link,a:visited and as such, every link on my page looks like the navigation bar

2022-04-28 14:12:20    分类:问答    css   opera

Is there user-select for Opera 10.62 and IE9?

I have been trying to apply user-select for both Opera 10.62 and IE9 without success. I can't/won't bind events with JavaScript that preventDefault(), because there are so many places to be set unselectable and I still need to retain selections in several places. In fact, I want the default behavior to be unselectable for the whole document, and as for that I have set the following in my stylesheet: * { -o-user-select: none; -webkit-user-select: none; -moz-user-select: -moz-none; -khtml-user-select: none; -ms-user-select: none; user-select: none; } Everything works great with Firefox 4, Chrome

2022-04-26 14:08:27    分类:问答    css   internet-explorer   opera

Pause script execution on opera dragonfly

In Chrome dev tools we can use the 'Pause' icon on the bottom row of the interface to break on all exceptions. So when our web page is running, we can break it suddenly without adding breakpoint and know where the script stop. Can we do that in opera dragonfly? Thanks.

2022-04-26 05:23:43    分类:问答    opera   pausing-execution   opera-dragonfly