Media Player Error: Unknown(1) - 2147483648
See original GitHub issueWhat version of Streaming-Meda-Cordova-Plugin are you using? 1.0.2 What version of Cordova are you using? 6.3.0 What devices are affected? Android 4.2.2 Please describe the issue in detail, with relevant code samples simply calling the playVideo function, it returns the error in the subject:
Media Player Error: Unknown(1) - 2147483648
this is my function
playVideo: function() {
// Where are we playing the video from?
var videoURL = cordova.file.applicationDirectory + "www/videos/VuforiaSizzleReel_2.mp4";
alert(videoURL);
// Play a video with callbacks
var options = {
successCallback: function() {
alert("Video was closed without error.");
},
errorCallback: function(errMsg) {
alert("Error playing video: " + errMsg);
},
orientation: 'landscape'
};
window.plugins.streamingMedia.playVideo(videoURL, options);
}
this function is called after deviceready event
the alert displays this path: file:///android_asset/www/videos/myvideo.mp4
the video is in H.264 format with AAC audio.
using another plugin (com.dawsonloudon.videoplayer) I’m able to play video, so I think it’s not a permission problem…
What did you expect to happen?
the video start to play
What actually happened?
I got the error: Media Player Error: Unknown(1) - 2147483648
PS: I tried your plugin becouse it support IOS too.
Thank you, elena.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12

Top Related StackOverflow Question
Put Below Code in Your Config.xml
Thanks
Finally i found the issue According to Network security configuration (https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted) in the latest android devices cleartext support is disabled by default. so the player cannot reach out to any video on the internet to solve this issue use this stackoverflow answer https://stackoverflow.com/questions/54752716/why-am-i-seeing-neterr-cleartext-not-permitted-errors-after-upgrading-to-cordo
it works 100%