moust / cordova-plugin-videoplayer

A Codova plugin to play video with the native MediaPlayer on Android devices.
MIT License
139 stars 102 forks source link

Plugin fires completeCallback instead of errorCallback #34

Open binoculars88 opened 7 years ago

binoculars88 commented 7 years ago

The plugin fires the completeCallbackeven when the device was not capable of playing the file. In my app, I play a 4k video file. Some older devices can't decode 4k, and the video player opens and closes immediately. The completeCallback is then called, when it should be the errorCallback.

I want to know if the device was capable of playing the 4k file, so I can try playing a 1080p file instead, but since it always says "video completed" I can't make the distinction.