I'm excited about this project, therefore i implemented a simple HLS player for can be possible to watch a livestream.
It's was necessary to create three news HTTP handlers to serve and get object method in storage:
The playlist.m3u8 and playlist-{timestamp}.ts files;
The index.html for HLS player in HTML page file.
See this video example in how does HLS player works: video.
To make this simple for now, i didn't use nginx as a proxy + cache.
This player run in app player so you need run just player or go run main.go player, if success, player runs in: http://localhost:8090/player.
For the future
In near future, i would like to change the HLS Player to fetch .m3u8 manifest on special endpoint, in this endpoint should return a JSON struct containing a list of playlist.m3u8 based in mosaic name returned in API Url, in this way, we can show all mosaics in screens.
Hi,
I'm excited about this project, therefore i implemented a simple HLS player for can be possible to watch a livestream.
It's was necessary to create three news HTTP handlers to serve and get object method in storage:
The index.html for HLS player in HTML page file.
To make this simple for now, i didn't use nginx as a proxy + cache.
This player run in app
player
so you need runjust player
orgo run main.go player
, if success, player runs in: http://localhost:8090/player.For the future
In near future, i would like to change the HLS Player to fetch
.m3u8
manifest on special endpoint, in this endpoint should return a JSON struct containing a list of playlist.m3u8 based in mosaic name returned in API Url, in this way, we can show all mosaics in screens.Like this:
Best reguards.