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.
The plugin fires the
completeCallback
even 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.