在谷歌浏览器面临双重声音的问题,在运行边缘动画 [英] Facing an issue of double sound on Google chrome while running Edge animation

查看:223
本文介绍了在谷歌浏览器面临双重声音的问题,在运行边缘动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立在Adobe边缘动画动画本身对浏览器的正常工作。接下来的事情我添加了一个语音到完全同步,并使用J-查询运行完美的动画。

I have created an animation in Adobe Edge animate itself and its working fine on the browser. Next thing I have added a voice over to the animation which is completely synced and running perfectly using j-query.

下面是对此我面临的问题 - 在运行谷歌浏览器和Safari的动画,我得到双重的声音而烦恼。我曾互联网上发现,谷歌浏览器,支持MP3,OGG,WAV格式的音频。和Mozilla支持OGG格式。我已经连接了两种格式动画使用J-查询这是MP3和OGG格式。而谷歌浏览器读取这两种格式是创建一个问题。

Here's the problem which i am facing - while running the animation on the Google Chrome and Safari, I am getting double sound which is annoying. I have discovered on internet that Google chrome supports MP3, OGG, WAV formats for the audio. And Mozilla supports the OGG format. I have connected the two formats with animation using j-query which are MP3 and OGG format. And Google Chrome is reading the both formats which is creating an issue.

请帮我删除重复声音发出在Chrome中。

Please help me out to remove the double sound issue in Chrome.

问候
维卡斯·夏尔马

Regards Vikas Sharma

推荐答案

而不是使用<音频> 标签,你可以尝试使用HTML5音频对象和操作它的JavaScript。

instead of using an <audio> tag, you might try using the html5 audio object and manipulating it with javascript.

下面是一个例子:

var audiophile = new Audio();
audiophile.src = 'audiofile.mp3';
audiophile.play();

这样你只引用一个源文件,而且也没有同时播放两个机会。

that way you're only referencing one source file, and there's no chance of two playing simultaneously.

希望这有助于。

这篇关于在谷歌浏览器面临双重声音的问题,在运行边缘动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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