This docker image allows you to kick users out of a session after X amount of time. Built with a simple HTTP server so integration into different services & scripts should be simple.
By default Session kicker will attempt to stop media with commands & stopping encoding. If stop command not support it will delete the device, you can disable this functionality with DELETE_DEVICE_IF_NO_MEDIA_CONTROLS
.
This is useful if you share your server with a bunch of knob heads who use up your monthly internet bandwidth by leaving The Simpsons playing for 12 hours straight
Required
Required
Optional
"movie"
Optional
60000
Optional
50.0
Optional
""
Optional
"You aren't whitelisted for unlimited watch time."
Optional
"You have used up your watch time."
Optional
24
0
to disable.Optional
Optional
Optional
"session_timer"
Optional
"localhost"
Optional
27017
Optional
True
Optional
False
docker-compose.yml
sudo docker-compose build; sudo docker-compose up -d
Your basic auth: xxxx
POST
Basic Auth
Json
{
"UserId": "f521b643f9914b749b9e30bbd06b1792",
"MediaTypes": ["episode"]
}
DELETE
Basic Auth
Json
{
"UserId": "f521b643f9914b749b9e30bbd06b1792",
"MediaTypes": ["episode"]
}
GET
Basic Auth
[
{
"UserId": "f521b643f9914b749b9e30bbd06b1792",
"MediaTypes": [
"episode"
]
}
]
PATCH
Basic Auth
{
"key": "d8C9ORsEzjSlUFJx8GMl8VClDmzcRLE_5B5B79Jz0QTtycw0EypqSw"
}