ykdz/live.html

123 lines
3.3 KiB
HTML

<!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>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.video-container {
width: 375px;
height: 240px;
}
.liveBtns {
background: url("./img/bg_live.png") no-repeat;
background-size: 100%;
height: 484px;
padding: 17px 22px;
}
.btn_shareBox,
.btn_thumbBox {
width: 330px;
height: 80px;
background: #ffffff;
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.02);
border-radius: 20px 20px 20px 20px;
/* margin-bottom: 40px; */
margin-top: 40px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 30px;
box-sizing: border-box;
}
.video-title {
/* width: 268px; */
/* height: 30px; */
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 20px;
color: #333333;
line-height: 30px;
letter-spacing: 1px;
text-align: left;
font-style: normal;
text-transform: none;
margin-bottom: 87px;
}
.pic_share {
background: url("./img/pic_share.png");
background-size: 100%;
width: 40px;
height: 40px;
display: inline-block;
margin-right: 20px;
}
.pic_thumb {
background: url("./img/pic_thumbsup.png");
background-size: 100%;
width: 40px;
height: 40px;
display: inline-block;
margin-right: 20px;
}
.left,
.right {
display: flex;
align-items: center;
}
</style>
<link
href="https://web.sdk.qcloud.com/player/tcplayer/release/v5.1.0/tcplayer.min.css"
rel="stylesheet"
/>
<!--播放器脚本文件-->
<script src="https://web.sdk.qcloud.com/player/tcplayer/release/v5.1.0/tcplayer.v5.1.0.min.js"></script>
<script src="./js/jquery.min.js"></script>
<script src="./js/msg.js"></script>
<script src="./js/api.js"></script>
<script>
$(function () {
let payload = getParameterByName("id");
console.log(payload);
getWebVideoInfo(payload);
});
function share() {}
</script>
</head>
<body>
<!-- <div class=""></div> -->
<div class="body">
<div class="video-container">
<video
id="player-container-id"
style="width: 100%"
height="240"
muted
autoplay
preload="auto"
playsinline
webkit-playsinline
></video>
</div>
<div class="liveBtns">
<div class="video-title">直击节前出行高峰(直播名称)</div>
<div class="btn_shareBox" onclick="likeShare(2,2)">
<div class="left"><i class="pic_share"></i>分享</div>
<div class="right">2568</div>
</div>
<div class="btn_thumbBox" onclick="likeShare(1,2)">
<div class="left"><i class="pic_thumb"></i>点赞</div>
<div class="right">2568</div>
</div>
</div>
</div>
</body>
</html>