Shared Objects

Doh

FieldTypeNotes
Doh.namestringDoH display name.
Doh.urlstringDoH query endpoint.
Doh.ipsstring[]Bootstrap IPs.

Proxy

FieldTypeNotes
Proxy.namestringProxy rule name.
Proxy.hostsstring[]Hosts the rule applies to, rule matching supported.
Proxy.urlsstring[]Proxy locations including host and port, such as http://127.0.0.1:8080 or socks5://127.0.0.1:1080; the http or socks prefix selects the Java proxy type.

Rule

FieldTypeNotes
Rule.namestringRule display name.
Rule.hostsstring[]Trigger hosts.
Rule.regexstring[]Conditions that match valid media locations.
Rule.clickstring[]CSS selectors to click in the WebView; configured separately from the JavaScript script.
Rule.scriptstring[]Scripts run in the WebView.
Rule.excludestring[]Conditions that must not be captured.
FieldTypeNotes
Header.hoststringHost to handle.
Header.headerobjectHTTP request headers to inject or override.

Catch-up (Catchup)

FieldTypeDefaultNotes
Catchup.typestringempty; behaves as appenddefault replaces the location entirely; other values append to the original location.
Catchup.daysstring—Reserved; no catch-up window is currently enforced.
Catchup.regexstring—String or rule deciding whether the settings apply.
Catchup.sourcestring—Catch-up URL template; must be non-empty and may contain start and end time tokens.
Catchup.replacestring—In append mode regex,replacement; not applied in default mode.
{
  "name": "Catch-up sample",
  "url": "./live.m3u",
  "catchup": {
    "type": "append",
    "days": "7",
    "regex": "example.com/live/",
    "source": "?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}",
    "replace": "live/,archive/"
  }
}

${(b)yyyyMMddHHmmss} and ${(e)yyyyMMddHHmmss} are replaced by the program's start and end time, formatted in the device time zone rather than Live.timeZone.

catchup applies when choosing catch-up from the EPG, scoped to that program. If the source can serve content by time, provide timeshift on the channel for a draggable live timeline.

Drm

FieldTypeDefaultNotes
Drm.typestring—Media DRM type such as widevine, playready, clearkey.
Drm.keystring—DRM license location or key data accepted by that type.
Drm.headerobject | string—DRM request headers, as an object or a JSON object string.
Drm.forceKeybooleanfalseForce the given license location instead of the one inside the media; maps to forceDefaultLicenseUri.

Style

FieldTypeDefaultNotes
Style.typestringrectrect, oval or list.
Style.ratiofloatdepends on typeWidth/height; positive values up to 4. Unset or ≤ 0 gives 1 for oval and 0.75 otherwise.

DoH, proxy, hosts and ads

VodConfig top-level fragment

{
  "doh": [
    {
      "name": "Example DoH",
      "url": "https://dns.example.com/dns-query",
      "ips": ["203.0.113.53"]
    }
  ],
  "proxy": [
    {
      "name": "Local proxy sample",
      "hosts": ["media.example.com"],
      "urls": ["http://127.0.0.1:8080", "socks5://127.0.0.1:1080"]
    }
  ],
  "hosts": ["media.example.com=203.0.113.10"],
  "ads": ["ads.example.com"]
}

Proxy locations must include scheme, host and port; hosts uses original host=target host or IP.

Tip

headers, proxy, rules and doh all accept external JSON array URLs. See Vod top level.