elm-embed-youtube

A simple way of embedding a Youtube player using an Iframe in Elm.


Documentation Source

import Embed.Youtube exposing (..)
import Embed.Youtube.Attributes exposing (..)
import Html

view : Model -> Html.Html Msg
view _ =
    Html.div []
        [ fromString "kBZsyksIgNE"
            |> attributes
                [ width 530
                , height 300
                , start 54
                , autoplay
                , loop
                , language "nl"
                , modestBranding
                , disableFullscreen
                , disableKeyboard
                ]
            |> toHtml
        ]