Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yashtandon113 opened this issue Jun 6, 2024 · 0 comments · Fixed by ant-media/Plugins#108
Closed

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

yashtandon113 opened this issue Jun 6, 2024 · 0 comments · Fixed by ant-media/Plugins#108
Assignees
Labels
bug Something isn't working

Comments

@yashtandon113
Copy link

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

  • Ant Media Server version: v2.9.0

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants