JSON_InsertPlay

JSON message about the cut-in parameters

{
  "InsertPlay":
  {
    "insertType": "character",
/*required, string, cut-in content type: "character" (text message), "material", "program"*/ 
    "taskName": "",
/*optional, string, cut-in task name*/ 
    "InsertInfoList": 
    [{
      "screenType": "first",
/*required, string, screen type: "first" (main screen), "second" (auxiliary screen)*/  
      "CharacterInfo": 
      {
        "InsertMessageList": 
        [{
          "id": 1,
/*required, int, ID, which starts from 1*/  
          "msgName": "",
/*required, string, name of the text message*/ 
          "content": "",
/*required, string, content of the text message*/ 
          "TimeRange": 
/*optional, string, time range*/ 
          {
            "beginTime": "",
/*required, string, start time in ISO 8601 format, eg:2004-05-03T22:30:08.354+08:00*/ 
            "endTime": ""
/*required, string, end time in ISO 8601 format, eg:2004-05-03T22:30:08.354+08:00*/ 
          }
        }],
        "msgPos": "",
/*optional, string, text position: "top", "middle", "bottom", "selfDefine"*/   
        "rect": {
/*optional, text position, this node is valid when the value of msgPos is "selfDefine"*/
          "height": 1.0,
/*optional, float, height*/
          "width": 1.0,
/*optional, float, width*/
          "x": 0.0,
/*optional, float, X-coordinate*/
          "y": 0.0
/*optional, float, Y-coordinate*/
        }
      },
      "MaterialInfo": 
      {
        "materialNo": 1,
/*required, int, material No.*/  
        "playMode": "",
/*required, string, play mode: "byTime", "byCoun" (number of times the material is played), "byEndTime"*/ 
        "playDuration": 1,
/*dependent, int, play duration, unit: second, this node is valid when the value of playMode is "byTime"*/ 
        "countNum": 1,
/*dependent, int, number of times the material is played, this node is valid when the value of playMode is "byCount"*/ 
        "playEndTime": "",
/*dependent, string, end time, this node is valid when the value of playMode is "byEndTime", eg:2004-05-03T22:30:08.354+08:00*/ 
        "rect": {
/*optional, material position*/
          "height": 1.0,
/*optional, float, height*/
          "width": 1.0,
/*optional, float, width*/
          "x": 0.0,
/*optional, float, X-coordinate*/
          "y": 0.0
/*optional, float, Y-coordinate*/
        }
      },
      "ProgramInfo": 
      {
        "programNo": 1,
/*required, int, program No.*/  
        "playMode": "",
/*required, string, play mode: "byTime", "byCoun" (number of times the program is played), "byEndTime"*/ 
        "playDuration": 1,
/*dependent, int, play duration, unit: second, this node is valid when the value of playMode is "byTime"*/ 
        "countNum": 1,
/*dependent, int, number of times the material is played, this node is valid when the value of playMode is "byCount"*/ 
        "playEndTime": "",
/*dependent, string, end time, this node is valid when the value of playMode is "byEndTime", eg:2004-05-03T22:30:08.354+08:00*/
      },
      "Effect": {
/*optional, effect*/
        "fontSize": 1,
/*required, int, font size*/
        "fontColor": "FFFFFF",
/*required, hexBinary, font color*/
        "backColor": "FFFFFF",
/*required, hexBinary, background color*/
        "backTransparent": 1,
/*required, int, background transparency*/
        "subtitlesEnabled": true,
/*optional, boolean, whether to enable sub titles*/
        "scrollDirection": "",
/*optional, string, scroll direction: "none", "left", "right", "up", "down"*/
        "scrollSpeed": 1,
/*optional, int, scroll speed, this node is valid when cut-in material is web or text message*/
        "pageTime": 1
/*optional, int, page flip interval, unit: second, this node is valid when the cut-in material is in the format of WORD, PPT, PDF, or EXCEL*/
      }
    }]    
  }   
}