[英]Android, Mediaplayer mp3, disturbing sounds
I am playing a mp3 file from a local source with MediaPlayer
. 我正在使用
MediaPlayer
从本地播放mp3文件。 The song is played, but there are also weird "scratch" sounds that can be heard. 播放了歌曲,但也听到了奇怪的“刮擦”声音。 This is happening with every song.
每首歌都在发生这种情况。 Also after a short while (depends on song) the player stops playing, this takes from 5 seconds up to 2 minutes.
同样,播放器不久后(取决于歌曲)也会停止播放,这需要5秒钟到2分钟。
Error: /MediaPlayer(957): Error (1,-2147483648)
I searched a lot in google.. no solution. 我在Google搜索了很多。 Any idea?
任何想法? Thanks.
谢谢。
If the song doesn't glitch in any other media player, then consider re-encoding using mpg123 for instance. 如果歌曲在其他任何媒体播放器中均未出现故障,则可以考虑使用mpg123重新编码。 It may come from an encoding problem more than your android programming.
它可能来自编码问题,而不是来自Android编程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.