Class: NetworkInterceptor

Constructor

new NetworkInterceptor()

Methods

getDomain() → {string}

Returns the captured domain. Priorities: 1. Captured Origin from request headers (if any) 2. window.location.hostname

getTrustedTime() → {number|null}

Returns the current trusted time (server time) if available.

init()

Initialize interception - must be called after Logger is available.

updateTimeFromHeader(dateHeader)

Updates the trusted time from a Date header string. Can be called externally (e.g., from Shaka response filters).
Parameters:
Name Type Description
dateHeader string | null The Date header value from a response.