This package provides an SDL-based video player.
It is part of Membrane Multimedia Framework.
Documentation is available at HexDocs.
Add the following line to your deps
in mix.exs
. Run mix deps.get
.
def deps do
[
{:membrane_sdl_plugin, "~> 0.18.4"}
]
end
This package depends on the SDL2 library. The precompiled build will be pulled and linked automatically. However, should there be any problems, consider installing it manually. In the case of development mode, you need to install FFmpeg on your system.
sudo apt-get install sdl2
pacman -S sdl2
brew install sdl2
Usage example can be found in examples/player.exs
.
This example demonstrates how to play a H264 video, downloaded in real-time from Membrane's static repository over HTTP.
To run it, simply execute the following command in your terminal:
$ elixir examples/player.exs
To run manual tests, type mix test --include manual
Copyright 2019, Software Mansion
Licensed under the Apache License, Version 2.0