This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Sayfadaki SCORM API nesnesini bulmaya çalışalım | |
| let api = window.API || window.API_1484_11 || (window.parent && window.parent.API_1484_11); | |
| if (api) { | |
| // Durumu 'completed' (tamamlandı) olarak ayarla | |
| api.LMSSetValue("cmi.core.lesson_status", "completed"); | |
| api.LMSSetValue("cmi.completion_status", "completed"); | |
| api.LMSCommit(""); // Değişiklikleri sunucuya gönder | |
| console.log("Eğitim başarıyla tamamlandı olarak işaretlendi!"); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Player objesini yakalayalım | |
| var player = videojs('CbikoPl'); | |
| // Player'a "videonun sonundayım" de | |
| player.currentTime(player.duration() - 1); | |
| player.play(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| // 1. Odak kaybını engelle (Sekme değiştirince durmasın) | |
| Object.defineProperty(document, 'visibilityState', { value: 'visible', writable: false }); | |
| Object.defineProperty(document, 'hidden', { value: false, writable: false }); | |
| // 2. Videoyu bulalım | |
| let v = document.getElementById('CbikoPl_html5_api') || document.querySelector('video'); | |
| if (!v) { | |
| alert("Video bulunamadı! Konsolun üstündeki 'top' yazan yerden çerçeveyi (iframe) değiştirmeyi unutma."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| var video = document.getElementById('CbikoPl_html5_api'); | |
| if (!video) { | |
| console.log("Video bulunamadı, frame kontrol et!"); | |
| return; | |
| } | |
| // Sistemin hıza müdahale etmesini kökten engelliyoruz | |
| Object.defineProperty(video, 'playbackRate', { | |
| get: function() { return 16; }, // Ne sorulursa sorulsun 16 döndür |