iOS開發 使用ijkplayer在iOS11上出現黑屏,只有聲音
阿新 • • 發佈:2018-11-21
https://github.com/Bilibili/ijkplayer/issues/3643
在IJKSDLGLView.m檔案中, - (Bool)setupEAGLContext:(EAGLContext *)上下文方法的glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, _renderbuffer);
程式碼下面新增[CATransaction flush];
在 - (void)displayInternal:(SDL_VoutOverlay *)overlay方法中IJK_GLES2_Renderer_setGravity(_renderer, _rendererGravity, _backingWidth, _backingHeight);
程式碼下面也新增
[CATransaction flush];
即可解決這個問題,供參考。
整合過程也出現過其他問題,可以檢視我部落格的其他文章
https://blog.csdn.net/ljc_563812704/article/details/81945659
https://blog.csdn.net/ljc_563812704/article/details/81945590
https://blog.csdn.net/ljc_563812704/article/details/81942417