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

前端 未结 4 1476
余生分开走
余生分开走 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:38

    Well, it's been 2 years since original question, but I had the same problem, but only with short (under 2 seconds) files. Turned out the problem was with metadata. If metadata says sound is 1 second long and in reality it's 1.5 seconds, Flash will only play 1 second of sound cutting the rest off.

    I solved the problem by not including metadata with the file when converting from wav to mp3.

    Hope that helps someone.

提交回复
热议问题