ob_start("ob_gzhandler"); ?>
prefetch audio js
audio = new Audio(_player.src);
audio.preload = 'auto';
Promise error
var playPromise = _player.play();
if (playPromise !== undefined) {
playPromise.then(function() {
// console.log(_player.src+" "+selected.innerText );
$("#playing").html("(Now playing : "+selected.innerText+")");
// Automatic playback started!
}).catch(function(error) {
//console.log(error+" "+_player.src);
// Automatic playback failed.
// Show a UI element to let the user manually start playback.
});
}
Get audio duration in JavaScript
var d = document.getElementById("player").duration;
Check incoming request from port 443
$ netstat -an | grep 443
Check incoming request from port 443 with selected IP address
$ netstat -an | grep 443 | grep 103.173.93.2
Check incoming request from port 443 only ESTABLISHED connection
$ netstat -an | grep 443 | grep ESTABLISHED
Check number of incoming request from port 443
$ netstat -an | grep 443 | wc -l
Check incoming request from port 80
$ netstat -an | grep 80
Check incoming request from port 80 with selected IP address
$ netstat -an | grep 80 | grep 103.173.93.2
Check incoming request from port 80 only ESTABLISHED connection
$ netstat -an | grep 80 | grep ESTABLISHED
Check number of incoming request from port 80
$ netstat -an | grep 80 | wc -l