@akhilpulse/samadhaan-session-replay 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akhilpulse/samadhaan-session-replay",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "React Native SDK for Samadhaan Guided Support — session recording, live remote screen-share, take-control, and guided-tour overlays.",
5
5
  "main": "src/index.ts",
6
6
  "module": "src/index.ts",
@@ -35,7 +35,7 @@ import AsyncStorage from "@react-native-async-storage/async-storage";
35
35
  import { captureRef } from "react-native-view-shot";
36
36
 
37
37
  const STORAGE_KEY = "@akhilpulse/samadhaan-session-replay/sessionId";
38
- const SDK_VERSION = "0.2.3";
38
+ const SDK_VERSION = "0.2.4";
39
39
 
40
40
  /** Default Samadhaan production endpoint. Override via `config.serverUrl` for staging. */
41
41
  export const DEFAULT_SERVER_URL = "https://samadhaan.pulseenergy.io";
@@ -216,9 +216,9 @@ export function SessionReplayProvider({ config, children }: { config: Config; ch
216
216
  // periodic screenshots — frames stream only when an agent is actively viewing.
217
217
  if (config.disableScreenshots || !sessionId || !liveMode) return;
218
218
  let stopped = false;
219
- // ~16 fps target. Capture takes time, so the loop self-paces — we schedule
220
- // the next tick AFTER the previous capture completes rather than at a fixed cadence.
221
- const liveTargetMs = 60;
219
+ // ~2 fps target — minimal device load. Capture takes time, so the loop
220
+ // self-paces: we schedule the next tick AFTER the previous capture completes.
221
+ const liveTargetMs = 500;
222
222
  let lastUploadFrameAt = 0;
223
223
  const tick = async () => {
224
224
  if (stopped) return;