cordova_stream_server

streamServerPlugin Description

Usage no npm install needed!

<script type="module">
  import cordovaStreamServer from 'https://cdn.skypack.dev/cordova_stream_server';
</script>

README

stream server PhoneGap plugin

all playe file must encrypted with ciphen this stream server decript file and stream it Work with PhoneGap 2.9.*

How To Use

    var port;
    document.addEventListener("deviceready", onDeviceReady, false);

    function onDeviceReady() {        
        window.StreamServer.start(
            function (result) { port = result; /* alert("port: " + result);*/ },
            function (error) { navigator.notification.alert('error on oopenin port', function () { }, 'error', 'ok'); });
    }
    /* var path = fileName with path;
        var filepath = "http://127.0.0.1:" + port + path + "?key=123&iv=456";
        then you can play file with file path address
    */