Skip to content
Products

HLS Access API

The HLS settings are common for all channels. Read more about the parameters, ranges, and how they affect the session timeout in HLS Settings.

The request is available to the admin role only. Alta has no request that returns the current values, so keep them in your system.

Terminal window
PUT /api/ott/hlsaccess

Send the complete object.

Terminal window
curl -sS -X PUT -H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' \
'http://alta.example.com:8100/api/ott/hlsaccess' \
-d '{
"media_access": "media",
"vod_access": "vod",
"index": "index",
"segment_duration": 3,
"segment_playlist_count": 8,
"pause_storage_duration": 30
}'
  • media_access: Name of the live segments playlist.
  • vod_access: Name of the on-demand playlist.
  • index: Name of the main playlist.
  • segment_duration: Segment duration in seconds. Required.
  • segment_playlist_count: Number of segments in the playlist. Required.
  • pause_storage_duration: Time to keep segments for paused viewers, in minutes. Required.

When you change the names, Alta applies them by restarting the OTT Server. The new names work for all channels at once, and the old playlist URLs stop working.

CodeDescription
204The settings are saved
400A value is out of the allowed range. The body has the reason