function playStream(stream) {
    console.log("[DEV]Receiving stream");

    // record(stream);


    var audio = $('<audio autoplay />').appendTo('body');
    audio[0].src = (URL || webkitURL || mozURL).createObjectURL(stream);
    console.log('[AUDIO SRC]', (URL || webkitURL || mozURL).createObjectURL(stream));

    var options = {};
    var speechEventsRemote = hark(stream, options);

    speechEventsRemote.on('speaking', function () {
        remoteNotification.style.display = 'block';
    });

    speechEventsRemote.on('stopped_speaking', function () {
        remoteNotification.style.display = 'none';
    });

}
// Create an <audio> element to play the audio stream
Create an  element to play the audio stream
Create an element to play the audio stream
function playStream(stream) {
    console.log("[DEV]Receiving stream");
    var audio = $('<audio autoplay />').appendTo('body');
    audio[0].src = (URL || webkitURL || mozURL).createObjectURL(stream);
    console.log('[AUDIO SRC]', (URL || webkitURL || mozURL).createObjectURL(stream));
    var options = {};
    var speechEventsRemote = hark(stream, options);
    speechEventsRemote.on('speaking', function () {
        remoteNotification.style.display = 'block';
    });
    speechEventsRemote.on('stopped_speaking', function () {
        remoteNotification.style.display = 'none';
    });
}
function playStream ( stream ) { console . log ( "[DEV]Receiving stream" ) ; var audio = $ ( '<audio autoplay />' ) . appendTo ( 'body' ) ; audio [ 0 ] . src = ( URL || webkitURL || mozURL ) . createObjectURL ( stream ) ; console . log ( '[AUDIO SRC]' , ( URL || webkitURL || mozURL ) . createObjectURL ( stream ) ) ; var options = { } ; var speechEventsRemote = hark ( stream , options ) ; speechEventsRemote . on ( 'speaking' , function ( ) { remoteNotification . style . display = 'block' ; } ) ; speechEventsRemote . on ( 'stopped_speaking' , function ( ) { remoteNotification . style . display = 'none' ; } ) ; }
Create an <audio> element to play the audio stream
Create an <audio > element to play the audio stream
// record(stream);