28 |
29 | {/* only initiate the player when the output file is ready */}
30 | {/* using a state variable here to toggle visibility */}
31 | {fileDetected ?
32 |
40 | : null
41 | }
42 |
43 |
44 | );
45 | }
46 |
47 | export default App;
48 |
--------------------------------------------------------------------------------
/frontend/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
19 |
28 | React App
29 |
30 |
31 |
32 |
33 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/frontend/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # HLS Stream
2 |
3 | A sample project to convert RTSP to HLS and stream it to React frontend via ExpressJS.
4 |
5 | ### INSTALL
6 |
7 | #### backend
8 |
9 | ```cd backend```
10 |
11 | ```npm install```
12 |
13 | #### frontend
14 | ```cd frontend```
15 |
16 | ```npm install```
17 |
18 | ### HOW TO RUN
19 |
20 | #### backend
21 | ```node app.js```
22 |
23 | #### frontend
24 | ```npm start```
25 |
26 | Make sure there's something to convert. Put the video file into the "videos" folder in your backend. If there is no "videos" folder, create one. So the "videos" folder should be in backend/videos. Your video should be in backend/videos/video.mp4
27 |
28 | ### `React Router` use case
29 |
30 | If you are using `React Router` and your router base name is not `'/'` and is something like ``, here is what you do.
31 |
32 | #### Client side
33 |
34 | ``` javascript
35 | axios.get("/main/video").then(res => {
36 | console.log("res status: " + res.status)
37 |
38 | if (res.status === 200) {
39 | console.log("res status is 200")
40 |
41 | setFileDetected(true)
42 | }
43 | })
44 | ```
45 |
46 | ``` javascript
47 | {fileDetected ?
48 | :
57 |
63 | }
64 | ```
65 |
66 | #### Server side
67 | ``` javascript
68 | app.get('/main/video', (req, res) => {})
69 | ```
70 |
71 | ``` javascript
72 | ffmpeg('main/videos/video_name.mp4', { timeout: 432000 }).addOptions([
73 |
74 | ]).output('main/videos/output.m3u8')
75 | ```
76 |
77 | As you can see, everything is prefixed by the router's base name except for the `ReactHlsPlayer`'s url property.
78 |
79 | If it is an endpoint, include the base name.
80 |
81 | If it is a file path, do not include. But, make sure there is a folder with the base name in your backend.
82 |
83 |
84 | ### Technologies used
85 | - React
86 | - Express JS
87 | - [hls-server](https://www.npmjs.com/package/hls-server)
88 | - [fluent-ffmpeg](https://www.npmjs.com/package/fluent-ffmpeg)
89 | - [@ffmpeg-installer/ffmpeg](https://www.npmjs.com/package/@ffmpeg-installer/ffmpeg)
90 | - [axios](https://www.npmjs.com/package/axios)
91 | - [react-hls-player](https://www.npmjs.com/package/react-hls-player)
92 |
93 | **Note**
94 | - Check the ```ffmpeg``` function in ```app.js``` to make sure you are converting the right file/folder.
95 | - This project does not currently delete the ```.ts``` files.
96 | - This project uses a proxy attribute in the ```package.json``` file, it does not use CORS.
97 |
--------------------------------------------------------------------------------
/frontend/README.md:
--------------------------------------------------------------------------------
1 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `npm start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13 |
14 | The page will reload if you make edits.\
15 | You will also see any lint errors in the console.
16 |
17 | ### `npm test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `npm run build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `npm run eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35 |
36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37 |
38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39 |
40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
48 | ### Code Splitting
49 |
50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51 |
52 | ### Analyzing the Bundle Size
53 |
54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55 |
56 | ### Making a Progressive Web App
57 |
58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59 |
60 | ### Advanced Configuration
61 |
62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63 |
64 | ### Deployment
65 |
66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67 |
68 | ### `npm run build` fails to minify
69 |
70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
71 |
--------------------------------------------------------------------------------
/backend/app.js:
--------------------------------------------------------------------------------
1 | const express = require('express')
2 | const app = express()
3 | const fs = require('fs');
4 | const hls = require('hls-server');
5 |
6 | const ffmpeg = require('fluent-ffmpeg');
7 | const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
8 |
9 |
10 | app.get('/video', (req, res) => {
11 | ffmpeg.setFfmpegPath(ffmpegInstaller.path);
12 |
13 | var headersSent = false
14 |
15 | // for rtsp
16 | // rtsp://username:password@ip_address
17 |
18 | // for mp4
19 |
20 | ffmpeg('videos/video.mp4', { timeout: 432000 }).addOptions([
21 | '-profile:v baseline',
22 | '-fflags -nobuffer', // no idea whether this causes lower latency
23 | '-probesize 32', // no idea whether this causes lower latency
24 | '-s 480x360', // resolution (scale)
25 | '-level 3.0',
26 | '-start_number 0',
27 | '-hls_time 2', // length of each segment (2s in this case)
28 | '-hls_list_size 0',
29 | '-f hls' // format to hls
30 | ]).output('videos/output.m3u8') // output.m3u8 will be in a directory called "videos"
31 | .on('end', () => {
32 | console.log('end');
33 | })
34 | .on('progress', function (progress) {
35 |
36 | // while ffmpeg is converting and processing the files
37 | // check to see if the .m3u8 file has been created
38 | // we need it for the video player to play something
39 | console.log('Processing: ' + progress.percent + '% done')
40 |
41 | // check if the file exists
42 | fs.access("videos/output.m3u8", fs.constants.F_OK, function (err) {
43 | if (err) {
44 | console.log("Processing error")
45 | console.log('File not exist');
46 | } else {
47 | // check to see if headers are sent so as to avoid headers being sent again
48 | // headers should be sent once
49 | if (headersSent === false) {
50 | console.log("Processing success")
51 | console.log("File exists")
52 |
53 |
54 | //file exists
55 | console.log("==========")
56 | console.log("==========m3u8 file detected==========")
57 | console.log("==========")
58 |
59 | headersSent = true
60 |
61 | // when the .m3u8 file has been created
62 | // send a response to your frontend so that the player can be initialised and shown
63 | res.sendStatus(200)
64 | }
65 | }
66 | });
67 | })
68 | .run();
69 | });
70 |
71 |
72 | // we are using a proxy, so make sure the port number corresponds to your frontend's package.json proxy attribute
73 | const server = app.listen(9000);
74 |
75 | new hls(server, {
76 | provider: {
77 | exists: (req, cb) => {
78 | const ext = req.url.split('.').pop();
79 |
80 | if (ext !== 'm3u8' && ext !== 'ts') {
81 | return cb(null, true);
82 | }
83 |
84 |
85 |
86 | fs.access(__dirname + req.url, fs.constants.F_OK, function (err) {
87 | if (err) {
88 | console.log("HLS error")
89 | console.log('File not exist');
90 | return cb(null, false);
91 | }
92 |
93 | cb(null, true);
94 | });
95 | },
96 | getManifestStream: (req, cb) => {
97 | const stream = fs.createReadStream(__dirname + req.url);
98 |
99 | cb(null, stream);
100 | },
101 | getSegmentStream: (req, cb) => {
102 | const stream = fs.createReadStream(__dirname + req.url);
103 | cb(null, stream);
104 | }
105 | }
106 | });
--------------------------------------------------------------------------------
/backend/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "express-hls-example",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "@ffmpeg-installer/darwin-x64": {
8 | "version": "4.1.0",
9 | "resolved": "https://registry.npmjs.org/@ffmpeg-installer/darwin-x64/-/darwin-x64-4.1.0.tgz",
10 | "integrity": "sha512-Z4EyG3cIFjdhlY8wI9aLUXuH8nVt7E9SlMVZtWvSPnm2sm37/yC2CwjUzyCQbJbySnef1tQwGG2Sx+uWhd9IAw==",
11 | "optional": true
12 | },
13 | "@ffmpeg-installer/ffmpeg": {
14 | "version": "1.0.20",
15 | "resolved": "https://registry.npmjs.org/@ffmpeg-installer/ffmpeg/-/ffmpeg-1.0.20.tgz",
16 | "integrity": "sha512-wbgd//6OdwbFXYgV68ZyKrIcozEQpUKlvV66XHaqO2h3sFbX0jYLzx62Q0v8UcFWN21LoxT98NU2P+K0OWsKNA==",
17 | "requires": {
18 | "@ffmpeg-installer/darwin-x64": "4.1.0",
19 | "@ffmpeg-installer/linux-arm": "4.1.3",
20 | "@ffmpeg-installer/linux-arm64": "4.1.4",
21 | "@ffmpeg-installer/linux-ia32": "4.1.0",
22 | "@ffmpeg-installer/linux-x64": "4.1.0",
23 | "@ffmpeg-installer/win32-ia32": "4.1.0",
24 | "@ffmpeg-installer/win32-x64": "4.1.0"
25 | }
26 | },
27 | "@ffmpeg-installer/linux-arm": {
28 | "version": "4.1.3",
29 | "resolved": "https://registry.npmjs.org/@ffmpeg-installer/linux-arm/-/linux-arm-4.1.3.tgz",
30 | "integrity": "sha512-NDf5V6l8AfzZ8WzUGZ5mV8O/xMzRag2ETR6+TlGIsMHp81agx51cqpPItXPib/nAZYmo55Bl2L6/WOMI3A5YRg==",
31 | "optional": true
32 | },
33 | "@ffmpeg-installer/linux-arm64": {
34 | "version": "4.1.4",
35 | "resolved": "https://registry.npmjs.org/@ffmpeg-installer/linux-arm64/-/linux-arm64-4.1.4.tgz",
36 | "integrity": "sha512-dljEqAOD0oIM6O6DxBW9US/FkvqvQwgJ2lGHOwHDDwu/pX8+V0YsDL1xqHbj1DMX/+nP9rxw7G7gcUvGspSoKg==",
37 | "optional": true
38 | },
39 | "@ffmpeg-installer/linux-ia32": {
40 | "version": "4.1.0",
41 | "resolved": "https://registry.npmjs.org/@ffmpeg-installer/linux-ia32/-/linux-ia32-4.1.0.tgz",
42 | "integrity": "sha512-0LWyFQnPf+Ij9GQGD034hS6A90URNu9HCtQ5cTqo5MxOEc7Rd8gLXrJvn++UmxhU0J5RyRE9KRYstdCVUjkNOQ==",
43 | "optional": true
44 | },
45 | "@ffmpeg-installer/linux-x64": {
46 | "version": "4.1.0",
47 | "resolved": "https://registry.npmjs.org/@ffmpeg-installer/linux-x64/-/linux-x64-4.1.0.tgz",
48 | "integrity": "sha512-Y5BWhGLU/WpQjOArNIgXD3z5mxxdV8c41C+U15nsE5yF8tVcdCGet5zPs5Zy3Ta6bU7haGpIzryutqCGQA/W8A==",
49 | "optional": true
50 | },
51 | "@ffmpeg-installer/win32-ia32": {
52 | "version": "4.1.0",
53 | "resolved": "https://registry.npmjs.org/@ffmpeg-installer/win32-ia32/-/win32-ia32-4.1.0.tgz",
54 | "integrity": "sha512-FV2D7RlaZv/lrtdhaQ4oETwoFUsUjlUiasiZLDxhEUPdNDWcH1OU9K1xTvqz+OXLdsmYelUDuBS/zkMOTtlUAw==",
55 | "optional": true
56 | },
57 | "@ffmpeg-installer/win32-x64": {
58 | "version": "4.1.0",
59 | "resolved": "https://registry.npmjs.org/@ffmpeg-installer/win32-x64/-/win32-x64-4.1.0.tgz",
60 | "integrity": "sha512-Drt5u2vzDnIONf4ZEkKtFlbvwj6rI3kxw1Ck9fpudmtgaZIHD4ucsWB2lCZBXRxJgXR+2IMSti+4rtM4C4rXgg==",
61 | "optional": true
62 | },
63 | "accepts": {
64 | "version": "1.3.7",
65 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
66 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
67 | "requires": {
68 | "mime-types": "~2.1.24",
69 | "negotiator": "0.6.2"
70 | }
71 | },
72 | "array-flatten": {
73 | "version": "1.1.1",
74 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
75 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
76 | },
77 | "async": {
78 | "version": "3.2.0",
79 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.0.tgz",
80 | "integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw=="
81 | },
82 | "body-parser": {
83 | "version": "1.19.0",
84 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
85 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==",
86 | "requires": {
87 | "bytes": "3.1.0",
88 | "content-type": "~1.0.4",
89 | "debug": "2.6.9",
90 | "depd": "~1.1.2",
91 | "http-errors": "1.7.2",
92 | "iconv-lite": "0.4.24",
93 | "on-finished": "~2.3.0",
94 | "qs": "6.7.0",
95 | "raw-body": "2.4.0",
96 | "type-is": "~1.6.17"
97 | }
98 | },
99 | "bytes": {
100 | "version": "3.1.0",
101 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
102 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
103 | },
104 | "content-disposition": {
105 | "version": "0.5.3",
106 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
107 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
108 | "requires": {
109 | "safe-buffer": "5.1.2"
110 | }
111 | },
112 | "content-type": {
113 | "version": "1.0.4",
114 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
115 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
116 | },
117 | "cookie": {
118 | "version": "0.4.0",
119 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
120 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg=="
121 | },
122 | "cookie-signature": {
123 | "version": "1.0.6",
124 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
125 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
126 | },
127 | "cors": {
128 | "version": "2.8.5",
129 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
130 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
131 | "requires": {
132 | "object-assign": "^4",
133 | "vary": "^1"
134 | }
135 | },
136 | "debug": {
137 | "version": "2.6.9",
138 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
139 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
140 | "requires": {
141 | "ms": "2.0.0"
142 | }
143 | },
144 | "depd": {
145 | "version": "1.1.2",
146 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
147 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
148 | },
149 | "destroy": {
150 | "version": "1.0.4",
151 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
152 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
153 | },
154 | "ee-first": {
155 | "version": "1.1.1",
156 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
157 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
158 | },
159 | "encodeurl": {
160 | "version": "1.0.2",
161 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
162 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
163 | },
164 | "escape-html": {
165 | "version": "1.0.3",
166 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
167 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
168 | },
169 | "etag": {
170 | "version": "1.8.1",
171 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
172 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
173 | },
174 | "express": {
175 | "version": "4.17.1",
176 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz",
177 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==",
178 | "requires": {
179 | "accepts": "~1.3.7",
180 | "array-flatten": "1.1.1",
181 | "body-parser": "1.19.0",
182 | "content-disposition": "0.5.3",
183 | "content-type": "~1.0.4",
184 | "cookie": "0.4.0",
185 | "cookie-signature": "1.0.6",
186 | "debug": "2.6.9",
187 | "depd": "~1.1.2",
188 | "encodeurl": "~1.0.2",
189 | "escape-html": "~1.0.3",
190 | "etag": "~1.8.1",
191 | "finalhandler": "~1.1.2",
192 | "fresh": "0.5.2",
193 | "merge-descriptors": "1.0.1",
194 | "methods": "~1.1.2",
195 | "on-finished": "~2.3.0",
196 | "parseurl": "~1.3.3",
197 | "path-to-regexp": "0.1.7",
198 | "proxy-addr": "~2.0.5",
199 | "qs": "6.7.0",
200 | "range-parser": "~1.2.1",
201 | "safe-buffer": "5.1.2",
202 | "send": "0.17.1",
203 | "serve-static": "1.14.1",
204 | "setprototypeof": "1.1.1",
205 | "statuses": "~1.5.0",
206 | "type-is": "~1.6.18",
207 | "utils-merge": "1.0.1",
208 | "vary": "~1.1.2"
209 | }
210 | },
211 | "finalhandler": {
212 | "version": "1.1.2",
213 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
214 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==",
215 | "requires": {
216 | "debug": "2.6.9",
217 | "encodeurl": "~1.0.2",
218 | "escape-html": "~1.0.3",
219 | "on-finished": "~2.3.0",
220 | "parseurl": "~1.3.3",
221 | "statuses": "~1.5.0",
222 | "unpipe": "~1.0.0"
223 | }
224 | },
225 | "fluent-ffmpeg": {
226 | "version": "2.1.2",
227 | "resolved": "https://registry.npmjs.org/fluent-ffmpeg/-/fluent-ffmpeg-2.1.2.tgz",
228 | "integrity": "sha1-yVLeIkD4EuvaCqgAbXd27irPfXQ=",
229 | "requires": {
230 | "async": ">=0.2.9",
231 | "which": "^1.1.1"
232 | }
233 | },
234 | "forwarded": {
235 | "version": "0.1.2",
236 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
237 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ="
238 | },
239 | "fresh": {
240 | "version": "0.5.2",
241 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
242 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
243 | },
244 | "hls-server": {
245 | "version": "1.5.0",
246 | "resolved": "https://registry.npmjs.org/hls-server/-/hls-server-1.5.0.tgz",
247 | "integrity": "sha512-uDTPyuNvHjd5KkK/Zmm6vAWERdRp0l8rlkfSO56KcJGsEfFMwVcgkzbScTmrV+kuOq9FznWf9ze9pprtGEletA==",
248 | "requires": {
249 | "http-attach": "^1.0.0",
250 | "minimist": "^1.2.0"
251 | }
252 | },
253 | "http-attach": {
254 | "version": "1.0.0",
255 | "resolved": "https://registry.npmjs.org/http-attach/-/http-attach-1.0.0.tgz",
256 | "integrity": "sha1-ZeqA8AaWMB3s5dbMiC2BGzEy0AY="
257 | },
258 | "http-errors": {
259 | "version": "1.7.2",
260 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
261 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==",
262 | "requires": {
263 | "depd": "~1.1.2",
264 | "inherits": "2.0.3",
265 | "setprototypeof": "1.1.1",
266 | "statuses": ">= 1.5.0 < 2",
267 | "toidentifier": "1.0.0"
268 | }
269 | },
270 | "iconv-lite": {
271 | "version": "0.4.24",
272 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
273 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
274 | "requires": {
275 | "safer-buffer": ">= 2.1.2 < 3"
276 | }
277 | },
278 | "inherits": {
279 | "version": "2.0.3",
280 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
281 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
282 | },
283 | "ipaddr.js": {
284 | "version": "1.9.1",
285 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
286 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="
287 | },
288 | "isexe": {
289 | "version": "2.0.0",
290 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
291 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
292 | },
293 | "media-typer": {
294 | "version": "0.3.0",
295 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
296 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
297 | },
298 | "merge-descriptors": {
299 | "version": "1.0.1",
300 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
301 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
302 | },
303 | "methods": {
304 | "version": "1.1.2",
305 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
306 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
307 | },
308 | "mime": {
309 | "version": "1.6.0",
310 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
311 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
312 | },
313 | "mime-db": {
314 | "version": "1.46.0",
315 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.46.0.tgz",
316 | "integrity": "sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ=="
317 | },
318 | "mime-types": {
319 | "version": "2.1.29",
320 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.29.tgz",
321 | "integrity": "sha512-Y/jMt/S5sR9OaqteJtslsFZKWOIIqMACsJSiHghlCAyhf7jfVYjKBmLiX8OgpWeW+fjJ2b+Az69aPFPkUOY6xQ==",
322 | "requires": {
323 | "mime-db": "1.46.0"
324 | }
325 | },
326 | "minimist": {
327 | "version": "1.2.5",
328 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
329 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
330 | },
331 | "ms": {
332 | "version": "2.0.0",
333 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
334 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
335 | },
336 | "negotiator": {
337 | "version": "0.6.2",
338 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
339 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
340 | },
341 | "object-assign": {
342 | "version": "4.1.1",
343 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
344 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
345 | },
346 | "on-finished": {
347 | "version": "2.3.0",
348 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
349 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
350 | "requires": {
351 | "ee-first": "1.1.1"
352 | }
353 | },
354 | "parseurl": {
355 | "version": "1.3.3",
356 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
357 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
358 | },
359 | "path-to-regexp": {
360 | "version": "0.1.7",
361 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
362 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
363 | },
364 | "proxy-addr": {
365 | "version": "2.0.6",
366 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz",
367 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==",
368 | "requires": {
369 | "forwarded": "~0.1.2",
370 | "ipaddr.js": "1.9.1"
371 | }
372 | },
373 | "qs": {
374 | "version": "6.7.0",
375 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
376 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
377 | },
378 | "range-parser": {
379 | "version": "1.2.1",
380 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
381 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
382 | },
383 | "raw-body": {
384 | "version": "2.4.0",
385 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz",
386 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==",
387 | "requires": {
388 | "bytes": "3.1.0",
389 | "http-errors": "1.7.2",
390 | "iconv-lite": "0.4.24",
391 | "unpipe": "1.0.0"
392 | }
393 | },
394 | "safe-buffer": {
395 | "version": "5.1.2",
396 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
397 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
398 | },
399 | "safer-buffer": {
400 | "version": "2.1.2",
401 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
402 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
403 | },
404 | "send": {
405 | "version": "0.17.1",
406 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
407 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==",
408 | "requires": {
409 | "debug": "2.6.9",
410 | "depd": "~1.1.2",
411 | "destroy": "~1.0.4",
412 | "encodeurl": "~1.0.2",
413 | "escape-html": "~1.0.3",
414 | "etag": "~1.8.1",
415 | "fresh": "0.5.2",
416 | "http-errors": "~1.7.2",
417 | "mime": "1.6.0",
418 | "ms": "2.1.1",
419 | "on-finished": "~2.3.0",
420 | "range-parser": "~1.2.1",
421 | "statuses": "~1.5.0"
422 | },
423 | "dependencies": {
424 | "ms": {
425 | "version": "2.1.1",
426 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
427 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
428 | }
429 | }
430 | },
431 | "serve-static": {
432 | "version": "1.14.1",
433 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
434 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==",
435 | "requires": {
436 | "encodeurl": "~1.0.2",
437 | "escape-html": "~1.0.3",
438 | "parseurl": "~1.3.3",
439 | "send": "0.17.1"
440 | }
441 | },
442 | "setprototypeof": {
443 | "version": "1.1.1",
444 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
445 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
446 | },
447 | "statuses": {
448 | "version": "1.5.0",
449 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
450 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
451 | },
452 | "toidentifier": {
453 | "version": "1.0.0",
454 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
455 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
456 | },
457 | "type-is": {
458 | "version": "1.6.18",
459 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
460 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
461 | "requires": {
462 | "media-typer": "0.3.0",
463 | "mime-types": "~2.1.24"
464 | }
465 | },
466 | "unpipe": {
467 | "version": "1.0.0",
468 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
469 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
470 | },
471 | "utils-merge": {
472 | "version": "1.0.1",
473 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
474 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
475 | },
476 | "vary": {
477 | "version": "1.1.2",
478 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
479 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
480 | },
481 | "which": {
482 | "version": "1.3.1",
483 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
484 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
485 | "requires": {
486 | "isexe": "^2.0.0"
487 | }
488 | }
489 | }
490 | }
491 |
--------------------------------------------------------------------------------