-
Notifications
You must be signed in to change notification settings - Fork 1
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
Extend Fields which are requested from vimeo #3
Comments
Hi Miller, that is a good point. At the moment the only fields that are requested are |
I've just added field options to // … your schema
defineField({
title: 'Vimeo',
name: 'vimeo',
type: 'vimeo',
// Optional: Extend the default fields, see below for more information
options: {
fields: ['metadata'],
},
}) |
Hi Marco, Thank you so much for looking into this it's greatly appreciated. One thing that I have come across while testing this updated option out is that I can't seem to get anything to return from "video" when I add it to my fields options array. Your example of metadata works as I tested including and excluding it when I set the field options. However when I was checking over the response page I couldn't see a response of metadata in the list. eg this is how I'm defining my field: Cheers, |
Hi Jack, sorry, I did not mention this in my earlier response: I was wrong to add the So, for storing the video‘s duration I just tested it like this and it worked: options: {
fields: ['duration'],
}, Can you check if that works for you, too? |
Hi Marco, Awesome stuff I'll test this out shortly. Currently having an issue with caching on my requests so I can't say at the moment if the above will work. Cheers, |
Hi Marco, just to confirm that using:
does indeed allow me to access the duration value. Thanks again for making this update. Cheers, |
Hi there,
Is there any option or plan to allow a user when setting up the plugin to specify/select what data they want to retrieve from Vimeo?
As a use case, we need the duration value to be available for all videos and we only need to return the source files to be returned.
Cheers
The text was updated successfully, but these errors were encountered: