Guest User

Hls video stream in Html5 videojs

a guest
Mar 4th, 2016
1,056
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.73 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <link href="http://vjs.zencdn.net/5.7.1/video-js.css" rel="stylesheet">
  5.     <meta charset="utf-8">
  6.     <title>title</title>
  7.   </head>
  8.   <body>
  9.     <video id="example-video" width="600" height="300" class="video-js vjs-default-skin" controls>
  10.       <source src="http://192.168.1.105:8080/hls/movie.m3u8" type="application/x-mpegURL">
  11.     </video>
  12.     <script src="http://vjs.zencdn.net/5.7.1/video.js"></script> <!-- video.js library latest version -->
  13.     <script src="videojs-hls.min.js"></script> <!-- video.js hls plugin library latest version (from https://github.com/videojs/videojs-contrib-hls) -->
  14.     <script>
  15.     var player = videojs('example-video');
  16.     player.play();
  17.     </script>
  18.   </body>
  19. </html>
Add Comment
Please, Sign In to add comment