embedded mp3 in actionscript3 won't play all the way through

前端 未结 4 1472
余生分开走
余生分开走 2021-01-06 05:47

I embedded an mp3 file be used as background music for my app. Though it works fine, the problem is that it doesn\'t play the whole track, it just plays the first 32 seconds

4条回答
  •  有刺的猬
    2021-01-06 06:30

    As the aforementioned link suggests, the problem was indeed with the mp3 file itself. Basically it was too big. So after reducing it from 44kHz stereo 32 bit to 44kHz stereo 16 bit it worked fine, and now it runs all the way through. With that said its kinda weird that we can't embed higher quality mp3 files. I presume that this problem wouldn't be an issue with loading (rather than embedding) but I haven't tested it. If anyone here has an idea on how to fix this problem without reducing the quality of the mp3 please share

提交回复
热议问题