...
REST query | Request body | Response body | Response state | Description | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
/stream/inject2/startup |
| 200 - OK 400 - Bad request 404 - Not found 409 - Conflict 500 - Internal error | Inject test2 stream into test stream | ||||||||
/stream/inject2/find_all |
| 200 - OK 404 - Not found | Find all injections on the server | ||||||||
/stream/inject2/terminate |
| 200 - OK 400 - Bad request 404 - Not found 500 - Internal error | Stop injection into test stream |
...
Parameter | Description | Example |
---|---|---|
localStreamName | Stream name to inject to | test |
remoteStreamName | Stream name to be injected | test2 |
video | Replace video when injecting | true |
audio | Replace audio when injecting | true |
muteIfAbsent | Replace a track which is absent in a source stream to black picture or silence | true |
videoInjectorInfo | Video information from injected stream | { "targetStreamName": "test2", "rootStreamName": "test2", "startTime": 1683344295099 } |
audioInjectorInfo | Audio information from injected stream | { "targetStreamName": "test2", "rootStreamName": "test2", "startTime": 1683344295056 } |
...
Since build 5.2.1719 VOD stream directly from a file may be injected while sending the REST query /stream/injectinject2/startup:
Code Block | ||||
---|---|---|---|---|
| ||||
{ "localStreamName":"host", "remoteStreamName":"vod-live://advertising.mp4", "video":true, "audio":true } |
In this case, injected file will play without a delay from the first key frame. The file can be injected to another stream, in this case the file also will be played from the beginning in that stream.
...