<!--
Please make sure the checklist boxes are all checked before submitting the PR. 
The checklist
is intended as a quick reference, for complete details please see our 
Contributor Guidelines:

http://cordova.apache.org/contribute/contribute_guidelines.html

Thanks!
-->
When I try to get the position of an audio that had an error while loading, the 
crash appose exponentially because it can not cast the time = none

### Platforms affected
iOS xx

### What does this PR do?

if the time is none, return the value of position at default = -1

### What testing has been done on this change?
It does not affect much, I tested it in my personal project

### Checklist
- [ x ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) 
in the JIRA database
- [ x ] Commit message follows the format: "CB-3232: (android) Fix bug with 
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform 
affected.
- [ ] Added automated test coverage as appropriate for this change. (I don`t 
know)

[ Full content available at: 
https://github.com/apache/cordova-plugin-media/pull/165 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to