balvinderz / video_player_web_hls

Supports hls on chrome and other browsers.
BSD 3-Clause "New" or "Revised" License
52 stars 61 forks source link

[WIP] Signed Headers per request example with SigV4 #10

Closed BartusZak closed 3 years ago

BartusZak commented 3 years ago

Example of calculating and attaching Secured Headers per request with .m3u8 and .aac using SigV4 to Amazon S3.

@balvinderz

balvinderz commented 3 years ago

You should sign the headers in the example app , not in the plugin code .

BartusZak commented 3 years ago

Exactly. It's just a POC.

I would like to improve it, but can not manage more time to do it right know.

The main goal was to check if it is possible to implement and if is there a need to open issue diretly in video_player Flutter Package.

balvinderz commented 3 years ago

okay , great . So i will publish the new version since it works . Thank you so much for testing this :)

BartusZak commented 3 years ago

Your code works perfectly!

It does not cover my case because I have to calculate different signature per request but there is more approaches to handle it.

For example Presigned AWS URL where you can generate links working in a specyfic period of time.

If we would like to be enable to pass a function to VideoPlayerController then it would cover my case.

But it is probably a issue that we should open directly in video_player to extend VideoPlayerController with e.g httpHeadersFunction.

Do not know :D