Skip to content
HALOWERK

File Formats and Conversion

media playlist presentation length

HLS playlist timing sums media durations and reports the available presentation window. Use it when an agent needs a playout length before a media handoff.

POST https://format.halowerk.com/v1/media-playlist-presentation-length

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
playliststringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "playlist": {
      "type": "string",
      "maxLength": 18000,
      "minLength": 1
    }
  },
  "required": [
    "playlist"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "playlist": "#EXTM3U\n#EXT-X-VERSION:3\n#EXT-X-TARGETDURATION:2\n#EXT-X-MEDIA-SEQUENCE:10\n#EXT-X-PLAYLIST-TYPE:VOD\n#EXTINF:2.005333,\nstudio-tone-010.ts\n#EXTINF:2.005333,\nstudio-tone-011.ts\n#EXTINF:2.005333,\nstudio-tone-012.ts\n#EXTINF:0.526667,\nstudio-tone-013.ts\n#EXT-X-ENDLIST\n"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "seconds": {
          "type": "number"
        },
        "segments": {
          "type": "integer"
        },
        "final": {
          "type": "boolean"
        }
      },
      "required": [
        "seconds",
        "segments",
        "final"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’