jrc9designstudio / statamic-video-embed

A field type for embedding YouTube and Vimeo Videos
MIT License
17 stars 4 forks source link

Setting to limit provider (YouTube/Vimeo) #18

Open FrittenKeeZ opened 7 years ago

FrittenKeeZ commented 7 years ago

It would be nice to only allow videos from a specific provider, fx. Vimeo, so you don't need to specific a YouTube API key.

jcohlmeyer commented 7 years ago

Feel free to do a PR for this, not sure when I will get to it.

It would be a addon setting: https://docs.statamic.com/addons/classes/settings

And then a modification in the isValid filters or something simmilar:

Also some more data may need to be sent through and then unset in the field type php file, sort of like the YouTube API key is.

jcohlmeyer commented 3 years ago

I think this will be configurable in v3