
{"id":10021,"date":"2022-06-21T09:10:41","date_gmt":"2022-06-21T09:10:41","guid":{"rendered":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/documentation\/rdk_video_documentation\/components\/open-sourced_components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/"},"modified":"2025-03-25T05:18:34","modified_gmt":"2025-03-25T05:18:34","slug":"aamp__fog_retry_-_failover_-_timeouts","status":"publish","type":"page","link":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/","title":{"rendered":"AAMP &#038; FOG Retry \/ Failover \/ Timeouts"},"content":{"rendered":"<p><!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\"><br \/>\n <html><body><\/p>\n<h3 class=\"wp-sub-header\"><span>AAMP DASH DRM License request :<\/span><\/h3>\n<p><span>    <\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/16\/2023\/09\/uml.drawio.png\"><\/span><\/p>\n<p><\/p>\n<h3 class=\"wp-sub-header\"><span>AAMP DASH Manifest Download Retry logic (without TSB) :<\/span><\/h3>\n<p><span>    <\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/16\/2023\/09\/AAMP%20DASH%20Manifest%20Download%20Retry%20logic.drawio.png\"><\/span><\/p>\n<p><\/p>\n<h3 class=\"wp-sub-header\"><span>AAMP Fragment Download Retry logic (without TSB) :<\/span><\/h3>\n<p><span>    <\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/16\/2023\/09\/AAMP%20Fragment%20Download%20Retry%20logic%20%28without%20TSB%29-Gliffy.drawio.png\"><\/span><\/p>\n<p><\/p>\n<h3 class=\"wp-sub-header\"><span>AAMP HLS Main Manifest Download Retry logic (without TSB) :<\/span><\/h3>\n<p><span>    <\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/16\/2023\/09\/AAMP%20HLS%20Main%20Manifest%20Download%20Retry%20logic%20%28without%20TSB%29-Gliffy.drawio.png\"><\/span><\/p>\n<p><\/p>\n<h3 class=\"wp-sub-header\"><span>AAMP-FOG_tune_request_retrylogic_uml :<\/span><\/h3>\n<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/16\/2023\/09\/AAMP-FOG_tune_request_retrylogic_uml-Gliffy.drawio.png\"><\/p>\n<p><\/p>\n<p class=\"c-mrkdwn__pre\">http 4xx (and 502 Bad Gateway) are considered fatal errors for a given download attempt. No retry of the same URL will be performed. &nbsp;For other 5xx failures, single retry will be attempted after configurable delay (default 1s).<\/p>\n<p><span>AAMP Video Engine Timeouts for fragment, manifest, and license requests are all configurable &#8211; defaults as follows:<\/span><\/p>\n<ul>\n<li><span>#define CURL_FRAGMENT_DL_TIMEOUT 10L&nbsp;&nbsp;\/**&lt; Curl timeout for fragment download *\/<\/span><\/li>\n<li><span>#define DEFAULT_PLAYLIST_DL_TIMEOUT 10L \/**&lt; Curl timeout for playlist download *\/<\/span><\/li>\n<li><span>#define DEFAULT_CURL_TIMEOUT 5L &nbsp;&nbsp;&nbsp;&nbsp;\/**&lt; Default timeout for other (i.e. license) Curl downloads *\/<\/span><\/li>\n<li><span>#define DEFAULT_CURL_CONNECTTIMEOUT 3L&nbsp;\/**&lt; Curl socket connection timeout *\/<\/span><\/li>\n<\/ul>\n<p><\/p>\n<div class=\"conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"show-if\">\n<p>FOG is a separate service involved with Client-Side IP Linear Time Shift Buffer (TSB) support, caching fragments and generating virtual playlists that grow and eventually cull. &nbsp;As such, it shares many of the same responsibilities and behaviors as AAMP running in AAMP-only playback scenarios. &nbsp;FOG configuration includes:<\/p>\n<ul>\n<li>\n<p>waitTimeBeforeRetryHttp5xxMS &#8211; 1s<\/p>\n<\/li>\n<li>\n<p>downloadTimeoutMS &#8211; 5s<\/p>\n<\/li>\n<li>\n<p>expirationTimeMS &#8211; 30s<\/p>\n<\/li>\n<li>\n<p>minFragmentDownloadDelayMS &#8211; 10ms; behind ENABLE_ABR_TESTING&nbsp;for randomized simulated download latency<\/p>\n<\/li>\n<li>\n<p>maxFragmentDownloadDelayMS&nbsp;&#8211; 100ms; behind ENABLE_ABR_TESTING for randomized simulated download latency<\/p>\n<\/li>\n<li>\n<p>tsbPreemptiveDownloadDelay &#8211; 5<\/p>\n<\/li>\n<li>\n<p>vfsContextDumpDuration &#8211;&nbsp;10000 &#8211; periodic virtual file system state logging<\/p>\n<\/li>\n<li>\n<p>bitrateCheating &#8211; false<\/p>\n<\/li>\n<li>\n<p>maxConcurrentDownloads &#8211; 1<\/p>\n<\/li>\n<li>\n<p>sleepFraction &#8211; 1.5<\/p>\n<\/li>\n<li>\n<p>manifestUpdate &#8211; 60s<\/p>\n<\/li>\n<li>\n<p>defaultFetchTimeout &#8211; 60s<\/p>\n<\/li>\n<li>\n<p>writeFailThreshold &#8211; 3 (write failure threshold before disabling TSB)<\/p>\n<\/li>\n<li>\n<p>bitrateInit &#8211; initial bitrate while tuning normal content<\/p>\n<\/li>\n<li>\n<p>bitrateInit4K &#8211; initial bitrate while tuning 4k content<\/p>\n<\/li>\n<li>\n<p>fragmentFailThreshold &#8211; 5<\/p>\n<\/li>\n<li>\n<p>cullLength &#8211; 1500 \/ 3600 (25 minutes or 1 hour)<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/body><\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AAMP DASH DRM License request : AAMP DASH Manifest Download Retry logic (without TSB) : [&hellip;]<\/p>\n","protected":false},"author":28,"featured_media":0,"parent":10015,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-10021","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AAMP &amp; FOG Retry \/ Failover \/ Timeouts - RDK Documentation Portal | Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AAMP &amp; FOG Retry \/ Failover \/ Timeouts - RDK Documentation Portal | Documentation\" \/>\n<meta property=\"og:description\" content=\"AAMP DASH DRM License request : AAMP DASH Manifest Download Retry logic (without TSB) : [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/\" \/>\n<meta property=\"og:site_name\" content=\"RDK Documentation Portal | Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-25T05:18:34+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/\",\"url\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/\",\"name\":\"AAMP & FOG Retry \/ Failover \/ Timeouts - RDK Documentation Portal | Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/#website\"},\"datePublished\":\"2022-06-21T09:10:41+00:00\",\"dateModified\":\"2025-03-25T05:18:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"RDK Video\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Components\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Advanced Adaptive Media Player (AAMP)\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/\"},{\"@type\":\"ListItem\",\"position\":6,\"name\":\"AAMP &#038; FOG Retry \/ Failover \/ Timeouts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/#website\",\"url\":\"https:\/\/developer.rdkcentral.com\/documentation\/\",\"name\":\"RDK Documentation Portal | Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/developer.rdkcentral.com\/documentation\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AAMP & FOG Retry \/ Failover \/ Timeouts - RDK Documentation Portal | Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/","og_locale":"en_US","og_type":"article","og_title":"AAMP & FOG Retry \/ Failover \/ Timeouts - RDK Documentation Portal | Documentation","og_description":"AAMP DASH DRM License request : AAMP DASH Manifest Download Retry logic (without TSB) : [&hellip;]","og_url":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/","og_site_name":"RDK Documentation Portal | Documentation","article_modified_time":"2025-03-25T05:18:34+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/","url":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/","name":"AAMP & FOG Retry \/ Failover \/ Timeouts - RDK Documentation Portal | Documentation","isPartOf":{"@id":"https:\/\/developer.rdkcentral.com\/documentation\/#website"},"datePublished":"2022-06-21T09:10:41+00:00","dateModified":"2025-03-25T05:18:34+00:00","breadcrumb":{"@id":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/aamp__fog_retry_-_failover_-_timeouts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/developer.rdkcentral.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/developer.rdkcentral.com\/documentation\/"},{"@type":"ListItem","position":3,"name":"RDK Video","item":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/"},{"@type":"ListItem","position":4,"name":"Components","item":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/"},{"@type":"ListItem","position":5,"name":"Advanced Adaptive Media Player (AAMP)","item":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/advanced_adaptive_media_player_aamp\/"},{"@type":"ListItem","position":6,"name":"AAMP &#038; FOG Retry \/ Failover \/ Timeouts"}]},{"@type":"WebSite","@id":"https:\/\/developer.rdkcentral.com\/documentation\/#website","url":"https:\/\/developer.rdkcentral.com\/documentation\/","name":"RDK Documentation Portal | Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/developer.rdkcentral.com\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/comments?post=10021"}],"version-history":[{"count":1,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10021\/revisions"}],"predecessor-version":[{"id":10027,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10021\/revisions\/10027"}],"up":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10015"}],"wp:attachment":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/media?parent=10021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}