Pexels.Video (Pexels v0.1.0) View Source

%Pexels.Video {
  duration: 19,
  height: 1080,
  id: 1358988,
  image: "https://images.pexels.com/videos/1358988/free-video-1358988.jpg?auto=compress&cs=tinysrgb&fit=crop&h=630&w=1200",
  url: "https://www.pexels.com/video/cat-playing-with-tape-1358988/",
  user: %Pexels.Video.User {
    id: 2421,
    name: "Rene Asmussen",
    url: "https://www.pexels.com/@reneasmussen"
  },
  video_files: [
    %Pexels.Video.File {
      file_type: "video/mp4",
      height: 540,
      id: 54545,
      link: "https://player.vimeo.com/external/286612246.sd.mp4?s=a6a14a6a7e585d3d62454ab4501bae8a26727125&profile_id=165&oauth2_token_id=57447761",
      quality: "sd",
      width: 960
    }
  ],
  video_pictures: [
    %Pexels.Video.Picture {
      id: 120634,
      nr: 0,
      picture: "https://images.pexels.com/videos/1358988/pictures/preview-0.jpg"
    }
  ],
  width: 1920
}

Link to this section Summary

Link to this section Types

Specs

t() :: %Pexels.Video{
  duration: :integer,
  height: :integer,
  id: :integer,
  image: String.t(),
  url: String.t(),
  user: Pexels.Video.User.t(),
  video_files: [Pexels.Video.File.t()],
  video_pictures: [Pexels.Video.Picture.t()],
  width: :integer
}

Link to this section Functions

Link to this function

cast(params, opts \\ [])

View Source

Callback implementation for Construct.cast/2.

Link to this function

get(struct, key, default \\ nil)

View Source
Link to this function

make(params \\ %{}, opts \\ [])

View Source

Callback implementation for Construct.make/2.

Link to this function

make!(params \\ %{}, opts \\ [])

View Source

Callback implementation for Construct.make!/2.