stream.available();
function availableStream(){
var session = Flashphoner.getSessions()[0];
var streamName = $('#playStream').val();
session.createStream({
name: streamName,
display: remoteVideo
}).available().then(function(stream){
$("#availableStatus").text("AVAILABLE").attr("class", "text-success");
}, function(stream){
$("#availableStatus").text("UNAVAILABLE").attr("class", "text-danger");
});
}