This works well for small videos. However, I am trying to use media stream to avoid pulling all data into blob before I can play that.
I tried various ways including Videostream with no success.
Specifically, I don't understand how to create the "readable stream that provides the bytes between offsets "start" and "end" inclusive" - required by Videostream.
The goal is to allow only authenticated users to access the videos exposed by api and make it difficult to download while keeping the ux as smooth as possible.
Hi,
I have posted question here - https://stackoverflow.com/q/67980499/9640177
I am trying to play video using media stream in next js. My api looks like this
and in the index.js
This works well for small videos. However, I am trying to use media stream to avoid pulling all data into blob before I can play that.
I tried various ways including Videostream with no success.
Specifically, I don't understand how to create the "readable stream that provides the bytes between offsets "start" and "end" inclusive" - required by Videostream.
The goal is to allow only authenticated users to access the videos exposed by api and make it difficult to download while keeping the ux as smooth as possible.
https://stackoverflow.com/q/67980499/9640177