I'm developing web api with .net core 5.0. I'd like to know how can I response with multiple video files(mp4).
I looked at the links below, but couldn't find a way to response with multiple files.
.NET Core 2.0 Web API for Video Streaming from FileStream
Streaming video files in asp.net core 2
I would like to ask you if the methods below are a way to solve this. If not, please let me know what is the right way.
method 1.
Should I compress multiple files and response it? Then, In front-end side(React js), if I want to show videos in browser, should I unzip file and load it?
method 2.
Should I convert video files to Stream and response it by json? Then, In front-end side(React js), how can I convert Stream to mp4?
Thank you for reading.
Aucun commentaire:
Enregistrer un commentaire