Videx v0.2.0 Videx.Vimeo View Source
Link to this section Summary
Functions
Generate URL for Vimeo video.
Generate embed HTML for Vimeo video.
Check if the URL is valid video URL for Vimeo.
Parse and extract information from Vimeo video URL.
Link to this section Functions
Generate URL for Vimeo video.
Examples
iex> Videx.Vimeo.generate(%Videx.Vimeo{id: "22439234"})
"https://vimeo.com/22439234"
iex> Videx.Vimeo.generate("22439234", :embed, %{title: 0})
"https://player.vimeo.com/video/22439234?title=0"
Generate embed HTML for Vimeo video.
Examples
iex> Videx.Vimeo.html(%Videx.Vimeo{id: "22439234"})
"<iframe src=\"https://player.vimeo.com/video/22439234\" width=\"640\" height=\"360\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe>"
iex> Videx.Vimeo.html("22439234", width: 320, height: 240)
"<iframe src=\"https://player.vimeo.com/video/22439234\" width=\"320\" height=\"240\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe>"
Check if the URL is valid video URL for Vimeo.
Examples
iex> Videx.Vimeo.match?("https://vimeo.com/22439234")
true
Parse and extract information from Vimeo video URL.
Examples
iex> Videx.Vimeo.parse("https://vimeo.com/22439234")
%Videx.Vimeo{id: "22439234", params: %{}, type: :short}