Skip to content

Latest commit

 

History

76 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Membrane Fake Plugin

Hex.pm API Docs CircleCI

This package provides fake sink elements that consume & drop incoming data. They are particularly useful for testing or when making a filter-oriented pipeline.

It comes in 2 variants: Membrane.Fake.Sink.Buffers and Membrane.Fake.Sink.Bytes which differ in units they use when making demands.

It is part of Membrane Multimedia Framework.

Installation

Add the following line to your deps in mix.exs. Run mix deps.get.

{:membrane_fake_plugin, "~> 0.11.2"}

Sample Usage

defmodule Fake.Pipeline do
  use Membrane.Pipeline
  alias Membrane.{File, Fake}

  @impl true
  def handle_init(_) do    
    links = [child(:file_src,%File.Source{location: "/tmp/some_samples.raw"}) |> child(:fake_sink, Fake.Sink.Buffers)]

    {[spec: links], %{}}
  end
end

Copyright and License

Copyright 2018, Software Mansion

Software Mansion

Licensed under the Apache License, Version 2.0

About

Fake Membrane sinks that drop incoming data

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages