Modifier: is_embeddable


Checks to see if a video URL is embeddable. ie. If it is a YouTube or Vimeo URL.

Plays nicely with the Video fieldtype and the embed_url modifier.

youtube: https://www.youtube.com/watch?v=s9F5fhJQo34
vimeo: https://vimeo.com/22439234
other: http://example.com/video.mp4
{{ youtube | is_embeddable }}
{{ vimeo | is_embeddable }}
{{ other | is_embeddable }}
true
true
false
Last modified on January 10, 2018