learn-video / mosaic-video

Generate mosaics from video inputs
Apache License 2.0
35 stars 6 forks source link

Feat/hls player #6

Closed luiscovelo closed 9 months ago

luiscovelo commented 9 months ago

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:

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.

Like this:

{
    "mosaics": [
        "http://localhost:8090/playlist/money.m3u8",
        "http://localhost:8090/playlist/news.m3u8",
        "http://localhost:8090/playlist/politicies.m3u8"
    ]
}

Best reguards.

mauricioabreu commented 9 months ago

@luiscovelo wow, that's really awesome! Thank you for your contribution. Merging.