Versions Compared

Key

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

...

REST query

Request body

Response body

Response state

Description

/stream/inject2/startup

Code Block
languagejs
themeRDark
{
 "localStreamName": "test",
 "remoteStreamName": "test2",
 "video": true,
 "audio": true,
 "muteIfAbsent": true
}

200 - OK

400 - Bad request

404 - Not found

409 - Conflict

500 - Internal error


Inject test2 stream into test stream


/stream/inject2/find_all
Code Block
languagejs
themeRDark
[
  {
    "streamName": "test",
    "videoInjectorInfo": {
      "targetStreamName": "test2",
      "rootStreamName": "test2",
      "startTime": 1683344295099
    },
    "audioInjectorInfo": {
      "targetStreamName": "test2",
      "rootStreamName": "test2",
      "startTime": 1683344295056
    }
  }
]

200 - OK

404 - Not found


Find all injections on the server
/stream/inject2/terminate
Code Block
languagejs
themeRDark
{
 "localStreamName": "test",
 "video": true,
 "audio": true
}

200 - OK

400 - Bad request

404 - Not found

500 - Internal error


Stop injection into test stream

...

Parameter

Description

Example

localStreamNameStream name to inject to
test
remoteStreamNameStream name to be injected
test2
videoReplace video when injectingtrue 
audioReplace audio when injectingtrue 
muteIfAbsentReplace a track which is absent in a source stream to black picture or silencetrue 
videoInjectorInfoVideo information from injected stream{
"targetStreamName": "test2",
"rootStreamName": "test2",
"startTime": 1683344295099
}
audioInjectorInfoAudio information from injected stream{
"targetStreamName": "test2",
"rootStreamName": "test2",
"startTime": 1683344295056
}

...