update Mo 22. Jun 12:31:01 CEST 2020

This commit is contained in:
Robert Richter 2020-06-22 12:31:01 +02:00
parent 23c2cf61a2
commit bfc2c4c4b8

View File

@ -290,9 +290,12 @@ socket.on('io.playtts', function (data) {
// playPromise wont be defined.
if (playPromise !== undefined) {
playPromise.then(function () {
console.log('start audio');
// Automatic playback started!
audio.play();
}).catch(function (error) {
console.log('Automatic playback failed');
// Automatic playback failed.
// Show a UI element to let the user manually start playback.
$('#volume').addClass('btn-danger');