Membrane.WebVTT.Filter (Membrane WebVTT Plugin v3.0.2)

Copy Markdown View Source

Formats canonical text into WebVTT cue payloads.

A buffer carrying metadata.text_layout: :verbatim bypasses text formatting. Its payload is emitted unchanged, after any pending canonical cue has been flushed. This allows callers to provide an authored final line layout while retaining automatic formatting for other buffers.

Element options

Passed via struct Membrane.WebVTT.Filter.t/0

  • max_length

    integer()

    Default value: nil

  • min_duration

    Time.t()

    Default value: nil

  • max_lines

    integer()

    Default value: nil

Pads

:input

Accepted formats:

Membrane.Text
Direction::input
Availability::always
Flow control::auto

:output

Accepted formats:

Membrane.Text
Direction::output
Availability::always
Flow control::auto

Summary

Types

t()

Struct containing options for Membrane.WebVTT.Filter

Functions

Returns description of options available for this module

Types

t()

@type t() :: %Membrane.WebVTT.Filter{
  max_length: integer(),
  max_lines: integer(),
  min_duration: Membrane.Time.t()
}

Struct containing options for Membrane.WebVTT.Filter

Functions

options()

@spec options() :: keyword()

Returns description of options available for this module