Converting a regular Youtube 'link' into an embedded video

前端 未结 10 1831
别那么骄傲
别那么骄傲 2021-01-30 02:25

My goal: I am trying to allow users to embed a link to a Youtube video in my site, while giving me control over the player\'s settings.

I would like to do this by only a

10条回答
  •  生来不讨喜
    2021-01-30 03:09

    Another answer is to use this gem which handles youtube and vimeo, and could be expanded to more. It also integrates well with AR so you can cache the resulting html instead of filtering on each render:

    https://github.com/dejan/auto_html

提交回复
热议问题