We created the merged room stream using the media push. Now we want to send the JS command to the stream to change some parameters on the page but unfortunately, the API calls give a false response.
Environment
Ant Media Server version: v2.9.0
Steps to reproduce
Install Media Push on the server
Join the conference room using circle
Create the merged stream using the media push and conference play only url
Try to send the JS command as below to change the max video track count.
Short description
We created the merged room stream using the media push. Now we want to send the JS command to the stream to change some parameters on the page but unfortunately, the API calls give a false response.
Environment
Steps to reproduce
curl -i -X POST -H "Accept: Application/json" -H "Content-Type: application/json" "https://domain:5443/Conference/rest/v1/media-push/send-command?streamId=mediapush" -d '{"jsCommand": "window.conference.handleSetMaxVideoTrackCount(12);"}'
Expected behavior
There should be no issue when sending the command
Actual behavior
The API call gives error