Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnail support gone? #321

Open
israelroldan opened this issue Sep 29, 2023 · 6 comments
Open

Thumbnail support gone? #321

israelroldan opened this issue Sep 29, 2023 · 6 comments

Comments

@israelroldan
Copy link
Contributor

Previously it was possible to select a thumbnail using the plugin, value that would be stored in the video document to be consumed as any other property.

This seems to have disappeared with the new version. Are there any plans to bring it back?

Thanks!

@mfanuzzi
Copy link

+1, this is a pretty important feature!

@thealice
Copy link

Agreed, any word on this?

@keboye
Copy link

keboye commented Feb 6, 2024

Why was this removed? We used this during production. It would be greatly appreciated if this was possible again.

@mikehwagz
Copy link

Automatic thumbnail generation and ability to select the timecode to use for the thumbnail was the primary reason that I adopted Mux and this plugin. Has the removal of this feature been documented anywhere?

@digitalfreelanceruk
Copy link

digitalfreelanceruk commented Aug 23, 2024

FWIW I made my own solution to display an animated gif thumbnail for list previews of items with a mux video.

This is part of a coverVideo.tsx schema file for an object that contains a 'muxVideo' field of the type 'mux.video'. Add the necessary parts of this to your usual object schema file where a mux.video field type is being used.

type: 'object',
  name: 'coverVideo',
  preview: {
    select: {
      // previews can follow references using dot notation like below
      playbackId: 'muxVideo.asset.playbackId',
    },
    prepare({playbackId}) {
      return {
        // I'm using a small animated thumbnail from Mux - https://docs.mux.com/guides/get-images-from-a-video
        media: <img src={`https://image.mux.com/${playbackId}/animated.gif?width=100`} />,
      }
    }
  },

In my real application this is inside a custom preview component with the img generation wrapped in useMemo so it's not constantly updating as Sanity is used (at least that's my understanding - I'm new to react).

@ZeroPie
Copy link

ZeroPie commented Sep 20, 2024

deal breaker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants