Hello,
I exported one of my project in html5. Everything seems ok BUT on ios, no sounds are played on iphone.
All sounds are .wav played on mouseEvent or so.
Here is a peace of code I quickly made to reproduce the issue

function playSound (target, event)
if target:hitTestPoint(event.x, event.y) then
local mySound = Sound.new("pop.wav")
local uiSfxChannel = mySound:play()
uiSfxChannel:setPitch(math.random())
uiSfxChannel:setVolume(.7)
end
end
local playBtn = Bitmap.new(Texture.new("btn.png"))
playBtn:setPosition(40, 40)
stage:addChild(playBtn)
playBtn:addEventListener(Event.MOUSE_DOWN, playSound, playBtn) |
The export is visible here :
http://jimlev.alwaysdata.net/soundissue/index.htmlIt work fine on desktop computer. On android phones. But no sound on my (quite old iphone 6). If someone can test and tell me if it works on recent iphone. I also appreciated any idea for a solution
take care !
My meditation plan :
SinisterSoft: “ I don't create classes that much - classes are good for making things simpler but imho for frame rate they are also death by a thousand cuts.”
Totebo: “ Best quote ever.”
🤔
Comments
iPhone SE 2016 12.1 - does not work (Safari, Chrome)
I have to test and investigate a little bit to see if I find the difference.
SinisterSoft: “ I don't create classes that much - classes are good for making things simpler but imho for frame rate they are also death by a thousand cuts.”
Totebo: “ Best quote ever.”
🤔