tricycle/elm-embed-youtube/1.1.1

NOTE: the latest version is 1.1.3

Renamed to bellroy/elm-embed-youtube. It is published under that name, and new versions come out there.

Versions published as tricycle/elm-embed-youtube still install under that name. 3 versions of 6 come from the new location (see their notes). 3 versions could not be recovered and cannot be installed.

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/bellroy/elm-embed-youtube exists but has no tag 1.1.1; Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 1.1.1 found (2 same-name repos checked); no cached copy. Use another version.

Details

elm-embed-youtube

A wrapper around the Youtube IFrame Api

The IFrame player API lets you embed a YouTube video player on your website.

Goal

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

Usage example

Embed.Youtube.fromString "kBZsyksIgNE"
    |> Embed.Youtube.attributes
        [ Embed.Youtube.Attributes.width 640
        , Embed.Youtube.Attributes.height 400
        ]
    |> Embed.Youtube.toHtml
Embed.Youtube.fromString "kBZsyksIgNE"
    |> Embed.Youtube.attributes
        [ Embed.Youtube.Attributes.width 640
        , Embed.Youtube.Attributes.height 400
        , Embed.Youtube.Attributes.autoplay
        , Embed.Youtube.Attributes.language "nl"
        , Embed.Youtube.Attributes.modestBranding
        , Embed.Youtube.Attributes.disableFullscreen
        , Embed.Youtube.Attributes.disableKeyboard
        ]
    |> Embed.Youtube.toHtml