前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >解析视频网页开源源码 (接口不是我写的)

解析视频网页开源源码 (接口不是我写的)

原创
作者头像
xlj
发布2022-04-02 17:40:00
2.8K0
发布2022-04-02 17:40:00
举报
文章被收录于专栏:XLJ的技术专栏

简述

看电影需要 VIP 用接口显得麻烦就写了个网页

效果图

代码

代码语言:javascript
复制
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>解析视频</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        html,body {
            height: 100%;
        }

        body {
            font-size: 20px;
        }

        .title {
            height: 60px;
            background-color: #007bff;
            color: #ffffff;
            box-shadow: 0 2px 2px #dddddd;
            padding: 0 5%;
            display: flex;
            align-items: center;
        }

        .info {
            padding: 20px 5% 0 5%;
            font-weight: 200;
            font-size: 18px;
        }

        .function {
            padding: 10px 0;
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .function input {
            border: none;
            outline: none;
            border: 1px solid #dddddd;
            padding: 10px;
            border-radius: 2px;
        }

        .function span {
            margin-left: 10px;
            padding: 10px;
            user-select: none;
            cursor: pointer;
        }

        .video {
            
        }

        .video iframe {
            width: 100%;
            height: 500px;
        }
    </style>
</head>
<body>
    <div class="title">
        <span>解析视频</span>
    </div>

    <!-- 原创申明 虽然是一个简单的网页,但是想法也是原创可以保护的 原创 : XLJ -->
    <!-- 博客 : xlj0.com -->

    <div class="info">
        <span>输入播放页面的链接地址</span>
        <div class="function">
            <input type="text" id="inputInfo">
            <span class="button" id="buttonFunction">解析</span>
        </div>

        <div class="video">
            <iframe src="" frameborder="0" id="video"></iframe>
        </div>
    </div>

    <script>
        // 绑定标签
        var inputInfo = document.getElementById('inputInfo');
        var buttonFunction = document.getElementById('buttonFunction');
        var video = document.getElementById('video');

        // 实现点击按钮加载视频地址
        buttonFunction.onclick = function () {
            video.src = 'https://www.nxflv.com/?url=' + inputInfo.value;
        }
    </script>
</body>
</html>

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 简述
  • 代码
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档