AthletiFi / athletifi-website

Official website for AthletiFi
https://www.athleti.fi
1 stars 5 forks source link

Update Highlights Video Player to limit access to larger video #164

Closed qisforq closed 2 months ago

qisforq commented 3 months ago

Objective

Research how to implement highlights video player so that it appears as an individual video and not a bookmark for the full game recap video.

chef-louis commented 3 months ago

One option is to use the Mux video API to create a trimmed video via a POST request (eg. https://www.youtube.com/watch?v=KqgpLpDJjjM). This option does duplicate data into the Mux database which has cost implications.

chef-louis commented 3 months ago

Mux also handles thumbnail/poster generation on-demand which is really cool: https://docs.mux.com/guides/get-images-from-a-video

Basically we'll need to set an image src as something like this: https://image.mux.com/{PLAYBACK_ID}/thumbnail.png?width=400&height=200&fit_mode=smartcrop&time=35

qisforq commented 3 months ago

Investigate the API endpoint to generate video clips on Mux