0
我正在將一段YouTube視頻加載到popcorn.js中。如何檢查是否無法加載?如何檢查爆米花js是否無法加載YouTube視頻?
這是我當前的代碼:
document.addEventListener("DOMContentLoaded", function() {
// Create a popcorn instance by calling the Youtube player plugin
var example = Popcorn.youtube(
'#video',
'http://www.youtube.com/watch?v=Zm1c2WTD93w&rel=0'
);
}