Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

Composite layout not working in media push

Open USAMAWIZARD opened this issue 1 year ago • 0 comments

Short description

Composite layout not working in media push

Environment

  • Operating system and version:
  • Java version:
  • Ant Media Server version:
  • Browser name and version:

Steps to reproduce

Start the Composite Layout Call the REST Method below to let Ant Media Server with the stream id you specified in the start method. You should pass the url, width and height in the body.

curl -i -X POST -H "Accept: Application/json" -H "Content-Type: application/json" "https:////rest/v1/media-push/start" -d '{"url": "https:////composite_layout.html?roomId=&publisherId=", "width": 1280, "height": 720}'

Call the REST Method below to update the layout on the fly.

curl -i -X POST -H "Accept: Application/json" -H "Content-Type: application/json" "https:////rest/v2/broadcasts//data" -d '{"streamId":"streamId1","layoutOptions": {"canvas": {"width": 640,"height": 640},"layout": [{"streamId": "","region": {"xPos": 20,"yPos": 0,"zIndex": 1,"width": 200,"height": 200},"fillMode": "fill","placeholderImageUrl": "https://cdn-icons-png.flaticon.com/512/149/149071.png"}]}}'

Logs

Place logs on pastebin or elsewhere and put links here

Ask your questions on Ant Media Github Discussions

USAMAWIZARD avatar Feb 19 '24 10:02 USAMAWIZARD