index.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {% load static %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Bilibili Music Download</title>
  8. <style>
  9. html,body{
  10. height: 100%;
  11. }
  12. </style>
  13. </head>
  14. <body>
  15. <!-- <div style="height: 30%;width: 40%;margin-left: 30%;">
  16. <div id="dplayer"></div>
  17. </div> -->
  18. <div style="height: 40%;width: 40%;margin-left: 30%;">
  19. <!-- <iframe src="//www.bilibili.com/blackboard/html5mobileplayer.html?bvid={{bvname}}&high_quality=1&danmaku=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 100%;"> </iframe> -->
  20. <img src="{% static 'Mygo1.jpg' %}" alt="MyGo!!!!!" style="height: 100%; width: 100%;">
  21. </div>
  22. <div>
  23. <form action="/getAudio/getBV" method="POST" style="height: 10%;width: 40%;margin-left: 30%; background: rgb(49, 132, 106);display: flex;">
  24. {% csrf_token %}
  25. <p style="color: aliceblue;margin-left: 15%;">请输入BV号(单个):</p>
  26. <input type="text" name="bv" style="font-size: larger; height: 100%; width: 40%;margin-top: 2.7%;">
  27. <input type="submit" value="提交" style="margin-left: 10px; height: 100%; margin-top: 3.5%;">
  28. </form>
  29. </div>
  30. <div>
  31. <form action="/getAudio/getBVs" method="POST" style="height: 10%;width: 40%;margin-left: 30%; background: rgb(71, 192, 154);display: flex;">
  32. {% csrf_token %}
  33. <p style="color: aliceblue;margin-left: 15%;">请输入BV号(合集):</p>
  34. <input type="text" name="bv" style="font-size: larger; height: 100%; width: 40%;margin-top: 2.7%;">
  35. <input type="submit" value="提交" style="margin-left: 10px; height: 100%; margin-top: 3.5%;">
  36. </form>
  37. </div>
  38. <script src="https://cdn.jsdelivr.net/npm/dplayer@1.27.1/dist/DPlayer.min.js"></script>
  39. <script src="https://cdn.jsdelivr.net/npm/hls.js@1.4.12/dist/hls.min.js"></script>
  40. <script>
  41. const dp = new DPlayer({
  42. container: document.getElementById('dplayer'),
  43. video: {
  44. url: 'https://vip.ffzy-play6.com/20221218/22906_9a9cfa53/index.m3u8',
  45. type: 'hls',
  46. },
  47. pluginOptions: {
  48. hls: {
  49. // hls config
  50. },
  51. },
  52. });
  53. console.log(dp.plugins.hls);
  54. </script>
  55. </body>
  56. </html>