VLC Source + WebSocket commands

ExciterELB

New Member
HI all,

since 2 days I'm fighting with send proper command to restart VLC source plugin with WebSocket.
The idea is to switch scene from one OBS on other OBS while starting live transmission.
Everything works almost fine, except VLC Source. It must play HLS stream, so each time when the stream is starting, VLC must be stopped, and started again.
I'm sending WebSocket "script", but nothing happens.

Stop VLC playing:
{
"op": 6,
"d": {
"requestType": "StopMediaInput",
"requestId": "1",
"requestData": {
"inputName": "LiveLD-VLC"
}
}
}

Start VLC playing:
{
"op": 6,
"d": {
"requestType": "RestartMediaInput",
"requestId": "2",
"requestData": {
"inputName": "LiveLD-VLC"
}
}
}
Connection is established, because switching scene via JSON script in the same formula is working. Source name also match destination. I believe, that problem is in requestType "StopMediaInput" and "RestartMediaInput", but I couldn't find any other.
Any idea? Hint? Solution?
 
Top