...
- watermark - watermark file name
- x, y - top left watermark corner coordinates on the stream picture
- marginTop, marginLeft, marginBottom, marginRignt - watermark margins from stream picture borders
If watermark coordinates are out of stream picture bounds, the watermark will be scaled to the bounds using margins.
To move watermark to another location on the stream picture, send the query with the same file name and a new coordinates. To remove watermark from the stream picture, send the query with empty watermark
field
Code Block | ||||
---|---|---|---|---|
| ||||
{ "uri":"mixer://m1", "watermark":"" } |
...
Code Block | ||
---|---|---|
| ||
POST /rest-api/mixer/add HTTP/1.1 User-Agent: curl/7.29.0 Host: localhost:8081 Accept: */* Content-Type: application/json Content-Length: 85 { "uri": "mixer://m1", "remoteStreamName": "stream1", "audioLevel": 0, "videoMuted": false } |
Note that if a stream was added to mixer with hasVideo: false
parameter
Code Block | ||||
---|---|---|---|---|
| ||||
{
"uri": "mixer://m1",
"remoteStreamName": "stream1",
"hasVideo": false,
"hasAudio": true
} |
then videoMuted
parameter will be ignored, the stream will always be audio only in the mixer.
Quick manual on testing
1. For this test we use:
...