Uploading and inserting a video into the Portable Text editor #4533
Replies: 1 comment
-
Video Upload & View(Frontend) Functionality to Sanity Studio with Mux Integration In Portable TextIf you're looking to enhance your Sanity Studio by enabling video upload functionality and seamlessly embedding videos into your Portable Text editor, you're on the right track. Sanity doesn't inherently support video uploads out of the box, but integrating with Mux can fill that gap effectively. Schema for adding video in portable text export default post; ` `import MuxPlayer from '@mux/mux-player-react'; const [blog, setBlog] = useState(null);
` Happy video uploading! 🎥🚀 |
Beta Was this translation helpful? Give feedback.
-
I'd like to add video upload functionality to Sanity studio that allows me to embed a video into the Portable Text editor in the same way images can be added.
As far as I can see, Sanity itself does not support video upload (unless I'm missing something) – instead, it needs to be handled through, for example, Mux (https://www.sanity.io/plugins/sanity-plugin-mux-input).
I'm just wondering if this is the best / right way to go about implementing this feature? Any guidance would be greatly appreciated. Thank you i advance.
Beta Was this translation helpful? Give feedback.
All reactions