tricycle/elm-embed-youtube/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.

Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.

What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/tricycle/elm-embed-youtube/zipball/1.1.3/

Embed.Youtube.Attributes

Helper functions for Youtube Embed Attributes.

Sizing

width : Int -> Attribute

Set the width of the Embedded Youtube player

height : Int -> Attribute

Set the height of the Embedded Youtube player

Playback

autoplay : Attribute

Specify whether the initial video will automatically start to play when the player loads

loop : Attribute

This setting causes the player to play the initial video again and again.

start : Int -> Attribute

This causes the player to begin playing the video at the given number of seconds from the start of the video.

end : Int -> Attribute

This parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing the video. The parameter value is a positive integer.

Note that the time is measured from the beginning of the video and not from the value of the start parameter.

mute : Attribute

Mute all sound

Styling

colorRed : Attribute

This specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen.

The player uses the color red in the video progress bar.

colorWhite : Attribute

This specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen.

The player uses the color white in the video progress bar.

modestBranding : Attribute

This lets you use a YouTube player that does not show a YouTube logo.

Note that a small YouTube text label will still display in the upper-right corner of a paused video when the user's mouse pointer hovers over the player.

playsInline : Attribute

This controls whether videos play inline or fullscreen in an HTML5 player on iOS.

hideControls : Attribute

Indicates whether the video player controls are displayed.

disableKeyboard : Attribute

Setting this causes the player to not respond to keyboard controls.

disableFullscreen : Attribute

Prevents the fullscreen button from displaying in the player.

Prevents video annotations from being shown.

Language

language : String -> Attribute

Sets the player's interface language

Set the parameter's value to an ISO 639-1 two-letter language code.

Closed Captions

closedCaptionsLanguagePreference : String -> Attribute

Specify the default language that the player will use to display captions.

Set the parameter's value to an ISO 639-1 two-letter language code.

Show closed captions by default, even if the user has turned captions off.

The default behavior is based on user preference.