Files
ClassContent/项目合集/快手/fontend/play.html
2024-09-27 02:06:13 +08:00

42 lines
915 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="./css/clear.css">
<link rel="stylesheet" href="./css/public.css">
<link rel="stylesheet" href="./css/play.css">
<style>
video {
width: 600px;
}
</style>
</head>
<body>
<video controls src=""></video>
</body>
<script src="js/ajax.js"></script>
<script src="js/utils.js"></script>
<script src="js/play.js"></script>
<script>
var video = document.querySelector("video")
http({
url: 'http://127.0.0.1:3000/api/play',
method: 'GET',
data: {
principalId: GetQueryString("uid"),
photoId: GetQueryString("vid")
},
success: function (res) {
console.log(res)
video.src = res.playUrl
video.poster = res.poster
}
})
</script>
</html>