2022-06-21 17:10:38 -04:00
**ffplayout-api**
================
2022-06-22 15:25:30 -04:00
2022-06-23 16:39:13 -04:00
ffplayout-api (ffpapi) is a non strict REST API for ffplayout. It makes it possible to control the engine, read and manipulate the config, save playlist, etc.
2022-06-22 15:25:30 -04:00
To be able to use the API it is necessary to initialize the settings database first. To do that, run:
```BASH
ffpapi -i
```
Then add an admin user:
```BASH
2022-06-30 12:44:42 -04:00
ffpapi -u < USERNAME > -p < PASSWORD > -m < MAIL ADDRESS >
2022-06-22 15:25:30 -04:00
```
Then run the API thru the systemd service, or like:
```BASH
2022-07-25 11:26:49 -04:00
ffpapi -l 127.0.0.1:8787
2022-06-22 15:25:30 -04:00
```
2022-06-27 08:10:29 -04:00
If you plan to run ffpapi with systemd set permission from ** /usr/share/ffplayout** and content to user **www-data:www-data** .
2022-06-23 16:39:13 -04:00
**For possible endpoints read: [api endpoints ](/docs/api.md )**
2022-07-25 11:26:49 -04:00
ffpapi can also serve the browser based frontend, just run in your browser `127.0.0.1:8787` .