Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

html5 doesn't play online but DOES play offline

  • 4 ответа
  • 2 имеют эту проблему
  • 1 просмотр
  • Последний ответ от atar

more options

Hi, I built a html5/JS animation (using Flash CS6) and put it online to test it. This animation plays perfectly in every browser, except Firefox.

One weird thing though, if I right-click the offline html file and choose "open with > Firefox" it DOES play the animation, but quite a bit slower than it's supposed to.

Why can't I get the online version to work? I need this animation to work on a website.

Link: http://www.access.gr/attiki/test1.html

Hi, I built a html5/JS animation (using Flash CS6) and put it online to test it. This animation plays perfectly in every browser, except Firefox. One weird thing though, if I right-click the offline html file and choose "open with > Firefox" it DOES play the animation, but quite a bit slower than it's supposed to. Why can't I get the online version to work? I need this animation to work on a website. Link: http://www.access.gr/attiki/test1.html

Изменено atar

Выбранное решение

Thanks! Reading those other discussions was actually helpful and solved the problem. The solution was to update the .js scripts to a newer/latest version. THAT SIMPLE!

Latest versions currently:

<script src="http://code.createjs.com/easeljs-0.7.1.min.js"></script> <script src="http://code.createjs.com/tweenjs-0.5.1.min.js"></script> <script src="http://code.createjs.com/movieclip-0.7.1.min.js"></script> <script src="http://code.createjs.com/preloadjs-0.4.1.min.js"></script> <script src="http://code.createjs.com/soundjs-0.5.2.min.js"></script>

Thank you very much

Прочитайте этот ответ в контексте 👍 0

Все ответы (4)

more options

Hi atar, Firefox's web console displays this message when I load your page:

TypeError: a.context.createGainNode is not a function
soundjs-0.4.0.min.js:34

I don't understand your script well enough to know why that occurs, but often "is not a function" errors actually indicate that the object is not present or is not the expected object type.

more options

hm... unfortunately that doesn't help me at all, because I didn't actually write any script. The script was generated by Flash CS6.

But if the object wasn't present, how comes it "plays" in every other browser AND in Firefox if I open the offline html file?

The screenshots below show the actual online file in Chrome and the offline file in Firefox. The only thing NOT working is online/Firefox

more options

Starting in Firefox 25, the older sound.js works locally but not on the server. An update apparently is available as of November 2013, See:

more options

Выбранное решение

Thanks! Reading those other discussions was actually helpful and solved the problem. The solution was to update the .js scripts to a newer/latest version. THAT SIMPLE!

Latest versions currently:

<script src="http://code.createjs.com/easeljs-0.7.1.min.js"></script> <script src="http://code.createjs.com/tweenjs-0.5.1.min.js"></script> <script src="http://code.createjs.com/movieclip-0.7.1.min.js"></script> <script src="http://code.createjs.com/preloadjs-0.4.1.min.js"></script> <script src="http://code.createjs.com/soundjs-0.5.2.min.js"></script>

Thank you very much