master
iotcat 4 years ago
parent 52d4da5f2b
commit a74518ee11
  1. 14
      index.html

@ -11,8 +11,13 @@
<div id="dplayer"></div> <div id="dplayer"></div>
<br/> <br/>
<p>
名称: <span id="video_name">未知</span>
</p>
<br/> <br/>
<button onClick="next_video()">下一集</button> <button onClick="next_video()">下一集</button>
<br/>
<br/>
<script src="https://cdn.yimian.xyz/ushio-js/ushio-footer.min.js"></script> <script src="https://cdn.yimian.xyz/ushio-js/ushio-footer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script> <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
@ -109,6 +114,15 @@
}, 2000); }, 2000);
}); });
} }
var getInfo = function(){
$.post('https://acg.watch/api/getInfo.php?url='+options.video.quality[0].url, function(res){
res = JSON.parse(res);
printInfo(res);
});
}
var printInfo = function(res){
$('#video_name').html(res.name);
}
</script> </script>
</body> </body>
</html> </html>

Loading…
Cancel
Save