opentok/Opentok-Java-SDK

Broadcast with Custom layout throwing "Custom type must have stylesheet" error

yallen011 opened this issue · 0 comments

User from Nexmo Community slack reports getting the following error response when submitting a request to start a broadcast with a custom layout:

{
    "code":-1,
    "message": "Custom type must have stylesheet",
    "description": "Custom type must have stylesheet"
}

The user reports that the REST API documentation shows the stylesheet being a property of the layout object

{
  "sessionId":  "<session-id>",
  "layout": {
    "type":  "custom",
    "stylesheet":  "the layout stylesheet (only used with type == custom)"
  },
  ...
}

but the Java OpentTok library places it on the root JSON object

{
  "sessionId": "<session-id>",
  "layout": {
    "type": "custom"
  },
  "stylesheet": "the layout stylesheet (only used with type == custom)",
  ...
}

Version: OpenTok v4.3.2