寄生 异形

寄生 异形

HD中字

👁592播放2.0评分👍41点赞

类型:科幻片
年份:2020
地区:俄罗斯
语言:其它
导演:艾戈尔·阿布拉门科
主演:奥莎娜·阿金什那,费奥多尔·邦达尔丘克,彼得·费奥多罗夫,安东·瓦西利耶夫,阿列克谢·杰米多夫,维塔丽雅·科尔尼扬科
简介:

年轻女医]>&,生\Tatiana Yurievna(奥莎娜·阿金什那 Ok*'san/_a Ak^ { console.log('播放器已准备好'); }); art.on('play', () => { console.log('视频开始播放'); }); art.on('pause', () => { console.log('视频暂停'); }); art.on('ended', () => { console.log('视频播放结束'); }); art.on('error', (error) => { console.error('播放器错误:', error); if (art.notice) { art.notice.show = '播放失败,请尝试切换线路或集数'; setTimeout(() => { art.notice.show = ''; }, 3000); } }); } // 切换线路 function switchSource(sourceIndex) { if (sourceIndex < 0 || sourceIndex >= playSources.length) return; currentSourceIndex = sourceIndex; currentEpisodeIndex = 0; // 更新线路按钮状态 document.querySelectorAll('.source-btn').forEach((btn, index) => { if (index === sourceIndex) { btn.classList.add('active'); } else { btn.classList.remove('active'); } }); // 更新集数列表 updateEpisodeList(); // 切换到第一个集数 const firstEpisode = playSources[sourceIndex].episodes[0]; if (firstEpisode) { console.log('切换线路,加载第一个集数:', firstEpisode.url); initPlayer(firstEpisode.url); } } // 更新集数列表 function updateEpisodeList() { const episodeList = document.getElementById('episode-list'); if (!episodeList) return; const episodes = playSources[currentSourceIndex].episodes; episodeList.innerHTML = ''; episodes.forEach((episode, index) => { const btn = document.createElement('button'); btn.type = 'button'; btn.className = 'btn btn-sm btn-outline-secondary episode-btn me-2 mb-2'; if (index === currentEpisodeIndex) { btn.classList.add('active'); } btn.setAttribute('data-source-index', currentSourceIndex); btn.setAttribute('data-episode-index', index); btn.setAttribute('data-video-url', episode.url); // 这里已经是编码后的地址 btn.textContent = episode.name; btn.addEventListener('click', function() { switchEpisode(index); }); episodeList.appendChild(btn); }); } // 切换集数 function switchEpisode(episodeIndex) { if (currentSourceIndex < 0 || currentSourceIndex >= playSources.length) return; const episodes = playSources[currentSourceIndex].episodes; if (episodeIndex < 0 || episodeIndex >= episodes.length) return; currentEpisodeIndex = episodeIndex; const episode = episodes[episodeIndex]; // 更新集数按钮状态 document.querySelectorAll('.episode-btn').forEach((btn) => { const btnSourceIndex = parseInt(btn.getAttribute('data-source-index')); const btnEpisodeIndex = parseInt(btn.getAttribute('data-episode-index')); if (btnSourceIndex === currentSourceIndex && btnEpisodeIndex === episodeIndex) { btn.classList.add('active'); } else { btn.classList.remove('active'); } }); // 切换播放地址 if (art && episode.url) { console.log('切换播放地址:', episode.url); // 重新初始化播放器以切换地址 initPlayer(episode.url); } } // 绑定线路切换事件 document.querySelectorAll('.source-btn').forEach((btn, index) => { btn.addEventListener('click', function() { switchSource(index); }); }); // 绑定集数切换事件 document.querySelectorAll('.episode-btn').forEach((btn) => { btn.addEventListener('click', function() { const sourceIndex = parseInt(this.getAttribute('data-source-index')); const episodeIndex = parseInt(this.getAttribute('data-episode-index')); if (sourceIndex === currentSourceIndex) { switchEpisode(episodeIndex); } else { switchSource(sourceIndex); setTimeout(() => switchEpisode(episodeIndex), 100); } }); }); // 初始化播放器(使用第一个线路的第一个集数) const firstSource = playSources[0]; if (firstSource && firstSource.episodes && firstSource.episodes.length > 0) { const firstUrl = firstSource.episodes[0].url; console.log('准备初始化播放器,第一个视频地址:', firstUrl); // 延迟初始化,确保 DOM 已加载 setTimeout(() => { initPlayer(firstUrl); }, 100); } else { console.error('没有可用的播放地址'); } // 页面卸载时销毁播放器 window.addEventListener('beforeunload', () => { if (art) { art.destroy(); } }); })();

© 2026 瓜子影视 All Rights Reserved.