This package provides UDP Source and Sink, that read and write to UDP sockets.
Add the following line to your deps in mix.exs. Run mix deps.get.
{:membrane_udp_plugin, "~> 0.14.1"}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.exsThe 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.exsBear 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 2024, Software Mansion
Licensed under the Apache License, Version 2.0