Rest API 2.0 Cant change content duration

  • 0 Replies
  • 542 Views

0 Members and 1 Guest are viewing this topic.

*

Offline jonathan

  • Newbie
  • *
  • 1
  • 0
Rest API 2.0 Cant change content duration
« on: November 15, 2023, 05:16:39 AM »
Hi,

I have been unable to change the content duration of an image when creating a playlist through the API. For some reason even when I input a different value I get the default content duration 5 seconds. I have tried to change the  default time too with out any luck. Here is the input and resultant code below.

Input:
{
  "groupId": 5362,
  "playlistName": "Test Playlist 2",
  "playlistType": 0,
  "deviceType": "SPLAYER",
  "contentList": [
    {
      "contentId": "3811054D-6F5E-47FD-925F-EF3908766AB7",
      "contentOrder": 1,
      "contentDuration": 10
    },
    {
      "contentId": "61DDEBC9-FADB-4A6E-BA02-FB7DC8D5C890",
      "contentOrder": 2,
      "contentDuration": "20"
    }
  ]
}

Result:
{
  "apiVersion": "2.0",
  "status": "Success",
  "items": {
    "playlistId": "098dfc84-0db8-4e82-8254-74beaad24501",
    "deviceType": "SPLAYER",
    "deviceTypeVersion": 1,
    "playlistName": "Test Playlist 2",
    "groupId": 5362,
    "groupName": "default",
    "shareFlag": 1,
    "metaData": "-",
    "shuffleFlag": "N",
    "contentCount": 2,
    "playTime": 10,
    "totalSize": 785735,
    "lastModifiedDate": 1700025245616,
    "playlistType": "0",
    "versionId": 1,
    "contents": [
      {
        "playlistId": "098dfc84-0db8-4e82-8254-74beaad24501",
        "versionId": 0,
        "contentId": "3811054D-6F5E-47FD-925F-EF3908766AB7",
        "contentName": "craftworks",
        "thumbFileId": "6B78E84E-FA07-485F-AE0C-4BE073E666BC",
        "thumbFileName": "craftworks.png.png",
        "thumbFilePath": "/servlet/ContentThumbnail?thumb_id=6B78E84E-FA07-485F-AE0C-4BE073E666BC&thumb_filename=craftworks.png.png_MEDIUM.PNG",
        "playTime": "",
        "hasDefaultPlayTime": false,
        "contentOrder": 1,
        "contentDuration": 5,
        "contentDurationMilli": "",
        "startDate": "",
        "expiredDate": "29991231",
        "mediaType": "IMAGE",
        "isSubPlaylist": false,
        "randomCount": 0,
        "playWeight": 1,
        "lastModifiedDate": 1698362552580,
        "contentTagValue": ""
      },
      {
        "playlistId": "098dfc84-0db8-4e82-8254-74beaad24501",
        "versionId": 0,
        "contentId": "61DDEBC9-FADB-4A6E-BA02-FB7DC8D5C890",
        "contentName": "1679552744155",
        "thumbFileId": "2EB27400-C127-417A-AC07-225AE8B2A572",
        "thumbFileName": "1679552744155.jpeg.png",
        "thumbFilePath": "/servlet/ContentThumbnail?thumb_id=2EB27400-C127-417A-AC07-225AE8B2A572&thumb_filename=1679552744155.jpeg.png_MEDIUM.PNG",
        "playTime": "",
        "hasDefaultPlayTime": false,
        "contentOrder": 2,
        "contentDuration": 5,
        "contentDurationMilli": "",
        "startDate": "",
        "expiredDate": "29991231",
        "mediaType": "IMAGE",
        "isSubPlaylist": false,
        "randomCount": 0,
        "playWeight": 1,
        "lastModifiedDate": 1698357585263,
        "contentTagValue": ""
      }
    ],
    "thumbFileId": "",
    "thumbFilePath": "",
    "thumbFileName": "",
    "categoryList": [],
    "ignoreTag": 0,
    "evennessPlayback": 0,
    "defaultContentDuration": 5,
    "playlistVersions": [
      {
        "versionId": 1,
        "lastModifiedDate": 1700025245616,
        "isActive": true
      }
    ],
    "amsDirectPlay": false,
    "hasSubPlaylist": false,
  },
  "isOutDoorSBox": false
}