1、h5页面视频播放(引用video.js,适用hls流)
<!DOCTYPE html>
<html>
<head>
<title>VideoLayerPlayer</title>
<style type="text/css">
html, body {
background-color: #111;
text-align: center;
}
</style>
<link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.3.0/video-js.min.css" rel="stylesheet">
</head>
<body>
<video id='myVideo' class='video-js vjs-default-skin vjs-big-play-centered' style="object-fit:fill">
<source src="http://192.168.3.104:8765/hls/cctv1.m3u8" type="application/x-mpegURL" />
</video>
</body>
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.4.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs