-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android中,close之后,重新播放,闪退 #48
Comments
错误信息: |
D/: [ZeroHung]ZrhungDoSendWithHievent: hievent send wp = 280, pid= 29135, tid = 31491 |
没人答,自问自答吧:surface被上一个player对象占用导致的,改下setDisplayTexture方法避免这个问题就好了 |
近期的代码在优化这个问题,vdev-android.cpp 里面做了修改。 |
还有个问题是Windows下的,程序关闭的时候有时候会发生异常(后来发现播放的过程中调用player_close也是一样),调试发现d3d_release_and_create方法下的IDirect3DSurface9_Release(c->bkbuf ); 这一句引发的,把她注释掉就好了,不过不太理解,不知道作者是否知道原因。 |
v1.9.2 版本 release 了,针对反复打开关闭播放器较低概率出现崩溃的问题,做了优化。 |
ffmpeg 导致的bug 崩溃 07-09 09:50:35.299 452 520 I OMXClient: IOmx service obtained String[] ffmpegCommand = new String[]{"-i", rtspUrl, "-acodec", "copy", "-vcodec", "copy", filePath}; |
代码如下:
String url = "rtsp:\192.168.5.11\live"
public void startPlay()
{
if(null != mPlayer)
{
mPlayer.pause();
mPlayer.close();
}
mPlayer = new MediaPlayer(url, mHandler, initParam);
mPlayer.play();
}
调用上面函数,多次调用就会大概率闪退。有办法解决么?
The text was updated successfully, but these errors were encountered: