Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/membraneframework/membrane_fake_plugin
Fake Membrane sinks that drop incoming data
https://github.com/membraneframework/membrane_fake_plugin
Last synced: 2 days ago
JSON representation
Fake Membrane sinks that drop incoming data
- Host: GitHub
- URL: https://github.com/membraneframework/membrane_fake_plugin
- Owner: membraneframework
- License: apache-2.0
- Created: 2017-10-05T09:37:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T14:48:25.000Z (12 months ago)
- Last Synced: 2024-10-29T08:44:59.965Z (9 days ago)
- Language: Elixir
- Homepage:
- Size: 208 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Membrane Fake Plugin
[![Hex.pm](https://img.shields.io/hexpm/v/membrane_fake_plugin.svg)](https://hex.pm/packages/membrane_fake_plugin)
[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/membrane_fake_plugin)
[![CircleCI](https://circleci.com/gh/membraneframework/membrane_fake_plugin.svg?style=svg)](https://circleci.com/gh/membraneframework/membrane_fake_plugin)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](https://membraneframework.org).
## Installation
Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.
```elixir
{:membrane_fake_plugin, "~> 0.11.0"}
```## Sample Usage
```elixir
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](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane_fake_plugin)
[![Software Mansion](https://logo.swmansion.com/logo?color=white&variant=desktop&width=200&tag=membrane-github)](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane_fake_plugin)
Licensed under the [Apache License, Version 2.0](LICENSE)