Skip to content

membraneframework/membrane_udp_plugin

Repository files navigation

Membrane UDP plugin

Hex.pm API Docs CircleCI

This package provides UDP Source and Sink, that read and write to UDP sockets.

Installation

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

	{:membrane_udp_plugin, "~> 0.14.0"}

Usage example

The example/ folder contains examples of sending and receiving UDP streams.

The UDPDemo.Receive retrieves packets from UDP socket and saves the data to the /tmp/udp-recv.mp4 file.

$ elixir examples/receive.exs

The UDPDemo.Send downloads an example file over HTTP and sends it over UDP socket via localhost:5001. It should be started after the receiver server is already running.

$ elixir examples/send.exs

Bear in mind that for other files/sending pipelines you may need do adjust recv_buffer_size option in Membrane.UDP.Source that determines the maximum size of received packets.

Copyright and License

Copyright 2024, Software Mansion

Software Mansion

Licensed under the Apache License, Version 2.0