Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the muted Attribute #229

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Html/Attributes.elm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Html.Attributes exposing
, ismap, usemap, shape, coords
, src, height, width, alt
, autoplay, controls, loop, preload, poster, default, kind, srclang
, sandbox, srcdoc
, sandbox, srcdoc, muted
, reversed, start
, align, colspan, rowspan, headers, scope
, accesskey, contenteditable, contextmenu, dir, draggable, dropzone
Expand Down Expand Up @@ -358,6 +358,12 @@ loop : Bool -> Attribute msg
loop =
boolProperty "loop"

{-| Indicates whether the browser should play the video muted. Required for `autoplay`
in some modern web browsers
-}
muted : Bool -> Attribute msg
muted =
boolProperty "muted"

{-| Control how much of an `audio` or `video` resource should be preloaded. -}
preload : String -> Attribute msg
Expand Down