ijkplayer icon indicating copy to clipboard operation
ijkplayer copied to clipboard

runtime: UI API called from background thread

Open AlekseiR opened this issue 6 years ago • 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?

AlekseiR avatar Sep 19 '18 01:09 AlekseiR

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

jiaxianhua avatar Oct 10 '18 18:10 jiaxianhua

Hello, I have the same problem

Screen Shot 2020-12-23 at 18 35 12

kutan74 avatar Dec 23 '20 15:12 kutan74