View Source SEO.OpenGraph.Audio (SEO v0.1.11)

Data describing an audio file.

Summary

Functions

The og:audio property has some optional structured properties

Attributes

  • content (:any) - Defaults to nil.

Types

mime()

@type mime() :: String.t()

t()

@type t() :: %SEO.OpenGraph.Audio{
  secure_url: URI.t() | String.t(),
  type: mime(),
  url: URI.t() | String.t()
}

Functions

build(attrs, default \\ nil)

@spec build(SEO.attrs(), SEO.config()) :: t() | nil

The og:audio property has some optional structured properties:

  • :url - The url with metadata that describes the audio.
  • :secure_url - An alternate url to use if the webpage requires HTTPS.
  • :type - A MIME type for this audio, eg, "audio/mpeg".

meta(assigns)

Attributes

  • content (:any) - Defaults to nil.