Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rahulkp220/streaming-videos
Learn to stream any video using nodejs
https://github.com/rahulkp220/streaming-videos
Last synced: 13 days ago
JSON representation
Learn to stream any video using nodejs
- Host: GitHub
- URL: https://github.com/rahulkp220/streaming-videos
- Owner: rahulkp220
- License: mit
- Created: 2022-02-26T09:08:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-28T07:31:01.000Z (almost 3 years ago)
- Last Synced: 2024-12-08T14:42:12.773Z (15 days ago)
- Language: TypeScript
- Size: 30.9 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# streaming-videos
Learn to stream videos using nodejs along with `typescript`.
The app uses the following
- `winston` for logging
- `express` as backend framework
- `eslint` for linting![Final](./screenshots/Final%20webpage.png)
### Run the app
Use the following commands to run the app
```
npm run serve
```This would produce an o/p that would look like this,
```
3:14:46 PM - Starting compilation in watch mode...
[0]
[1] Running on port 8000
[0]
[0] 3:14:50 PM - Found 0 errors. Watching for file changes.
[1] Running on port 8000
[1] info: Serving file...
[1] info: Requested video from 0 till 1000000 bytes
[1] info: Requested video from 31391744 till 31491129 bytes
[1] info: Requested video from 983040 till 1983040 bytes
[1] info: Requested video from 1983041 till 2983041 bytes
[1] info: Requested video from 2983042 till 3983042 bytes
[1] info: Requested video from 3983043 till 4983043 bytes
...
..
.
```### Screenshot showing chunked video requests
![Chunked Video Requests](./screenshots/Chunked%20video%20requests.png)### Credits
- This is a typescript implementation of the code originally presented in the awesome youtube video [How To Code A Video Streaming Server in NodeJS](https://www.youtube.com/watch?v=ZjBLbXUuyWg) by [AbdisalanCodes](https://www.youtube.com/channel/UC3IZLtnKL9wZ8wuuQg3MJPA). Do check out his videos on streaming :tada:- The video used for this repo has been download via [Learning Container](https://www.learningcontainer.com/mp4-sample-video-files-download/) originally a part of clip from the movie [Big Buck Bunny](https://peach.blender.org/) shared under the [Creative Commons v3.0 License](https://creativecommons.org/licenses/by/3.0/)