View Source Membrane.LiveCompositor.Request.RegisterImage (Membrane LiveCompositor Plugin v0.10.0)

Request to register an image.

Summary

Types

Image type

t()
  • Fields url and path are mutually exclusive. Exactly one of them should be set at the time.
  • Field resolution is only supported when :asset_type is set to :svg.

Types

@type image_type() :: :png | :jpeg | :gif | :svg

Image type

@type t() :: %Membrane.LiveCompositor.Request.RegisterImage{
  asset_type: image_type(),
  image_id: String.t(),
  path: String.t() | nil,
  resolution: %{width: non_neg_integer(), height: non_neg_integer()} | nil,
  url: String.t() | nil
}
  • Fields url and path are mutually exclusive. Exactly one of them should be set at the time.
  • Field resolution is only supported when :asset_type is set to :svg.