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

runtime: UI API called from background thread #11

Open
AlekseiR opened this issue Sep 19, 2018 · 2 comments
Open

runtime: UI API called from background thread #11

AlekseiR opened this issue Sep 19, 2018 · 2 comments

Comments

@AlekseiR
Copy link

Hey! Thank you for supporting this version for Cocoa.
I am encountering the following problem with v1.1.3:
file:///Users/iosdevlog/Code/github/ijkplayer-ios/ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijksdl/ios/IJKSDLGLView.m: runtime: UI API called from background thread: -[UIApplication applicationState] must be used from main thread only
file:///Users/iosdevlog/Code/github/ijkplayer-ios/ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijksdl/ios/IJKSDLGLView.m: runtime: UI API called from background thread: -[UIView layer] must be used from main thread only

With v1.1.0 it was only the second one.
Is it possible to handle it somehow?

@jiaxianhua
Copy link
Member

jiaxianhua commented Oct 10, 2018

I look the code, it seems not on the main thread, and the function has return value called by some where, so I am sorry I have no idea. @AlekseiR

@kutan74
Copy link

kutan74 commented Dec 23, 2020

Hello, I have the same problem

Screen Shot 2020-12-23 at 18 35 12

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

3 participants