Socket
Socket
Sign inDemoInstall

sanity-plugin-mux-input

Package Overview
Dependencies
Maintainers
9
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sanity-plugin-mux-input

An input component that integrates Sanity Studio with MUX.com video encoding/hosting service.


Version published
Maintainers
9
Created
Source

Mux Video Input Sanity Plugin

This is a plugin which lets you use MUX video assets in your studio.

Setting up

  • While in your project folder, run sanity install mux-input

  • Make a schema type that uses the plugin's type mux.video, for example:

    {
      title: "Video blog post",
      name: "videoBlogPost",
      type: "document",
      fields: [
        { title: "Title", name: "title", type: "string" },
        {
          title: "Video file",
          name: "video",
          type: "mux.video"
        }
      ]
    }
  • Get an API Access Token The Mux Video API uses an Access Token and Secret Key for authentication. If you haven't already, generate a new Access Token in the Access Token settings of your Mux account dashboard.

  • The first time you use this plugin you will be asked to input your access token. The token is stored in the dataset as a document of the type mux.apiKey with the id secrets.mux. Having the ID be non-root ensures that only editors are able to see it. The MUX plugin will find it’s access tokens by fetching this document.

Keywords

FAQs

Package last updated on 30 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc