media3-datasources-networking
Compact skill for Media3 HTTP DataSource, OkHttp/Cronet/HttpEngine, cache, headers, auth, and custom DataSource decisions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compact skill for Media3 HTTP DataSource, OkHttp/Cronet/HttpEngine, cache, headers, auth, and custom DataSource decisions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compact skill for Media3 Google IMA CSAI/SSAI ad insertion, AdViewProvider, companions, and ad telemetry.
Compact skill for Media3 MediaSessionService, MediaController, notification, media buttons, and service lifetime.
Compact skill for Media3 offline downloads with DownloadService, DownloadManager, Requirements, and the WorkManagerScheduler role of media3-exoplayer-workmanager.
Compact skill for Media3 bandwidth estimation, ABR limits, load control, network constraints, and preload contention.
Compact skill for Media3 CastPlayer.Builder, automatic local/remote handoff, MediaRouteButton, and Cast session lifecycle.
Compact skill for Media3 inspector metadata, thumbnail/frame extraction, and container sample inspection without playback.
| name | media3-datasources-networking |
| description | Compact skill for Media3 HTTP DataSource, OkHttp/Cronet/HttpEngine, cache, headers, auth, and custom DataSource decisions. |
| license | Apache-2.0 |
| metadata | {"author":"Shunnek Labs","version":"1.2","target_media3_version":"1.10.1","last_reviewed":"2026-07-23","keywords":["android","media3","datasource","networking","okhttp","cronet","cache","headers","offline"]} |
Use for networking stack, cache, auth headers, retries, timeouts, custom URI handling, or offline-first media loading.
streaming-media-architecture for ownership, KMP split, preload window, and telemetry.1.10.1 through the version catalog.HttpEngineDataSource (API 34+) first, then CronetDataSource via Play Services Cronet, then DefaultHttpDataSource as fallback only. Use OkHttp when the app already standardizes on it.DefaultHttpDataSource is the fallback, not the recommended default.// Fallback path only, when HttpEngine (API 34+) and Cronet are unavailable.
val fallbackFactory = DefaultHttpDataSource.Factory()
.setUserAgent(appUserAgent)
.setAllowCrossProtocolRedirects(true)
media3-bandwidth-abrmedia3-hls-dash-adaptive-streamingstreaming-media-architecture