al frame che ti interessa:

function aspetta() {
clearInterval(intervallo);
play();
}
inetrvallo=setInterval(aspetta, 5000);
stop();