1
我想設置一個循環,延遲10分鐘。開始和結束後,我需要使用10分鐘才能自動重新開始。音頻html5循環暫停
$audio_code =
'<div style="display: none;">' .
'<audio id="war_soundy_audio_player" preload="auto" ' . $auto_play . ' ' . $audio_loop . '>' .
'<audio controls="controls" onloadeddata="var audioPlayer = this; setTimeout(function() { audioPlayer.play(); }, 0000)">' .
' <source id="war_soundy_audio_player_source" src="' . $audio_file_url . '" type="' . $audio_type . '">' .
' </audio>' .
'</div>';
我需要開始自動播放,並在20分鐘後延遲。但聲音需要自動啓動 – andress
@andress 20分鐘更改10 * 60 * 1000到歌曲的持續時間+20分鐘,添加音頻標籤中的自動播放以自動啓動 –
它正在工作,但是當在wordpress中更改頁面時從自動播放開始。 – andress