update Mo 22. Jun 12:31:01 CEST 2020
This commit is contained in:
parent
23c2cf61a2
commit
bfc2c4c4b8
@ -290,9 +290,12 @@ socket.on('io.playtts', function (data) {
|
||||
// playPromise won’t 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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user