ant-media / conference-call-application

Conference Call Application over Ant Media Server
20 stars 14 forks source link

JS command does not work on the media push stream #274

Closed yashtandon113 closed 4 months ago

yashtandon113 commented 5 months ago

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

  1. Install Media Push on the server
  2. Join the conference room using circle
  3. Create the merged stream using the media push and conference play only url
  4. Try to send the JS command as below to change the max video track count.

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