Versions Compared

Key

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

...

Code Block
themeRDark
stomp_max_metrics=10

Metric values are sent to subscriber when metrics change count reaches that parameter value. If metrics change rarely, it is recommended to reduce the parameter value.

Connection timeout is set with the following parameterConnection timeout is set with the following parameter

Code Block
themeRDark
stomp_max_timeout=1000

Metric aquisition rate and messages receiving frequency

A different metrics sets can be aquired to backend server with a different rate defined by profile. If metric value, VIDEO_HEIGHT for example, does not change while stream is published, then messages with this metric will be send to subscriber at least as rate defines. If metric value (VIDEO_RATE) changes, messages with this metric can be send to subscriber upon changes.

For example, if stream data are collected by profile including one static metric VIDEO_WIDTH with rate 30

Code Block
languagejs
themeRDark
https://hostname:8090/api/profile/create
{
  "name": "profile1",
  "rate": "30",
  "metrics": ["1"],
  "rules": ["1"]
}

and maximum metrics count 1 per one message

Code Block
themeRDark
stomp_max_metrics=1

the messages will be send to subscriber near 1 per second.

When changing rate to 600

Code Block
languagejs
themeRDark
https://hostname:8090/api/profile/update
{
  "id": "2",
  "name": "profile1",
  "rate": "600",
  "metrics": ["1"],
  "rules": ["1"]
}

the messages will be send to subscriber near 1 per 20 seconds.

Now, extending metrics set to 4 static metrics VIDEO_WIDTH, VIDEO_HEIGHT, VIDEO_CODEC, AUDIO_CODEC

Code Block
languagejs
themeRDark
https://hostname:8090/api/profile/update
{
  "id": "2",
  "name": "profile1",
  "rate": "600",
  "metrics": ["1","2","8","12"],
  "rules": ["1"]
}

the messages will be send to subscriber near 1 per 5 seconds.

When stream data are collected by profile including two metrics VIDEO_RATE, AUDIO_RATE with rate 30

Code Block
languagejs
themeRDark
https://hostname:8090/api/profile/create
{
  "name": "profile2",
  "rate": "30",
  "metrics": ["3","10"],
  "rules": ["1"]
}

and maximum metrics count 1 per one message

Code Block
themeRDark
stomp_max_timeout=1000metrics=1

for the stream published to WCS using RTMP, the messages will be send to subscriber near 1-2 per second.