Docs
Replay
The last moments of the app before the report, as video or captures, and how to tune it or turn it off.
How it works
While the SDK is enabled, it keeps the last moments of the app as small masked pictures, in memory: at most one per second and only when something changed on screen, so an idle app costs nothing. They are copies of what Flutter painted, so the phone asks for no permission and nothing outside the app is seen. Text fields and NabrilaMask zones are covered in every picture.
When someone opens the report, the pictures become one H.264 video while they write the note. If the phone has no usable encoder, the pictures travel as they are. Nothing leaves the phone until someone taps Send.
In the viewer, the replay plays in sync with the timeline. More in Reading a report.
Tune it
Nabrila.run(
appKey: 'nbr_...',
enabled: true,
replay: const NabrilaReplay(
maxFrames: 120, // pictures kept; idle moments add none
maxMemoryBytes: 4000000, // memory they may use
imageQuality: 45, // JPEG quality in memory, 10 to 100
videoQuality: 0.5, // where the encoder takes a constant quality
maskAllText: false, // cover every text, not only text fields
maskAllImages: false, // cover every image
),
app: () => runApp(const NabrilaScope(child: MyApp())),
);
Turn it off
replay: NabrilaReplay.off turns it off. Reports then carry the screenshot only.
What it costs
Measured on a 40-second shopping flow in debug builds: no extra slow frames on the iOS simulator, about 0.6 ms on the UI thread per picture, and a video of 190 KB (iOS simulator) or 182 KB (Android 16 emulator) for 31 to 33 pictures.
Android and desktop
- Replay needs Android 8 (API 26) or newer. On Android 7 reports carry the screenshot only, because the system's software video encoder crashes there.
- Every video is checked on Android. Before sending, it is decoded back and compared with its pictures. If an encoder wrote a black or empty video (seen with software encoders on Android 9 and 11), the report carries the pictures instead.
- Desktop keeps the replay as PNG pictures, with no video.
Remote switch
If a phone model's video encoder turns out to crash, Nabrila can turn the replay off for that model without a new build of your app. The SDK asks once a day and keeps the answer, so the switch applies from the next start, even offline.