feat: Integrate Video.js for enhanced video playback and controls in the viewer.
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
<title>Screenshare - Viewer</title>
|
<title>Screenshare - Viewer</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://vjs.zencdn.net/8.10.0/video-js.css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="viewer-container">
|
<div class="viewer-container">
|
||||||
@@ -16,8 +17,24 @@
|
|||||||
<span>Connecting to Broadcaster</span>
|
<span>Connecting to Broadcaster</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<video id="remoteVideo" autoplay playsinline></video>
|
<div class="video-wrapper" id="videoWrapper">
|
||||||
|
<video
|
||||||
|
id="remoteVideo"
|
||||||
|
class="video-js vjs-theme-city vjs-big-play-centered"
|
||||||
|
controls
|
||||||
|
preload="auto"
|
||||||
|
playsinline
|
||||||
|
data-setup='{"fluid": true}'
|
||||||
|
>
|
||||||
|
<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</a>
|
||||||
|
</p>
|
||||||
|
</video>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script src="https://vjs.zencdn.net/8.10.0/video.min.js"></script>
|
||||||
<script src="/socket.io/socket.io.js"></script>
|
<script src="/socket.io/socket.io.js"></script>
|
||||||
<script src="viewer.js"></script>
|
<script src="viewer.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user