android - Cordova Media plugin - Load stream after hours -


for long time m trying solve problem cordova media plugin... want play internet radio stream on button press (play) code: app.js

var mmedia; function playaudio(url) {     mmedia = new media(url,     function () {            console.log("playaudio():audio success");        },     function (err) {         console.log("playaudio():audio error: " + err);     }     );     // play audio     mmedia.play(); } 

index.html

  <input type="button" value="play" onclick="playaudio('http://streaming.tdiradio.com:9000/');" /> 

but silence...and few hours later radio starts playing.. hours after app closed (i didn't release media though)...


i'm using android 4.4.2 on phone.. on ripple works fine without 1s of delay..

what about? , best way solve this?


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -