mirror of https://github.com/axmolengine/axmol.git
Fix crash when videoView to remove in android
This commit is contained in:
parent
bb5471ca8b
commit
80c5349d75
|
@ -399,7 +399,7 @@ public class Cocos2dxVideoView extends SurfaceView implements MediaPlayerControl
|
|||
mCurrentState = STATE_PLAYBACK_COMPLETED;
|
||||
mTargetState = STATE_PLAYBACK_COMPLETED;
|
||||
|
||||
mp.release();
|
||||
release(true);
|
||||
if (mOnVideoEventListener != null) {
|
||||
mOnVideoEventListener.onVideoEvent(mViewTag,EVENT_COMPLETED);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue