flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
600 stars 40 forks source link

Use Choreographer to manage Runloop #148

Closed rikner closed 6 years ago

rikner commented 6 years ago

Instead of using a Runnable and Handler, use a Choreographer(https://developer.android.com/reference/android/view/Choreographer.html#postFrameCallback(android.view.Choreographer.FrameCallback) for a render loop.

Now the player reloads after the app was paused. Fixes https://github.com/flowkey/NativePlayerIOS/issues/355