废话不多说直接上代码,就不管看不看得懂了
<!DOCTYPE html>
<html>
<head>
<title>RTSP Video Player</title>
<link href="https://vjs.zencdn.net/7.8.4/video-js.css" rel="stylesheet" />
<script src="https://vjs.zencdn.net/7.8.4/video.js"></script>
</head>
<body>
<video id="my-video1" class="video-js" controls preload="auto" width="640" height="264" poster="MY_VIDEO_POSTER.jpg"
data-setup="{}">
<source src="rtsp://your-rtsp-stream-url-1" type='rtsp/mp4'>
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that
<a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video&