不能在Android上播放OGG [英] can not play ogg on android
本文介绍了不能在Android上播放OGG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
做somenone知道这是什么意思?
对Ogg的玩法是phonegap`s梅达,它使用的MediaPlayer
15 05-26:41:50.007 1160 3631ËAudioFlinger:没有更多的曲目名称可用
05-26 15:41:50.007 1160 3631ËAudioTrack:AudioFlinger无法创建跟踪,状态:-12
05-26 15:41:50.007 1160 3631ËAudioSink:无法创建音轨
05-26 15:41:50.007 1160 3631ËVorbisPlayer:mAudioSink打开失败
谢谢!
编辑:
新媒体('/ android_asset / WWW /声音/ 0.mp3',
功能(){
//警报(playAudio():音频成功);
},
功能(ERR,ARG){
警报(ERR +''+ ARG);
})。玩()
解决方案
据<一个href=\"http://www.anddev.org/multimedia-problems-f28/soundpool-crashing-with-could-not-create-track-t17028.html\"相对=nofollow>这个帖子,你需要发挥OGG文件与恒定比特率。可变比特率会造成的Soundpool崩溃。
有大约相同的错误消息的bug报告,但不同的原因,此处的 HTTP://$c$c.google.com/p/android/issues/detail ID = 13453
does somenone knows what this means? the ogg is played with phonegap`s Meda, which uses MediaPlayer
05-26 15:41:50.007 1160 3631 E AudioFlinger: no more track names available
05-26 15:41:50.007 1160 3631 E AudioTrack: AudioFlinger could not create track, status: -12
05-26 15:41:50.007 1160 3631 E AudioSink: Unable to create audio track
05-26 15:41:50.007 1160 3631 E VorbisPlayer: mAudioSink open failed
thanks!
edit:
new Media('/android_asset/www/sounds/0.mp3',
function() {
//alert("playAudio():Audio Success");
},
function(err, arg) {
alert(err + ' ' + arg);
}).play()
解决方案
According to this post, you need to play ogg files with constant bitrate. Variable bitrate will cause SoundPool to crash.
There is a bug report about the same error message, but a different cause, here: http://code.google.com/p/android/issues/detail?id=13453
这篇关于不能在Android上播放OGG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文