Membrane Multimedia Framework: File Element

THIS PACKAGE HAS BEEN MOVED

Please use https://hexdocs.pm/membrane_file_plugin.

Hex.pm CircleCI

This package provides elements that can be used to read from and write to files.

It is part of Membrane Multimedia Framework.

Sample usage

Playing below pipeline should copy /etc/passwd to ./test:

defmodule FileExamplePipeline do
  use Membrane.Pipeline
  alias Pipeline.Spec
  alias Membrane.Element.File

  @doc false
  @impl true
  def handle_init(_) do
    children = [
      file_src: %File.Source{location: "/etc/passwd"},
      file_sink: %File.Sink{location: "./test"},
    ]
    links = %{
      {:file_src, :output} => {:file_sink, :input},
    }

    {{:ok, %Spec{children: children, links: links}}, %{}}
  end
end

Copyright 2018, Software Mansion

Software Mansion

Licensed under the Apache License, Version 2.0