Untitled
unknown
plain_text
a year ago
802 B
10
Indexable
window.addEventListener('load', function() {
const video = document.getElementById('player_html5_api');
video.controls = true;
video.muted = true;
video.addEventListener('canplay', function() {
video.play().catch(function(error) {
console.error('İlk play denemesi başarısız oldu:', error);
const playButton = document.querySelector('button[class*="play"]');
if (playButton) {
playButton.click();
} else {
console.warn('Play butonu bulunamadı!');
}
});
});
video.addEventListener('ended', function() {
setTimeout(function() {
// 7 saniye sonra yönlendirme yap
window.location.href = "**";
}, 10000);
});
});
Editor is loading...
Leave a Comment