Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

REST methods and response statuses

REST method

Example of REST query

Example of response

Response statuses

Description

/mixer/test/start

Code Block
languagejs
themeRDark
{
    "feedingStreams": [
        "s1",
        "s2",
        "s3",
        "s4"
    ],
    "mixerCount": 2,
    "streamsInMixer": 2,
    "intervalInSeconds": 60
}


200 - OK

500 - Internal error

Start the test

/mixer/test/stop

Code Block
languagejs
themeRDark
{
}

200 - OK

404 - Mixer not found

500 - Internal error

Stop the test

/mixer/test/get_start_example


Code Block
languagejs
themeRDark
{
    "feedingStreams": [
        "stream1",
        "stream2",
        "stream3"
    ],
    "mixerCount": 3,
    "streamsInMixer": 1,
    "intervalInSeconds": 60
}

200 - OK

500 - Internal error

Return JSON object sample to pass to /mixer/test/start method

Parameters

Parameter name

Description

Example

feedingSteams

Stream published list to participate in test
["s1","s2","s3","s4"]
mixerCountNumber of mixers created2
streamsInMixerNumber of streams fed to each mixer input2
intervalInSecondsInterval in seconds to destroy mixers and create them again60

Configuration

To test mixer perfomance under high load, asynchronous media session disconnection (which is enabled by default) should be disabled

Code Block
themeRDark
handler_async_disconnect=false

WCS should be restarted to apply.

When test is finished, this setting must be removed from configuration file.

Testing

1. For test we use:

...