Home / Players User Guide
Table of Contents
1. add Access-Control-Allow-Origin=* into ezserver_config.txt2. set HLS channel as below:3. refer the below HTML code:<!-- CSS --><link href="https://vjs.zencdn.net/7.2.3/video-js.css" rel="stylesheet"> <!-- HTML --> <video id='hls-example' class="video-js vjs-default-skin" width="400" height="300" controls> <source type="application/x-mpegURL" src="http://192.168.0.10:8000/TV1.m3u8?u=robert:p=1234"> </video> <!-- JS code --> <!-- If you'd like to support IE8 (for Video.js versions prior to v7) --> <script src="https://vjs.zencdn.net/ie8/ie8-version/videojs-ie8.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.14.1/videojs-contrib-hls.js"></script> <script src="https://vjs.zencdn.net/7.2.3/video.js"></script> <script> var player = videojs('hls-example'); player.play(); </script>
Channel output format: TS / FLV
|