{"action":"created","issue":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/414","labels_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/414/comments","events_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/414/events","html_url":"https://github.com/Bilibili/ijkplayer/issues/414","id":101818350,"number":414,"title":"stop and release the player","user":{"login":"leonard0629","id":5975208,"avatar_url":"https://avatars.githubusercontent.com/u/5975208?v=3","gravatar_id":"","url":"https://api.github.com/users/leonard0629","html_url":"https://github.com/leonard0629","followers_url":"https://api.github.com/users/leonard0629/followers","following_url":"https://api.github.com/users/leonard0629/following{/other_user}","gists_url":"https://api.github.com/users/leonard0629/gists{/gist_id}","starred_url":"https://api.github.com/users/leonard0629/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonard0629/subscriptions","organizations_url":"https://api.github.com/users/leonard0629/orgs","repos_url":"https://api.github.com/users/leonard0629/repos","events_url":"https://api.github.com/users/leonard0629/events{/privacy}","received_events_url":"https://api.github.com/users/leonard0629/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-19T06:42:56Z","updated_at":"2015-08-31T07:33:50Z","closed_at":null,"body":"what i need to do before i finsh the activity in which the video is playing.\r\ni tried videoview.stopplayback but something wrong with it.\r\n```\r\n08-19 14:38:13.538  17874-17874/com.test.app D/IJKMEDIA﹕ IjkMediaPlayer_reset\r\n08-19 14:38:13.538  17874-17874/com.test.app D/IJKMEDIA﹕ IjkMediaPlayer_release\r\n08-19 14:38:13.538  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_set_android_surface(surface=0x0)\r\n08-19 14:38:13.538  17874-17874/com.test.app D/IJKMEDIA﹕ ffpipeline_set_surface()\r\n08-19 14:38:13.538  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_set_android_surface(surface=0x0)=void\r\n08-19 14:38:13.538  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_shutdown_l()\r\n08-19 14:38:13.548  17874-18218/com.test.app D/IJKMEDIA﹕ message_loop exit\r\n08-19 14:38:13.548  17874-18219/com.test.app E/IJKMEDIA﹕ voud_display_overlay_l: NULL native_window\r\n08-19 14:38:13.548  17874-18251/com.test.app D/IJKMEDIA﹕ SDL_AMediaCodecJava_stop\r\n08-19 14:38:13.548  17874-18219/com.test.app D/dalvikvm﹕ threadid=37: thread exiting, not yet detached (count=0)\r\n08-19 14:38:13.558  17874-18243/com.test.app I/ACodec﹕ [OMX.qcom.video.decoder.avc] Now Executing->Idle\r\n08-19 14:38:13.558  17874-18252/com.test.app W/System.err﹕ java.lang.IllegalStateException\r\n08-19 14:38:13.558  17874-18252/com.test.app W/System.err﹕ at android.media.MediaCodec.dequeueInputBuffer(Native Method)\r\n08-19 14:38:13.558  17874-18252/com.test.app W/System.err﹕ at dalvik.system.NativeStart.run(Native Method)\r\n08-19 14:38:13.558  17874-18252/com.test.app E/IJKMEDIA﹕ SDL_AMediaCodecJava_dequeueInputBuffer: dequeueInputBuffer failed\r\n08-19 14:38:13.558  17874-18252/com.test.app I/IJKMEDIA﹕ MediaCodec: enqueue_thread_func: exit: -1\r\n08-19 14:38:13.558  17874-18252/com.test.app D/dalvikvm﹕ threadid=36: thread exiting, not yet detached (count=0)\r\n08-19 14:38:13.568  17874-18243/com.test.app I/ACodec﹕ [OMX.qcom.video.decoder.avc] Now Idle->Loaded\r\n08-19 14:38:13.568  17874-18243/com.test.app I/ACodec﹕ [OMX.qcom.video.decoder.avc] Now Loaded\r\n08-19 14:38:13.568  17874-18251/com.test.app I/IJKMEDIA﹕ MediaCodec: func_run_sync: exit: 0\r\n08-19 14:38:13.568  17874-18251/com.test.app D/dalvikvm﹕ threadid=35: thread exiting, not yet detached (count=0)\r\n08-19 14:38:13.578  17874-18223/com.test.app D/dalvikvm﹕ threadid=34: thread exiting, not yet detached (count=0)\r\n08-19 14:38:13.598  17874-18220/com.test.app D/dalvikvm﹕ threadid=32: thread exiting, not yet detached (count=0)\r\n08-19 14:38:13.608  17874-17874/com.test.app E/IJKMEDIA﹕ SDL_Overlay(ffmpeg): overlay_free_l(0x7e17b828)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ java.lang.IllegalStateException\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at android.media.MediaCodec.releaseOutputBuffer(Native Method)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at tv.danmaku.ijk.media.player.IjkMediaPlayer._reset(Native Method)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at tv.danmaku.ijk.media.player.IjkMediaPlayer.reset(IjkMediaPlayer.java:427)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at com.test.widget.MyVideoView.release(MyVideoView.java:566)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at com.test.widget.MyVideoView.access$2400(MyVideoView.java:24)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at com.test.widget.MyVideoView$8.surfaceDestroyed(MyVideoView.java:560)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at android.view.SurfaceView.updateWindow(SurfaceView.java:586)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:240)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at android.view.View.dispatchWindowVisibilityChanged(View.java:8492)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.608  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1532)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1249)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6585)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.view.Choreographer$CallbackRecord.run(Choreographer.java:803)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.view.Choreographer.doCallbacks(Choreographer.java:603)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.view.Choreographer.doFrame(Choreographer.java:573)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:789)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.os.Handler.handleCallback(Handler.java:733)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:95)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.os.Looper.loop(Looper.java:136)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5586)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:515)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)\r\n08-19 14:38:13.618  17874-17874/com.test.app W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at dalvik.system.NativeStart.main(Native Method)\r\n08-19 14:38:13.628  17874-17874/com.test.app E/IJKMEDIA﹕ SDL_AMediaCodecJava_releaseOutputBuffer: releaseOutputBuffer\r\n08-19 14:38:13.628  17874-17874/com.test.app E/IJKMEDIA﹕ SDL_Overlay(ffmpeg): overlay_free_l(0x7e578888)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ java.lang.IllegalStateException\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at android.media.MediaCodec.releaseOutputBuffer(Native Method)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at tv.danmaku.ijk.media.player.IjkMediaPlayer._reset(Native Method)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at tv.danmaku.ijk.media.player.IjkMediaPlayer.reset(IjkMediaPlayer.java:427)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at com.test.widget.MyVideoView.release(MyVideoView.java:566)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at com.test.widget.MyVideoView.access$2400(MyVideoView.java:24)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at com.test.widget.MyVideoView$8.surfaceDestroyed(MyVideoView.java:560)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at android.view.SurfaceView.updateWindow(SurfaceView.java:586)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:240)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at android.view.View.dispatchWindowVisibilityChanged(View.java:8492)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.628  17874-17874/com.test.app W/System.err﹕ at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1087)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1532)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1249)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6585)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.view.Choreographer$CallbackRecord.run(Choreographer.java:803)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.view.Choreographer.doCallbacks(Choreographer.java:603)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.view.Choreographer.doFrame(Choreographer.java:573)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:789)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.os.Handler.handleCallback(Handler.java:733)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:95)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.os.Looper.loop(Looper.java:136)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5586)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:515)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)\r\n08-19 14:38:13.638  17874-17874/com.test.app W/System.err﹕ at dalvik.system.NativeStart.main(Native Method)\r\n08-19 14:38:13.638  17874-17874/com.test.app E/IJKMEDIA﹕ SDL_AMediaCodecJava_releaseOutputBuffer: releaseOutputBuffer\r\n08-19 14:38:13.638  17874-17874/com.test.app E/IJKMEDIA﹕ SDL_Overlay(ffmpeg): overlay_free_l(0x7d9dc518)\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_shutdown_l()=void\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ IjkMediaPlayer_native_setup\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ffpipeline_create_from_android()\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_set_format_callback(0x7e2a21f1, 0x1d400662)\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_set_format_callback()=void\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_android_set_mediacodec_select_callback()\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ffpipeline_set_mediacodec_select_callback\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_android_set_mediacodec_select_callback()=void\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_dec_ref(): ref=0\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_shutdown_l()\r\n08-19 14:38:13.648  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_shutdown_l()=void\r\n08-19 14:38:13.648  17874-17874/com.test.app I/IJKMEDIA﹕ SDL_AMediaCodecJava_delete\r\n08-19 14:38:13.658  17874-18243/com.test.app I/ACodec﹕ [OMX.qcom.video.decoder.avc] Now uninitialized\r\n08-19 14:38:13.658  17874-17874/com.test.app D/IJKMEDIA﹕ IjkMediaPlayer_release\r\n08-19 14:38:13.658  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_set_android_surface(surface=0x0)\r\n08-19 14:38:13.658  17874-17874/com.test.app D/IJKMEDIA﹕ ffpipeline_set_surface()\r\n08-19 14:38:13.658  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_set_android_surface(surface=0x0)=void\r\n08-19 14:38:13.658  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_shutdown_l()\r\n08-19 14:38:13.658  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_shutdown_l()=void\r\n08-19 14:38:13.658  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_dec_ref(): ref=0\r\n08-19 14:38:13.658  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_shutdown_l()\r\n08-19 14:38:13.658  17874-17874/com.test.app D/IJKMEDIA﹕ ijkmp_shutdown_l()=void\r\n08-19 14:38:13.848  17874-17874/com.test.app D/IJKMEDIA﹕ IjkMediaPlayer_native_profileEnd\r\n08-19 14:38:13.848  17874-17874/com.test.app D/aprof-fake﹕ fake-momcleanup\r\n08-19 14:38:13.848  17874-17874/com.test.app D/IJKMEDIA﹕ moncleanup\r\n```\r\ncan you give me some suggestion to solve this. i just want release the videoview and finish current activity"},"comment":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/comments/136287943","html_url":"https://github.com/Bilibili/ijkplayer/issues/414#issuecomment-136287943","issue_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/414","id":136287943,"user":{"login":"leonard0629","id":5975208,"avatar_url":"https://avatars.githubusercontent.com/u/5975208?v=3","gravatar_id":"","url":"https://api.github.com/users/leonard0629","html_url":"https://github.com/leonard0629","followers_url":"https://api.github.com/users/leonard0629/followers","following_url":"https://api.github.com/users/leonard0629/following{/other_user}","gists_url":"https://api.github.com/users/leonard0629/gists{/gist_id}","starred_url":"https://api.github.com/users/leonard0629/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonard0629/subscriptions","organizations_url":"https://api.github.com/users/leonard0629/orgs","repos_url":"https://api.github.com/users/leonard0629/repos","events_url":"https://api.github.com/users/leonard0629/events{/privacy}","received_events_url":"https://api.github.com/users/leonard0629/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T07:33:50Z","updated_at":"2015-08-31T07:33:50Z","body":"is anyone know? this issue occurs when the surface destory such as Activity.onPause, Activity.onDestory"}}