flowkey / UIKit-cross-platform

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

ensure nativeOnVideoEnded is called once #231

Closed michaelknoch closed 6 years ago

michaelknoch commented 6 years ago

Type of change: bugfix

Current behavior

It can happen that exoplayer sets Player.STATE_ENDED multiple times

Expected behavior

We need a reliable callback that gets called when the video has ended.

Please check if the PR fulfills these requirements

ephemer commented 6 years ago

Ok looks like this might work but it’s more of a workaround than something that’ll work for sure?