https://github.com/JellyboxAD/Jellyfin.Plugin.StreamLimit
https://github.com/JellyboxAD/Jellyfin.Plugin.StreamLimit
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/JellyboxAD/Jellyfin.Plugin.StreamLimit
- Owner: JellyboxAD
- License: gpl-3.0
- Created: 2024-12-26T04:44:59.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-05T19:35:43.000Z (2 months ago)
- Last Synced: 2025-02-05T20:44:11.841Z (2 months ago)
- Language: C#
- Size: 7.84 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-jellyfin - Jellyfin.Plugin.StreamLimit - Allows limiting the number of simultaneous streams per user. (🧩 Plugins)
README
# Jellyfin Stream Limiter Plugin
A Jellyfin plugin that allows you to limit the number of simultaneous streams per user.
## Features
- 🎮 Limit streams per user
- 📝 Customizable messages
- 🔒 Automatic session management## Example

## Installation
1. Download the latest version of the plugin from releases
2. Extract the zip file to your Jellyfin server's plugins folder
3. Restart your Jellyfin server
4. Configure the plugin in the admin interface## Configuration
### Plugin Configuration

1. Access the Jellyfin admin interface
2. Go to My extensions > Stream Limiter
3. Configure limits for each user:
- Select a user
- Set maximum number of streams
- Customize limit exceeded messages### Configuration Options
- **Max Streams**: Maximum number of simultaneous streams allowed per user
- **Message Title**: Global title of the message displayed when limit is exceeded
- **Message**: Global detailed text shown to users when they exceed their limit## Usage
The plugin works automatically once configured:
1. User starts a stream
2. Plugin checks the number of active streams
3. If the limit is exceeded:
- Stream is stopped
- Custom message is displayed
- Session is forcefully disconnected to prevent abuse## API

The plugin exposes a REST API for programmatic management:
```http
GET /StreamLimit/GetUserStreamLimit
POST /StreamLimit/SetUserStreamLimit
POST /StreamLimit/SetAlertMessage
```Detailed API documentation is available through Swagger UI at:
```
http://your-server-ip/api-docs/swagger
```
Navigate to the "StreamLimit" section to explore all available endpoints and their parameters.## Contributing
Contributions are welcome! Feel free to:
1. Fork the project
2. Create a feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Support
For questions or issues:
1. Check the [Issues](../../issues)
2. Create a new issue if needed
3. Join the Jellyfin community