Formerly tricycle/elm-embed-youtube. Search finds this package by either name.
Create an embedded Youtube video using the Iframe Player Api
The type of a Youtube Attribute
Attempt to create a new Youtube
from an (Youtube) Url containing the v= param. https://www.youtube.com/watch?v=0D7GrGrN1bg
import Url
Url.fromString "https://www.youtube.com/watch?v=0D7GrGrN1bg"
|> Maybe.andThen fromUrl
--> Just <| fromString "0D7GrGrN1bg"or from shortend links such as; https://youtu.be/0D7GrGrN1bg
import Url
Url.fromString "https://youtu.be/0D7GrGrN1bg"
|> Maybe.andThen fromUrl
--> Just <| fromString "0D7GrGrN1bg"Create a new Youtube from a string representing a VideoId
There is no validation on the input
Check Embed.Youtube.Attributes for all the available Attribute helpers
Add Attributes to your Youtube type
Renders an iFrame based on your settings
The type of an Youtube image