Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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/