Like embedded video in an elm application

I embed your tube videos in an application for an elm example. Therefore, for implementation, I am writing a knitting video code

[ embed [ attribute "-video" "", attribute "api" "1", attribute "height" "100%", href "//vimeo.com/111690998", attribute "iframe-id" "vimeo1", attribute "player_id" "vimeo1", attribute "width" "100%" ] [] , a [ href "//vimeo.com/111690998" ] [ text "Watch" ] ] 

but i get some embed-video element error

Please help me instill this feature.

+6
source share
1 answer

You can simply translate embed code (html) into Elm code.

For example, in the case of youtube ...

 import Html exposing (..) import Html.Attributes exposing (..) import Json.Encode videoframe = iframe [ width 560 , height 315 , src "https://www.youtube.com/embed/test" , property "frameborder" (Json.Encode.string "0") , property "allowfullscreen" (Json.Encode.string "true") ] [] 
+9
source

All Articles