Joint session with Vercel: How to build intelligent storefronts (May 15th)

Best way to integrate video in Sanity without mux-studio-plugin?

9 repliesLast updated: Nov 29, 2025

Hey everyone! Whats the best way to integrate video? It seems the
mux-studio-plugin
has a lot of bugs currently (causes the studio to crash/I am unable to delete videos).. Perhaps its easiest to just have a field pointing to a URL and then pass that within a
video
tag?
fields: [
 {
   name: 'vimeoUrl',
   title: 'Vimeo Video URL',
   type: 'url'
 }
]
AI Update

I understand the frustration with the Mux plugin issues! You have several good options for handling video in Sanity, and your URL approach is actually a solid, pragmatic solution.

Your URL approach is perfectly valid and often the simplest route. Here's how you can enhance it:

{
  name: 'video',
  title: 'Video',
  type: 'object',
  fields: [
    {
      name: 'url',
      title: 'Video URL',
      type: 'url',
      description: 'Vimeo, YouTube, or direct video URL'
    },
    {
      name: 'provider',
      title: 'Video Provider',
      type: 'string',
      options: {
        list: ['vimeo', 'youtube', 'direct']
      }
    },
    {
      name: 'thumbnail',
      title: 'Thumbnail',
      type: 'image',
      description: 'Optional custom thumbnail'
    }
  ]
}

Other alternatives to consider:

{
  name: 'video',
  title: 'Video File',
  type: 'file',
  options: {
    accept: 'video/*'
  }
}

My recommendation: If you're experiencing crashes with the Mux plugin, the URL approach you outlined is a great pragmatic solution. It's simple, reliable, and gives you full control. You can always migrate to a more integrated solution later when the plugin stabilizes or your needs change. Vimeo and YouTube handle all the transcoding and streaming optimization for you, so you're not losing much functionality compared to a full integration—especially if you're just embedding videos rather than building a complex video platform.

Show original thread
9 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions