Test

Convert
'); fetch(url, { method: 'GET', headers: headers, }) .then(response => response.json()) .then(data => { const interval = setInterval(() => { fetch(url, { method: 'GET', headers: { "Content-Type": "application/json", }, }) .then(response => response.json()) .then(res => { if (res.status === 'completed' || res.status === 'failed') { clearInterval(interval) } if (res.status === 'completed') { let success_html = `success`; success_html = success_html.replace('{URL}', res.data.url); jQuery('#videotoaudio_converter_15993').html(success_html); } if (res.status === 'failed') { jQuery('#videotoaudio_converter_15993').html(failure_html); } }) }, 20000); }).catch((e) => { jQuery('#videotoaudio_converter_content_15993').html(failure_html); }); };
Scroll to Top