I've asked Ben to take a look. I made a test without success, so I'm waiting for his comments.
I've asked Ben to take a look. I made a test without success, so I'm waiting for his comments.
Thank you SO MUCH for your reply. I was starting to panic! In order to allow you to test this with varios HTML5 apps designed for iPad, I have removed the password access from my iPad section on my english website. Here is a direct link to this page.
http://www.educatom.net/#!ipad/c2oh
Feel free to test this problem with any of the 4 HTML5 apps currently online.
Just let me know if I can help in any way to contribute to your tests. Also let me know when you are done with the tests so that I can reactivatethe password protection.
Thank you for your help
any news about some solutions?
I might have one solution... don´t know if it is the best one but it seems to work:
1. Open your "Runtime.js" file with Notepad or Wordpad (or any other program that works).
2. Find "touchstart".
3. Change "touchstart" to "touchend".
4. Save file.
5. Replace old "Runtime.js" with the new one.
Yes this is a problem with touchstart, it seems Apple no longer allows sounds to be played in a touchstart event though they still allow it in touchend events (when you release a touch). Not sure if it's a bug and if they'll fix it in a future update.
A better solution than yours, move this:
if (this.run != null && this.run.rhEvtProg != null)
this.run.rhEvtProg.onMouseButton(0, 1);
from the touchstart function to the touchend function, just after this.keyBuffer[CRunApp.VK_LBUTTON] = false;
We're still trying to find a better solution, but until now it's the best one...
This line:
if (this.run != null && this.run.rhEvtProg != null)
this.run.rhEvtProg.onMouseButton(0, 1);
can not be found in my Runtime.js file. And this line...
this.keyBuffer[CRunApp.VK_LBUTTON] = false;
can not be found in my Runtime.js file.
Err, what version of CF 2.5 do you use? Have you installed the latest patch after installing the HTML5 exporter? Either the official build 284.10 or beta 285.1.
PS: modify Application.js directly in the Data\Runtime\Html5 folder.
Yes, I have installed the latest patch (beta 285.1) after installing the HTML5 exporter.
Hi all,
I have tried the first solution (replace touchstart by touchend in Runtime .js) and although this fices the no sound problem, it plays the sound with a slight lag which makes it unsuitable for, example, a virtual drum app wherer the sounds have to trigger instantly upon impact with the trigger object. I will try the second solution (moving the function) and keep you posted. THanks again Yves and Ben for the hard work in fixing
Oh, and did I mention, I Hate Apple.
Thanks
(EDIT) I understand that Touchend plays sound on release, therefore sound plays when touch is released. Not suitable for musical instrument sims or sounds triggered on touch.
Just wanted to add that the on-sreen touch joystick no longer responds when you switch touchstart to touchend.