I am using iPhone iOS 9.2.1 and using following code:
var my_media = new Media('https://songsx.pk/pk-mp3/dj-viruzzz-new-world-preview-30-seconds/s150619928.mp3');
Duration of this media is 30 seconds.
Whenever I run above code, my iphone's screen becomes disable / freezes until audio starts playing. I am not able to touch anything. Screen becomes normal when audio starts playing. This issue is not acceptable because it's very serious issue.
Please someone help if possible.
Which version of the media plugin are you using? If you are using < 2.2.0, please upgrade and try again. See https://github.com/apache/cordova-plugin-media/blob/679d4a410c63738b8dc62cc138ae6e5351f88d 5f/RELEASENOTES.md#220-feb-09-2016
My issue is resolved. Bundle of thanks for hinting me about version.
Somehow I was using very old version. There was a tag duplicate plugin tag in config.xml before the tag of latest version.
I just noticed that it was ignoring latest plugin tag and was installing older plugin version from first tag.
Now it's removing latest version and my issue is fixed.
Bundle of thanks.