RenderAndroid/WeexRender/src/main/java/com/taobao/weex/render/platform/view/video/TextureVideoView.java
/*
     * release the media player in any state
     */
release the media player in any state
release the media player in any state
private void release(boolean cleartargetstate) {
        if (mMediaPlayer != null) {
            mMediaPlayer.reset();
            mMediaPlayer.release();
            mMediaPlayer = null;
            mCurrentState = STATE_IDLE;
            if (cleartargetstate) {
                mTargetState = STATE_IDLE;
            }
            AudioManager am = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
            am.abandonAudioFocus(null);
        }
    }
private void release ( boolean cleartargetstate ) { if ( mMediaPlayer != null ) { mMediaPlayer . reset ( ) ; mMediaPlayer . release ( ) ; mMediaPlayer = null ; mCurrentState = STATE_IDLE ; if ( cleartargetstate ) { mTargetState = STATE_IDLE ; } AudioManager am = ( AudioManager ) mContext . getSystemService ( Context . AUDIO_SERVICE ) ; am . abandonAudioFocus ( null ) ; } }
release the media player in any state
release the media player in any state