Projects > cpp > Issues > Bug #3699

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

在有些设备上调用SimpleAudioEngine::playBackgroundMusic会抛出这个异常,偶尔会导致宕机

Bug #3699 [Closed]
captals2@163.com 2014-01-14 07:16 . Updated about 2 years ago

01-12 10:39:28.019 29105 30411 MediaPlayer release() mWfdReceiver: null
01-12 10:39:28.023 29105 29399 MediaPlayer mPlayerID = 435
01-12 10:39:28.034 29105 30411 MediaPlayer Don’t notify duration to cc.hilink.eoa!
01-12 10:39:28.040 29105 30411 MediaPlayer Don’t notify duration to cc.hilink.eoa!
01-12 10:39:28.041 29105 30411 MediaPlayer start() mSourceType: 0
01-12 10:39:28.041 29105 30411 MediaPlayer getMetadata
01-12 10:39:28.041 29105 30411 MediaPlayer getMetadata() isDrm: true
01-12 10:39:28.041 29105 30411 MediaPlayer initSecureFlag() mSourceType: 2 mWfdReceiver: null
01-12 10:39:28.041 29105 30411 MediatekClassFactory createInstance(): Begin = 66490651
01-12 10:39:28.041 29105 30411 MediatekClassFactory create Instance with : interface com.mediatek.common.drm.ISecureWarningPrompt
01-12 10:39:28.041 29105 30411 MediatekClassFactory create Instance from mediatek-framework library : com.mediatek.drm.SecureWarningPrompt
01-12 10:39:28.041 29105 30411 MediatekClassFactory Exception: java.lang.ClassNotFoundException
01-12 10:39:28.041 29105 30411 MediatekClassFactory createInstance(): End = 66490652
01-12 10:39:28.041 29105 30411 MediatekClassFactory null object during finding : interface com.mediatek.common.drm.ISecureWarningPrompt
01-12 10:39:28.042 29105 30411 System.err java.lang.RuntimeException
01-12 10:39:28.042 29105 30411 System.err at com.mediatek.common.MediatekClassFactory.createInstance(MediatekClassFactory.java:487)
01-12 10:39:28.042 29105 30411 System.err at android.media.MediaPlayer.initSecureFlag(MediaPlayer.java:1112)
01-12 10:39:28.042 29105 30411 System.err at android.media.MediaPlayer.start(MediaPlayer.java:1091)
01-12 10:39:28.042 29105 30411 System.err at org.cocos2dx.lib.Cocos2dxMusic.playBackgroundMusic(Unknown Source)
01-12 10:39:28.043 29105 30411 System.err at org.cocos2dx.lib.Cocos2dxHelper.playBackgroundMusic(Unknown Source)
01-12 10:39:28.043 29105 30411 System.err at org.cocos2dx.lib.Cocos2dxRenderer.nativeTouchesEnd(Native Method)
01-12 10:39:28.043 29105 30411 System.err at org.cocos2dx.lib.Cocos2dxRenderer.handleActionUp(Unknown Source)
01-12 10:39:28.043 29105 30411 System.err at org.cocos2dx.lib.Cocos2dxGLSurfaceView\$9.run(Unknown Source)
01-12 10:39:28.043 29105 30411 System.err []()at android.opengl.GLSurfaceView\$GLThread.guardedRun(GLSurfaceView.java:1462)
01-12 10:39:28.043 29105 30411 System.err at android.opengl.GLSurfaceView\$GLThread.run(GLSur[]()faceView.java:1240)
01-12 10:39:28.043 29105 30411 MediaPlayer initSecureFlag() exception
在有些设备上调用SimpleAudioEngine::playBackgroundMusic会抛出这个异常,偶尔会导致宕机

我测试的设备是 Asus ME173X []()[]()

设备信息.jpg (96.7 kB) captals2@163.com, 2014-01-14 07:17

walzer@cocos2d-x.org 2014-10-08 02:55

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8313

Atom PDF

Status:Closed
Start date:2014-01-14
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.