Created
December 12, 2022 22:08
-
-
Save donkeysharp/955d524030e1f8d6f710f76ab2b23886 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Live Streaming</title> | |
<link href="//vjs.zencdn.net/5.8/video-js.min.css" rel="stylesheet"> | |
<script src="//vjs.zencdn.net/5.8/video.min.js"></script> | |
</head> | |
<body> | |
<video id="player" class="video-js vjs-default-skin" height="360" width="640" controls preload="none"> | |
</video> | |
<script> | |
var player = videojs('player'); | |
player.src({ | |
src: 'http://35.87.156.90:8080/hls/stream.m3u8', | |
type: 'application/x-mpegURL' | |
}); | |
player.load(); | |
player.play(); | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment