Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ahmed_E_
Beginner
78 Views

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

0 Kudos
0 Replies
Reply