Commit 30905fdb authored by nextime's avatar nextime

Repristinate stream.html

parent 9230acdc
...@@ -32,8 +32,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. ...@@ -32,8 +32,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
height: 100%; height: 100%;
} }
video { video {
width: 100%; width: 100% !important;
height: 100%; height: 100% !important;
object-fit: contain; object-fit: contain;
} }
</style> </style>
...@@ -41,19 +41,29 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. ...@@ -41,19 +41,29 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<body> <body>
<div id="videoContainer"> <div id="videoContainer">
<video id="videoPlayer" autoplay muted playsinline> <video id="videoPlayer" autoplay muted playsinline>
<source src="/video_feed" type="video/mp4"> <source type="video/mp4">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>
</div> </div>
<script src="https://vjs.zencdn.net/7.20.3/video.min.js"></script> <script src="https://vjs.zencdn.net/7.20.3/video.min.js"></script>
<script> <script>
var player = videojs('videoPlayer', { window.onload = function() {
autoplay: true, var player = videojs('videoPlayer', {
muted: true, html5: {
controls: true, vhs: {
fluid: true, overrideNative: !videojs.browser.IS_SAFARI
responsive: true },
}); nativeAudioTracks: false,
nativeVideoTracks: false,
autoplay: true,
muted: true,
controls: false,
fluid: true,
respomsive: true
}});
player.src({ src: '{{ stream_url }}', type: 'application/x-mpegURL'});
player.play();
};
// Function to handle resize // Function to handle resize
function handleResize() { function handleResize() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment