Skip to content
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

iOS11 播放只有声音没有图像 #3643

Closed
jjjdeveloper opened this issue Sep 28, 2017 · 14 comments
Closed

iOS11 播放只有声音没有图像 #3643

jjjdeveloper opened this issue Sep 28, 2017 · 14 comments

Comments

@jjjdeveloper
Copy link

ijkplayer在iOS11经常出现有声音没图像的情况,iOS10也都没问题,升到iOS11碰到这样的问题的,各位大佬有没有解决方案

@raymond1012
Copy link
Member

ios11 模拟器bug

@jjjdeveloper
Copy link
Author

非模拟器 真机阿

@CloudIAU
Copy link

我在iOS11下也遇到过这样的情况,我的解决方法是:
在IJKSDLGLView.m文件中,- (BOOL)setupEAGLContext:(EAGLContext *)context 方法的
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];
即可解决这个问题,供参考。

@LeesimEverglow
Copy link

@CloudIAU 感谢 按照你的办法 重打了framework确实可以了

@cubegao
Copy link

cubegao commented Nov 30, 2017

@CloudIAU 感谢 确实能解决

@blueseaguo
Copy link

mark

2 similar comments
@waitWindComing
Copy link

mark

@Sweet1225
Copy link

mark

@saijiang
Copy link

IJKFFOptions *options = [IJKFFOptions optionsByDefault];
[options setOptionIntValue:2 forKey:@"videotoolbox" ofCategory:kIJKFFOptionCategoryPlayer];

@MichaelSSY
Copy link

@CloudIAU 我按照你的操作还是只有声音不显示画面啊?我的是最新的iOS系统!

@zhangfurun
Copy link

我也是 只有声音,黑屏

@wangzhaoyang123
Copy link

在ios的其他系统上也会出现类似的问题吗

@Antinust
Copy link

@CloudIAU 加了[CATransaction flush],在iOS 13系统上出现了新的崩溃:Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread,有遇到么?

@outer1
Copy link

outer1 commented Mar 8, 2020

@CloudIAU 加了[CATransaction flush],在iOS 13系统上出现了新的崩溃:Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread,有遇到么?

我也遇到了了,在13.3.1上量特别大。。。有解决方案及时同步哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests