api/internal/media/media_services library

Classes

MediaCampaignScope
The campaign whose media renders below, so a media failure is reported against it.
MediaServices
The media layer's process-wide services (ADR-006 D17), as on Android and iOS: the health reporter every media wrapper reports through. It reports through reportMediaLoadFailed; tests observe it with a logger sink (captureMediaHealth). Never reads SdkInstance.

Constants

digiaMediaUserAgent → const String
The User-Agent every media fetch sends.
mediaHttpHeaders → const Map<String, String>
The headers every media fetch sends, built once here so no wrapper shapes its own.

Functions

mediaImageProvider(String url) → ImageProvider<Object>
The image provider for an image fetch that does not go through MediaImage (a surface's wait-for-media gate, a next-image precache): the same cache and the same mediaHttpHeaders, so the request that actually downloads carries the SDK User-Agent too.

Typedefs

MediaHealthReporter = void Function(String? campaignKey, MediaKind kind, String url, Object error)
The shape of MediaServices.reportHealth.