Solution to uniapp sound playback error: 1. Open the corresponding code file, and then directly execute the object play method to replace the original src path; 2. Update the development tool version.
The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, DELL G3 computer.
uni-app Voice file playback problem, innerAudioContext cannot be destroyed! ! !
##uni-app Voice createInnerAudioContext object cannot be destroyed and crashes! ! ! I found that the voice could not be played during packaging today, so I looked for the reason. I remembered that this problem had been dealt with, so I quickly found the problem. I used the wrong project and used the original one for packaging. This error It's really unforgivable. I would like to record the error that the voice cannot be played today. Voice playback is created using the built-in uni.createInnerAudioContext();. When playing, an error is reported and crashes. Post the code, this is how I wrote it. When the current method is called, paste the code directly. This is wrong. Don't copy it directly, brother.
uniapp tutorial"
The above is the detailed content of How to solve the problem of sound playing error in uniapp. For more information, please follow other related articles on the PHP Chinese website!