https://github.com/membraneframework/membrane_udp_plugin
Membrane plugin for sending and receiving UDP streams
https://github.com/membraneframework/membrane_udp_plugin
Last synced: 6 months ago
JSON representation
Membrane plugin for sending and receiving UDP streams
- Host: GitHub
- URL: https://github.com/membraneframework/membrane_udp_plugin
- Owner: membraneframework
- License: apache-2.0
- Created: 2017-01-26T11:45:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-19T13:03:04.000Z (about 1 year ago)
- Last Synced: 2025-10-05T12:28:59.950Z (8 months ago)
- Language: Elixir
- Homepage:
- Size: 136 KB
- Stars: 7
- Watchers: 10
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Membrane UDP plugin
[](https://hex.pm/packages/membrane_udp_plugin)
[](https://hexdocs.pm/membrane_udp_plugin/)
[](https://circleci.com/gh/membraneframework/membrane_udp_plugin)
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`.
```elixir
{:membrane_udp_plugin, "~> 0.14.1"}
```
## 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.
```bash
$ 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.
```bash
$ elixir examples/send.exs
```
Bear in mind that for other files/sending pipelines you may need do adjust
[`recv_buffer_size`](https://hexdocs.pm/membrane_udp_plugin/Membrane.UDP.Source.html#module-element-options)
option in `Membrane.UDP.Source` that determines the maximum size of received packets.
## Copyright and License
Copyright 2024, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane)
[](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane)
Licensed under the [Apache License, Version 2.0](LICENSE)