iOSDevLog/ijkplayer

runtime: UI API called from background thread

AlekseiR opened this issue · 2 comments

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?

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

Hello, I have the same problem

Screen Shot 2020-12-23 at 18 35 12