Example of Video Streaming via HTTP 206 Partial Content to a Video Player
-
Server:
- Spring Boot
- HTTP 206 implementation from: https://github.com/davinkevin/Podcast-Server/blob/d927d9b8cb9ea1268af74316cd20b7192ca92da7/src/main/java/lan/dk/podcastserver/utils/multipart/MultipartFileSender.java
-
Client:
- VLCJ (https://github.com/caprica/vlcj)
- Every other video-client (e.g. Google Chrome, ...) is possible.
-
Usage:
- Make sure to edit the Video Path in
de.hoel.video.server.VideoController#getTestVideo
to find an actual example video source. - Use or do not use the
RateLimiter
feature fromGuava
to simulate a slower network connection. Do that by (un)commenting the lines inde.hoel.video.server.MultipartFileSender
that use theRateLimiter
. - Run
de.hoel.video.server.VideoServerApplication
as Java Program - Open
http://localhost:8080/videos/test
in a Browser or by startingde.hoel.video.client.VideoClient
- Make sure to edit the Video Path in