Open Aiaminm opened 1 year ago
How to play mp4 more easily? I'm not good at streaming..
I did such workaround and it works.
import { Readable } from "readable-stream";
....
// This stream will contain the requested bytes
stream = Readable.from(
ipfs.cat(DOM.cidInput().value.trim(), {
offset: start,
length: end && end - start,
})
);