:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(docs): document android replay screenshot settings (#97613)
Dustin Byrne6c2a3ef78737
diff --git a/docs/onboarding/session-replay/android.tsx b/docs/onboarding/session-replay/android.tsxindex 52aab5a76e07..6eb0906433af 100644--- a/docs/onboarding/session-replay/android.tsx+++ b/docs/onboarding/session-replay/android.tsx@@ -61,6 +61,8 @@ export const getAndroidSteps = (ctx: OnboardingComponentsContext): StepDefinitiolanguage: 'kotlin',file: 'SampleApp.kt',code: dedent`+ import com.posthog.android.replay.PostHogScreenshotColorMode+class SampleApp : Application() {companion object {@@ -99,6 +101,20 @@ export const getAndroidSteps = (ctx: OnboardingComponentsContext): StepDefinitio// The screenshot may contain sensitive information, so use with cautionconfig.sessionReplayConfig.screenshot = false+ // Experimental screenshot settings require SDK 3.63.0+ and screenshot = true.+ // We recommend the values below to balance performance and image quality.+ // Lower resolution and RGB_565 reduce capture time and memory use.++ // Scale each screenshot dimension from 0.1 to 1.0. Default is 1.0.+ config.sessionReplayConfig.screenshotScale = 0.5f++ // RGB_565 uses two bytes per pixel instead of four, with lower color precision+ // and no transparency. Transparent window regions appear black. Default is ARGB_8888.+ config.sessionReplayConfig.screenshotColorMode = PostHogScreenshotColorMode.RGB_565++ // WebP compression quality from 0 to 100. Default is 30.+ config.sessionReplayConfig.screenshotCompressionQuality = 30+// Throttle delay used to reduce the number of snapshots captured. Default is 1000msconfig.sessionReplayConfig.throttleDelayMs = 1000