Mute issue on live stream

streamer

New Member
We are setting up our application for live streaming using "Flashphoner WCS Server", during live stream we are able to find all stream using API Call (/rest-api/push/find_all) but when we are requesting mute with mediaSessionId on this endpoint (/rest-api/push/mute) we are getting Internal Server Error (Please refer to Screenshots)

Can you please let us know what could be the issue here.
 

Attachments

Max

Administrator
Staff member
Good day.
You're passing REST API query parameters in request URL, but WCS supports parameters passing in request body only, with Content-Type: application/json header:
Code:
POST /rest-api/push/mute HTTP/1.1
Host: test1.flashphoner.com:8081
Content-Type: application/json

{
    "mediaSessionId": "jfrma144rbnup1j83e4lui7u5o"
}
See Chrome Rester extension screenshots (Postman application you use may also be configured in this way):
1620872456412.png

1620872474999.png

In this case, REST API works normally, stream is muted/unmuted.
 
Last edited:

streamer

New Member
Good day.
You're passing REST API query parameters in request URL, but WCS supports parameters passing in request body only, with Content-Type: application/json header:
Code:
POST /rest-api/push/mute HTTP/1.1
Host: test1.flashphoner.com:8081
Content-Type: application/json

{
    "mediaSessionId": "jfrma144rbnup1j83e4lui7u5o"
}
See Chrome Rester extension screenshots (Postman application you use may also be configured in this way):
View attachment 2592
View attachment 2593
In this case, REST API works normally, stream is muted/unmuted.
Thanks,

It solved the issue.
 
Top