Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

bellroy/elm-embed-youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages