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.6"}
]
endThis 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 sdl2pacman -S sdl2brew install sdl2Usage 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.exsTo run manual tests, type mix test --include manual
Copyright 2019, Software Mansion
Licensed under the Apache License, Version 2.0