admin管理员组文章数量:1395291
I am building a custom site using Next 14, React Three Fiber, and Sanity as a CMS/CDN. Sanity's headless CMS handles pretty much everything needed for all content media types except for video. It can handle file uploads of video types, but theres no optimization around serving these files. Currently my issue is, I'd like to convert these mp4 files to HLS so I can stream then into the next app in the most optimal way. Using mux and similar paid services is the only solution I can find on the internet, and I'm not trying to pay for another service outside of Sanity and Vercel (if there is a way to have just this functionality for free with mux please let me know).
Building my own node app to handle the conversions and serve them back doesn't seem too hard, but then hosting both that and the Next app on vercel gets a little complicated.
I'm wondering if there is a way to handle the video conversion/streaming from Next's serverless functions, seeing as I am already storing the source files on Sanity's CDN, and could theoretically find a way to store the converted HLS chunks/manifest etc on the CDN as well, or if there is a better approach to this issue in general.
本文标签: reactjsNextJs solution for serverless function conversions to HLS using Sanity CDNStack Overflow
版权声明:本文标题:reactjs - NextJs solution for serverless function conversions to HLS using Sanity CDN - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744691475a2620021.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论