Cordova streaming plugin not working
-
Hello,
I added this plugin (cordova-plugin-streaming-media-master) to my application to stream a URL, I tried the app in the app preview but it did not work. This is my code:
<html> <head> <title>Player</title> <script> onDeviceReady: function() { var videoUrl = "http://dmivll.mangomolo.com/dubaione/smil:dubaione.smil/playlist.m3u8"; // Just play a video window.plugins.streamingMedia.playVideo(videoUrl); // Play a video with callbacks var options = { successCallback: function() { console.log("Video was closed without error."); }, errorCallback: function(errMsg) { console.log("Error! " + errMsg); }, orientation: 'landscape' }; window.plugins.streamingMedia.playVideo(videoUrl, options); } </script> </head> <body> </body> </html>
I want to that the page streams the URL when I load the page. Please advice
Thank you
-
@Ahmed-Elshorbagy You have to build a custom debugger with Monaca to include third party plugins.https://docs.monaca.io/en/reference/third_party_phonegap/