短视频随机小姐姐+源码(20240403)

短视频随机小姐姐在线播放,收集了几个分享给需要的朋友,这个是直连视频地址版

本源码很简单就是两个文件,主要是视频资源,这个源码版本的视频不是API接口,也不是调用解析而是视频地址直连!

在线播放

图片[1]-短视频随机小姐姐+源码(20240403)-PC软件库

随机视频源

index.html 用这里的地址只要修改这些地址就可以了不需要服务器

//https://jx.baimifan.com.cn/get.php
//http://v.nrzj.vip/video.php
//http://tucdn.wpon.cn/api-girl/index.php?wpon=302
//修改43行 player.src = 'http://v.nrzj.vip/video.php';
//修改23行 <video id="player" src="http://v.nrzj.vip/video.php" controls webkit-playsinline playsinline></video>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charSet="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="referrer" content="never">
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title> 抖音随机小姐姐 </title>
<style>
* { border: 0; margin: 0; padding: 0; outline: none; box-sizing: border-box; }
body { background: #000; width: 100vw; height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
#main { height: calc(100vh - 60px); display: flex; justify-content: center; align-items: center; }
#player { width: 100%; height: auto; max-height: 100%; }
#buttons { height: 60px; padding: 10px; }
#switch, #next { background: #FFF; background: linear-gradient(to bottom, #FF2, #FB0); color: #AF2E08; font-size: 16px; font-weight: bold; height: 40px; padding: 0px 20px; margin: 0px 5px; border-radius: 20px; }
</style>
</head>
<body>
<section id="main">
    <video id="player" src="v.php" controls webkit-playsinline playsinline></video>
</section>
<section id="buttons">
    <button id="switch">连续: 开</button>
    <button id="next">播放下一个</button>
</section>
<script>
(function (window, document) {
    if (top != self) {
        window.top.location.replace(self.location.href);
    }
    var get = function (id) {
        return document.getElementById(id);
    }
    var bind = function (element, event, callback) {
        return element.addEventListener(event, callback);
    }
    var auto = true;
    var player = get('player');
    var randomm = function () {
        player.src = 'http://v.nrzj.vip/video.php';
        player.play();
    }
    bind(get('next'), 'click', randomm);
    bind(player, 'error', function () {
        randomm();
    });
    bind(get('switch'), 'click', function () {
        auto = !auto;
        this.innerText = '连续: ' + (auto ? '开' : '关');
    });
    bind(player, 'ended', function () {
        if (auto) randomm();
    });
})(window, document);
</script>      
</body>
</html>

一个文件就可以了

v.php

<?php
function read(...$filelist) {
    $list = [];
    foreach ($filelist as $file) {
        $handle = fopen($file, 'r');
        while (($line = fgets($handle)) !== false) {
            array_push($list, trim($line));
        }
        fclose($handle);
    }
    return $list;
}
$list = read('地址');  
//地址 这3个的其中一个都行;
//https://agit.ai/ccy/v/raw/branch/master/xjj2000.txt
//https://agit.ai/ccy/v/raw/branch/master/xjj6300.txt 
//https://agit.ai/ccy/v/raw/branch/master/xjj8000+.txt
$url = $list[array_rand($list)];
header("Location: {$url}");

index.html

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charSet="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="referrer" content="never">
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title> 抖音随机小姐姐 </title>
<style>
* { border: 0; margin: 0; padding: 0; outline: none; box-sizing: border-box; }
body { background: #000; width: 100vw; height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
#main { height: calc(100vh - 60px); display: flex; justify-content: center; align-items: center; }
#player { width: 100%; height: auto; max-height: 100%; }
#buttons { height: 60px; padding: 10px; }
#switch, #next { background: #FFF; background: linear-gradient(to bottom, #FF2, #FB0); color: #AF2E08; font-size: 16px; font-weight: bold; height: 40px; padding: 0px 20px; margin: 0px 5px; border-radius: 20px; }
</style>
</head>
<body>
<section id="main">
    <video id="player" src="v.php" controls webkit-playsinline playsinline></video>
</section>
<section id="buttons">
    <button id="switch">连续: 开</button>
    <button id="next">播放下一个</button>
</section>
<script>
(function (window, document) {
    if (top != self) {
        window.top.location.replace(self.location.href);
    }
    var get = function (id) {
        return document.getElementById(id);
    }
    var bind = function (element, event, callback) {
        return element.addEventListener(event, callback);
    }
    var auto = true;
    var player = get('player');
    var randomm = function () {
        player.src = 'v.php?_t=' + Math.random();
        player.play();
    }
    bind(get('next'), 'click', randomm);
    bind(player, 'error', function () {
        randomm();
    });
    bind(get('switch'), 'click', function () {
        auto = !auto;
        this.innerText = '连续: ' + (auto ? '开' : '关');
    });
    bind(player, 'ended', function () {
        if (auto) randomm();
    });
})(window, document);
</script>      
</body>
</html>

代码放到你的服务器上就可以愉快的欣赏了。

文章版权归作者所有,未经允许请勿转载。
© 版权声明
THE END
喜欢就支持一下吧
点赞14赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容

PC软件库
PC软件库