源码直接上传到服务器即可使用据英国科学家统计,
男人每天看5分钟美女,可提高食欲,可预防老年痴呆。
浪隔壁的老大爷,每天坚持看5分钟,已经90多岁了!
我能有什么坏心思呢?我就是一个简单的男人,
一天到晚就想着三件事:搞钱,找谁喝点,这娘们儿真好看。
上传服务器解压访问域名修改。
调用接口。里面自带接口。
PS:资源来自互联网收集,如有收费使用还请谨慎!
<html lang="zh-CN">
<head>
<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 width="100%" height="100%" id="player" src="http://www.kuaidoushe.com/video.php" controls="" webkit-playsinline="" playsinline="" poster="http://www.tianxia520.com/public/images/logo.png" preload="none">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://www.kuaidoushe.com/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>