Browse Source

youtube

master
Gustavo Adolfo Mesa Roldán 1 year ago
parent
commit
07fca6c6e2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/linkify/builder.ex

+ 1
- 1
lib/linkify/builder.ex

@ -125,7 +125,7 @@ defmodule Linkify.Builder do
def create_youtube(text, _opts) do
id = get_video_id(text)
"<iframe width=\"560\" height=\"315\" frame-src=\"https://www.youtube.com/embed/#{id}\" default-src=\"https://www.youtube.com/embed/#{id}\" src=\"https://www.youtube.com/embed/#{id}\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"
"<div class=\"embed-responsive embed-responsive-16by9\"><iframe class=\"embed-responsive-item\" src=\"https://www.youtube.com/embed/#{id}\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe></div>"
end
Enum.each(["", "http://", "https://"], fn protocol ->

Loading…
Cancel
Save