When you minimize the C2-ejecta application and go back to it, you get a javascript error about a null context
This change fixed it:
in the Audio plugin:
- Code: Select all
+++ ...\exporters\html5\plugins\audio\runtime.js
@@ -2726,7 +2726,7 @@
return;
// upon resume: first resume the whole context
- if (!s && context["resume"])
+ if (!s && context && context["resume"])
context["resume"]();
var i, len;
@@ -2734,7 +2734,7 @@
audioInstances[i].setSuspended(s);
// after suspend: also suspend the whole context
- if (s && context["suspend"])
+ if (s && context && context["suspend"])
context["suspend"]();
};
For some unknown reasons, context might probably be null during a few frames and then the audio kicks in back.
Operating System and Service Pack
iOS
Construct 2 Version ID
r186.2