Add white list for "Stream.AddStream"

This commit is contained in:
badaix 2025-01-20 12:29:51 +01:00
parent ceb108b338
commit be266c07ce
3 changed files with 13 additions and 11 deletions

View file

@ -484,8 +484,8 @@ See [Plugin.Stream.Player.SetProperty](stream_plugin.md#pluginstreamplayersetpro
### Stream.AddStream
Note: for security purposes, we don't allow adding `process` streams.
We also don't allow setting the `controlscript` query parameter of streamUri.
Note: For security purposes, the RPC interface allows only adding streams of these types: `pipe`, `file`, `tcp`, `alsa`, `jack` and `meta`.
It is also not allowed to set the `controlscript` query parameter of `streamUri`.
#### Request
@ -513,7 +513,6 @@ We also don't allow setting the `controlscript` query parameter of streamUri.
{"id":8,"jsonrpc":"2.0","result":{"stream_id":"stream 2"}}
```
##### Error
```json