Skip to main content

Properties

bundledLatoFaces​

nonisolated static let bundledLatoFaces: String

#21293. The bundled Lato (400 from Lato-Regular, 700 from Lato-Bold) as @font-face rules for the overlay page. The WebView renders out of process and cannot see the fonts the app registers, and loading Lato from Google Fonts would send every viewer's IP to Google (refused in review 2026-10-19). These are the files the native skin registers (BBFontRegistry). A face whose file is missing or unreadable is left out and logged; the page's stack then falls through to Arial, as before. About 200 KB of css, built once per process.

contentAuthHolder​

var contentAuthHolder: ContentAuthHolder?

The player's: the overlay checks access with what the player sends (#21000, #21142).

overlayFontsScript​

nonisolated static var overlayFontsScript: String

The Content Protection overlay font script, read from the shared module: OverlayFontsScript.source is compiled from the module's webview/cp-overlay/overlay-fonts.js (#20276, #21293, #21294). It defines window.bbApplyFonts(fields, config), which applies the web player's font reading rule inside the overlay page. This SDK holds no copy; it ships the script of the shared module version the submodule points at. Edit the file in the shared module. The Lato of the script's default stack is not loaded by the script: bundledLatoFaces declares it in the page (#21293).

posterContentMode​

var posterContentMode: UIView.ContentMode

The image content mode that scales the poster the way this gravity scales the video (#21517).