tricycle/elm-embed-youtube/1.0.0

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.

Rerouted (renamed, needs approval). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/bellroy/elm-embed-youtube.

What we checked: The repo moved to github.com/bellroy/elm-embed-youtube and tag 1.0.0 is there; its commit 29bdce554517 is from 2021-04-07 02:37 UTC, after the version was published (2019-07-30 02:11 UTC); elm.json differs from package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one and nothing else confirms its contents.

We could not verify this copy against what was published, so the Lamdera compiler asks before using it (y/n). Without a terminal, as in CI, it stops with an error unless approved:

  • lamdera make --auto-approve-package-rerouting approves rerouted versions for that run,
  • LAMDERA_AUTO_APPROVE_PACKAGE_REROUTING=1 does the same for every run in that environment,
  • LAMDERA_CACHE=off skips the Lamdera package server altogether: packages come from package.elm-lang.org and GitHub only, as with elm, and a rerouted version then fails to download.

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

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.