@oodle-ai/mobile-sdk-reactnative 0.0.0-stage → 0.1.0
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/LICENSE +201 -0
- package/OodleMobileSdkReactNative.podspec +24 -0
- package/README.md +191 -2
- package/android/build.gradle +55 -0
- package/android/proguard-rules.pro +5 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/ai/oodle/rum/Connectivity.kt +19 -0
- package/android/src/main/java/ai/oodle/rum/CrashReporter.kt +88 -0
- package/android/src/main/java/ai/oodle/rum/DeviceInfo.kt +50 -0
- package/android/src/main/java/ai/oodle/rum/ExitReasons.kt +104 -0
- package/android/src/main/java/ai/oodle/rum/NativeEvents.kt +24 -0
- package/android/src/main/java/ai/oodle/rum/OodleRumModule.kt +96 -0
- package/android/src/main/java/ai/oodle/rum/OodleRumPackage.kt +26 -0
- package/android/src/main/java/ai/oodle/rum/Storage.kt +84 -0
- package/android/src/main/java/ai/oodle/rum/Vitals.kt +188 -0
- package/android/src/main/java/ai/oodle/rum/Watchdog.kt +81 -0
- package/android/src/main/java/ai/oodle/rum/WireframeCapture.kt +398 -0
- package/bin/oodle-rum-upload.mjs +104 -0
- package/ios/OodleCrashReporter.h +16 -0
- package/ios/OodleCrashReporter.m +202 -0
- package/ios/OodleRum.h +18 -0
- package/ios/OodleRum.mm +129 -0
- package/ios/OodleRumImpl.swift +450 -0
- package/ios/WireframeWalker.swift +279 -0
- package/lib/core/clock.d.ts +19 -0
- package/lib/core/clock.js +47 -0
- package/lib/core/clock.js.map +1 -0
- package/lib/core/config.d.ts +142 -0
- package/lib/core/config.js +178 -0
- package/lib/core/config.js.map +1 -0
- package/lib/core/consent.d.ts +5 -0
- package/lib/core/consent.js +33 -0
- package/lib/core/consent.js.map +1 -0
- package/lib/core/context.d.ts +36 -0
- package/lib/core/context.js +172 -0
- package/lib/core/context.js.map +1 -0
- package/lib/core/flags.d.ts +3 -0
- package/lib/core/flags.js +20 -0
- package/lib/core/flags.js.map +1 -0
- package/lib/core/ids.d.ts +7 -0
- package/lib/core/ids.js +40 -0
- package/lib/core/ids.js.map +1 -0
- package/lib/core/internal.d.ts +6 -0
- package/lib/core/internal.js +10 -0
- package/lib/core/internal.js.map +1 -0
- package/lib/core/logger.d.ts +8 -0
- package/lib/core/logger.js +38 -0
- package/lib/core/logger.js.map +1 -0
- package/lib/core/native.d.ts +71 -0
- package/lib/core/native.js +156 -0
- package/lib/core/native.js.map +1 -0
- package/lib/core/rate-limiter.d.ts +7 -0
- package/lib/core/rate-limiter.js +31 -0
- package/lib/core/rate-limiter.js.map +1 -0
- package/lib/core/session.d.ts +51 -0
- package/lib/core/session.js +196 -0
- package/lib/core/session.js.map +1 -0
- package/lib/core/size.d.ts +15 -0
- package/lib/core/size.js +68 -0
- package/lib/core/size.js.map +1 -0
- package/lib/core/tags.d.ts +10 -0
- package/lib/core/tags.js +33 -0
- package/lib/core/tags.js.map +1 -0
- package/lib/core/telemetry.d.ts +6 -0
- package/lib/core/telemetry.js +37 -0
- package/lib/core/telemetry.js.map +1 -0
- package/lib/core/tracing.d.ts +9 -0
- package/lib/core/tracing.js +57 -0
- package/lib/core/tracing.js.map +1 -0
- package/lib/core/transport.d.ts +76 -0
- package/lib/core/transport.js +560 -0
- package/lib/core/transport.js.map +1 -0
- package/lib/core/user.d.ts +12 -0
- package/lib/core/user.js +41 -0
- package/lib/core/user.js.map +1 -0
- package/lib/events/actions.d.ts +13 -0
- package/lib/events/actions.js +147 -0
- package/lib/events/actions.js.map +1 -0
- package/lib/events/emit.d.ts +21 -0
- package/lib/events/emit.js +144 -0
- package/lib/events/emit.js.map +1 -0
- package/lib/events/errors.d.ts +19 -0
- package/lib/events/errors.js +257 -0
- package/lib/events/errors.js.map +1 -0
- package/lib/events/lifecycle.d.ts +7 -0
- package/lib/events/lifecycle.js +101 -0
- package/lib/events/lifecycle.js.map +1 -0
- package/lib/events/longtasks.d.ts +2 -0
- package/lib/events/longtasks.js +42 -0
- package/lib/events/longtasks.js.map +1 -0
- package/lib/events/resources.d.ts +15 -0
- package/lib/events/resources.js +156 -0
- package/lib/events/resources.js.map +1 -0
- package/lib/events/tap-target.d.ts +42 -0
- package/lib/events/tap-target.js +191 -0
- package/lib/events/tap-target.js.map +1 -0
- package/lib/events/view-state.d.ts +13 -0
- package/lib/events/view-state.js +25 -0
- package/lib/events/view-state.js.map +1 -0
- package/lib/events/views.d.ts +21 -0
- package/lib/events/views.js +347 -0
- package/lib/events/views.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.js +24 -0
- package/lib/index.js.map +1 -0
- package/lib/navigation/react-navigation.d.ts +33 -0
- package/lib/navigation/react-navigation.js +61 -0
- package/lib/navigation/react-navigation.js.map +1 -0
- package/lib/react/OodlePrivacy.d.ts +15 -0
- package/lib/react/OodlePrivacy.js +13 -0
- package/lib/react/OodlePrivacy.js.map +1 -0
- package/lib/react/OodleProvider.d.ts +18 -0
- package/lib/react/OodleProvider.js +72 -0
- package/lib/react/OodleProvider.js.map +1 -0
- package/lib/replay/recorder.d.ts +22 -0
- package/lib/replay/recorder.js +317 -0
- package/lib/replay/recorder.js.map +1 -0
- package/lib/replay/rrweb.d.ts +105 -0
- package/lib/replay/rrweb.js +335 -0
- package/lib/replay/rrweb.js.map +1 -0
- package/lib/rum.d.ts +52 -0
- package/lib/rum.js +281 -0
- package/lib/rum.js.map +1 -0
- package/lib/specs/NativeOodleRum.d.ts +43 -0
- package/lib/specs/NativeOodleRum.js +5 -0
- package/lib/specs/NativeOodleRum.js.map +1 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +6 -0
- package/lib/version.js.map +1 -0
- package/package.json +91 -4
- package/react-native.config.js +10 -0
- package/src/core/clock.ts +43 -0
- package/src/core/config.ts +344 -0
- package/src/core/consent.ts +32 -0
- package/src/core/context.ts +189 -0
- package/src/core/flags.ts +15 -0
- package/src/core/ids.ts +35 -0
- package/src/core/internal.ts +6 -0
- package/src/core/logger.ts +37 -0
- package/src/core/native.ts +201 -0
- package/src/core/rate-limiter.ts +34 -0
- package/src/core/session.ts +209 -0
- package/src/core/size.ts +79 -0
- package/src/core/tags.ts +30 -0
- package/src/core/telemetry.ts +35 -0
- package/src/core/tracing.ts +60 -0
- package/src/core/transport.ts +590 -0
- package/src/core/user.ts +45 -0
- package/src/events/actions.ts +157 -0
- package/src/events/emit.ts +131 -0
- package/src/events/errors.ts +283 -0
- package/src/events/lifecycle.ts +102 -0
- package/src/events/longtasks.ts +40 -0
- package/src/events/resources.ts +167 -0
- package/src/events/tap-target.ts +210 -0
- package/src/events/view-state.ts +30 -0
- package/src/events/views.ts +356 -0
- package/src/index.ts +34 -0
- package/src/navigation/react-navigation.ts +72 -0
- package/src/react/OodlePrivacy.tsx +25 -0
- package/src/react/OodleProvider.tsx +88 -0
- package/src/replay/recorder.ts +310 -0
- package/src/replay/rrweb.ts +460 -0
- package/src/rum.ts +295 -0
- package/src/specs/NativeOodleRum.ts +51 -0
- package/src/version.ts +2 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { getConfig } from '../core/config';
|
|
2
|
+
import { getConsent } from '../core/consent';
|
|
3
|
+
import { hasNative, native } from '../core/native';
|
|
4
|
+
import {
|
|
5
|
+
getSession,
|
|
6
|
+
nextReplaySegmentIndex,
|
|
7
|
+
peekSession,
|
|
8
|
+
type SessionData,
|
|
9
|
+
} from '../core/session';
|
|
10
|
+
import { incrTelemetry } from '../core/telemetry';
|
|
11
|
+
import { REPLAY_BATCH_KEY, enqueue } from '../core/transport';
|
|
12
|
+
import { estimateJsonBytes } from '../core/size';
|
|
13
|
+
import { logger } from '../core/logger';
|
|
14
|
+
import { getCurrentViewInfo } from '../events/view-state';
|
|
15
|
+
import {
|
|
16
|
+
BODY_ID,
|
|
17
|
+
EventType,
|
|
18
|
+
IncrementalSource,
|
|
19
|
+
MouseInteraction,
|
|
20
|
+
WireframeRecorder,
|
|
21
|
+
type RRWebEvent,
|
|
22
|
+
type WireframeSnapshot,
|
|
23
|
+
} from './rrweb';
|
|
24
|
+
import { clockOffset } from '../core/clock';
|
|
25
|
+
|
|
26
|
+
/** Snapshot interval while nothing prompts one. Unchanged screens send nothing. */
|
|
27
|
+
const CAPTURE_INTERVAL_MS = 1000;
|
|
28
|
+
/** Captures after a touch or a screen change, to catch the result and its animation. */
|
|
29
|
+
const FOLLOW_UP_DELAYS_MS = [120, 600];
|
|
30
|
+
/** A full snapshot at least this often, so a seek never replays a long chain. */
|
|
31
|
+
const FULL_SNAPSHOT_EVERY_MS = 5 * 60 * 1000;
|
|
32
|
+
const SEGMENT_MAX_EVENTS = 200;
|
|
33
|
+
const SEGMENT_MAX_BYTES = 60_000;
|
|
34
|
+
const SEGMENT_MAX_AGE_MS = 5000;
|
|
35
|
+
const TOUCH_MOVE_THROTTLE_MS = 50;
|
|
36
|
+
const MAX_NODES = 2000;
|
|
37
|
+
|
|
38
|
+
let recorder: WireframeRecorder | null = null;
|
|
39
|
+
let wanted = false;
|
|
40
|
+
let recording = false;
|
|
41
|
+
let foreground = true;
|
|
42
|
+
let captureTimer: ReturnType<typeof setInterval> | null = null;
|
|
43
|
+
let followUps: Array<ReturnType<typeof setTimeout>> = [];
|
|
44
|
+
let capturing = false;
|
|
45
|
+
let pendingFull = true;
|
|
46
|
+
let lastFullAt = 0;
|
|
47
|
+
let segment: RRWebEvent[] = [];
|
|
48
|
+
let segmentBytes = 0;
|
|
49
|
+
let segmentTimer: ReturnType<typeof setTimeout> | null = null;
|
|
50
|
+
let segmentSessionId = '';
|
|
51
|
+
let flushedSessionId = '';
|
|
52
|
+
let lastTouchMove = 0;
|
|
53
|
+
|
|
54
|
+
function eligible(): boolean {
|
|
55
|
+
const c = getConfig();
|
|
56
|
+
if (!c || !c.replay.enabled || !wanted || !foreground) return false;
|
|
57
|
+
if (getConsent() !== 'granted') return false;
|
|
58
|
+
const s = peekSession();
|
|
59
|
+
if (!s || !s.sampled || !s.replaySampled) return false;
|
|
60
|
+
return hasNative();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** The session id once part of its replay is queued, for `replay_id` on events. */
|
|
64
|
+
export function replayIdForEvents(): string {
|
|
65
|
+
const s = peekSession();
|
|
66
|
+
return s && flushedSessionId === s.id && recording ? s.id : '';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* `ended` is the session that just ended, when the segment belongs to it.
|
|
71
|
+
* Its counter is used then, because the live counter now belongs to the
|
|
72
|
+
* new session.
|
|
73
|
+
*/
|
|
74
|
+
function flushSegment(ended?: SessionData | null) {
|
|
75
|
+
if (segmentTimer) {
|
|
76
|
+
clearTimeout(segmentTimer);
|
|
77
|
+
segmentTimer = null;
|
|
78
|
+
}
|
|
79
|
+
if (segment.length === 0) return;
|
|
80
|
+
const events = segment;
|
|
81
|
+
const bytes = segmentBytes;
|
|
82
|
+
const sessionId = segmentSessionId;
|
|
83
|
+
segment = [];
|
|
84
|
+
segmentBytes = 0;
|
|
85
|
+
const index =
|
|
86
|
+
ended && ended.id === sessionId ? ended.replaySegmentSeq++ : nextReplaySegmentIndex();
|
|
87
|
+
enqueue(REPLAY_BATCH_KEY, { session_id: sessionId, segment_index: index, events }, bytes);
|
|
88
|
+
flushedSessionId = sessionId;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function push(events: RRWebEvent[]) {
|
|
92
|
+
if (events.length === 0) return;
|
|
93
|
+
const sessionId = getSession(false).id;
|
|
94
|
+
if (segment.length > 0 && segmentSessionId !== sessionId) flushSegment();
|
|
95
|
+
segmentSessionId = sessionId;
|
|
96
|
+
const offset = clockOffset();
|
|
97
|
+
for (const e of events) {
|
|
98
|
+
// Replay time must match event time, or the player puts taps and
|
|
99
|
+
// errors at the wrong place.
|
|
100
|
+
if (offset) e.timestamp += offset;
|
|
101
|
+
segment.push(e);
|
|
102
|
+
segmentBytes += estimateJsonBytes(e, SEGMENT_MAX_BYTES);
|
|
103
|
+
}
|
|
104
|
+
if (segment.length >= SEGMENT_MAX_EVENTS || segmentBytes >= SEGMENT_MAX_BYTES) {
|
|
105
|
+
flushSegment();
|
|
106
|
+
} else if (!segmentTimer) {
|
|
107
|
+
segmentTimer = setTimeout(() => flushSegment(), SEGMENT_MAX_AGE_MS);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function href(): string {
|
|
112
|
+
return getCurrentViewInfo()?.url || `app://${getConfig()?.service ?? 'app'}`;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
async function capture() {
|
|
116
|
+
if (!recording || !recorder || capturing) return;
|
|
117
|
+
capturing = true;
|
|
118
|
+
try {
|
|
119
|
+
const full = pendingFull || Date.now() - lastFullAt > FULL_SNAPSHOT_EVERY_MS;
|
|
120
|
+
// On an idle screen native code skips the walk, unless a full
|
|
121
|
+
// snapshot is due, which needs the whole screen.
|
|
122
|
+
const raw = await native.captureWireframes({ maxNodes: MAX_NODES, skipUnchanged: !full });
|
|
123
|
+
if (!recording || !recorder) return;
|
|
124
|
+
const snapshot = JSON.parse(raw) as WireframeSnapshot & { unchanged?: boolean };
|
|
125
|
+
if (snapshot?.unchanged) return;
|
|
126
|
+
if (!snapshot || !Array.isArray(snapshot.nodes) || !(snapshot.width > 0)) return;
|
|
127
|
+
const now = Date.now();
|
|
128
|
+
const result = recorder.apply(snapshot, now, href(), full);
|
|
129
|
+
if (result.full) {
|
|
130
|
+
pendingFull = false;
|
|
131
|
+
lastFullAt = now;
|
|
132
|
+
}
|
|
133
|
+
push(result.events);
|
|
134
|
+
} catch (e) {
|
|
135
|
+
incrTelemetry('replay_capture_failures');
|
|
136
|
+
logger.debug('wireframe capture failed', e);
|
|
137
|
+
} finally {
|
|
138
|
+
capturing = false;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function scheduleFollowUps() {
|
|
143
|
+
if (!recording) return;
|
|
144
|
+
for (const t of followUps) clearTimeout(t);
|
|
145
|
+
followUps = FOLLOW_UP_DELAYS_MS.map((d) => setTimeout(() => void capture(), d));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function startLoop() {
|
|
149
|
+
if (captureTimer) return;
|
|
150
|
+
captureTimer = setInterval(() => void capture(), CAPTURE_INTERVAL_MS);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function stopLoop() {
|
|
154
|
+
if (captureTimer) clearInterval(captureTimer);
|
|
155
|
+
captureTimer = null;
|
|
156
|
+
for (const t of followUps) clearTimeout(t);
|
|
157
|
+
followUps = [];
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** Starts or stops recording to match the settings, consent and app state. */
|
|
161
|
+
export function syncRecording() {
|
|
162
|
+
const should = eligible();
|
|
163
|
+
if (should === recording) return;
|
|
164
|
+
if (should) {
|
|
165
|
+
const c = getConfig()!;
|
|
166
|
+
if (!recorder) recorder = new WireframeRecorder({ textAndInputPrivacy: c.replay.textAndInputPrivacy });
|
|
167
|
+
recording = true;
|
|
168
|
+
pendingFull = true;
|
|
169
|
+
startLoop();
|
|
170
|
+
void capture();
|
|
171
|
+
} else {
|
|
172
|
+
recording = false;
|
|
173
|
+
stopLoop();
|
|
174
|
+
flushSegment();
|
|
175
|
+
recorder?.reset();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function initReplay() {
|
|
180
|
+
const c = getConfig();
|
|
181
|
+
if (!c?.replay.enabled) return;
|
|
182
|
+
wanted = c.replay.startRecordingImmediately;
|
|
183
|
+
syncRecording();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export function startRecording() {
|
|
187
|
+
wanted = true;
|
|
188
|
+
syncRecording();
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function stopRecording() {
|
|
192
|
+
wanted = false;
|
|
193
|
+
syncRecording();
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export function isRecording(): boolean {
|
|
197
|
+
return recording;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/** A lost segment breaks the deltas after it; the next capture is a full snapshot. */
|
|
201
|
+
export function onSegmentDropped() {
|
|
202
|
+
incrTelemetry('replay_rebases');
|
|
203
|
+
pendingFull = true;
|
|
204
|
+
recorder?.reset();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function onViewChanged() {
|
|
208
|
+
if (!recording) return;
|
|
209
|
+
pendingFull = true;
|
|
210
|
+
scheduleFollowUps();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export function onReplaySessionRenew(previous: SessionData | null) {
|
|
214
|
+
flushSegment(previous);
|
|
215
|
+
recorder?.reset();
|
|
216
|
+
pendingFull = true;
|
|
217
|
+
recording = false;
|
|
218
|
+
stopLoop();
|
|
219
|
+
syncRecording();
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export function onReplayBackground() {
|
|
223
|
+
foreground = false;
|
|
224
|
+
recording = false;
|
|
225
|
+
stopLoop();
|
|
226
|
+
flushSegment();
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function onReplayForeground() {
|
|
230
|
+
foreground = true;
|
|
231
|
+
recorder?.reset();
|
|
232
|
+
pendingFull = true;
|
|
233
|
+
syncRecording();
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// --- Touches, from OodleProvider ---
|
|
237
|
+
|
|
238
|
+
function touchAllowed(): boolean {
|
|
239
|
+
return recording && getConfig()?.replay.touchPrivacy !== 'hide';
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export function recordTouchStart(x: number, y: number) {
|
|
243
|
+
if (!touchAllowed()) return;
|
|
244
|
+
push([
|
|
245
|
+
{
|
|
246
|
+
type: EventType.IncrementalSnapshot,
|
|
247
|
+
data: { source: IncrementalSource.MouseInteraction, type: MouseInteraction.TouchStart, id: BODY_ID, x, y },
|
|
248
|
+
timestamp: Date.now(),
|
|
249
|
+
},
|
|
250
|
+
]);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export function recordTouchMove(x: number, y: number) {
|
|
254
|
+
if (!touchAllowed()) return;
|
|
255
|
+
const now = Date.now();
|
|
256
|
+
if (now - lastTouchMove < TOUCH_MOVE_THROTTLE_MS) return;
|
|
257
|
+
lastTouchMove = now;
|
|
258
|
+
push([
|
|
259
|
+
{
|
|
260
|
+
type: EventType.IncrementalSnapshot,
|
|
261
|
+
data: { source: IncrementalSource.TouchMove, positions: [{ x, y, id: BODY_ID, timeOffset: 0 }] },
|
|
262
|
+
timestamp: now,
|
|
263
|
+
},
|
|
264
|
+
]);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export function recordTouchEnd(x: number, y: number, tap: boolean) {
|
|
268
|
+
if (recording) scheduleFollowUps();
|
|
269
|
+
if (!touchAllowed()) return;
|
|
270
|
+
const now = Date.now();
|
|
271
|
+
const events: RRWebEvent[] = [
|
|
272
|
+
{
|
|
273
|
+
type: EventType.IncrementalSnapshot,
|
|
274
|
+
data: { source: IncrementalSource.MouseInteraction, type: MouseInteraction.TouchEnd, id: BODY_ID, x, y },
|
|
275
|
+
timestamp: now,
|
|
276
|
+
},
|
|
277
|
+
];
|
|
278
|
+
if (tap) {
|
|
279
|
+
events.push({
|
|
280
|
+
type: EventType.IncrementalSnapshot,
|
|
281
|
+
data: { source: IncrementalSource.MouseInteraction, type: MouseInteraction.Click, id: BODY_ID, x, y },
|
|
282
|
+
timestamp: now,
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
push(events);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/** Sends the open segment now (app going to the background, fatal error). */
|
|
289
|
+
export function flushReplay() {
|
|
290
|
+
flushSegment();
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/** Test hook. */
|
|
294
|
+
export function resetReplay() {
|
|
295
|
+
stopLoop();
|
|
296
|
+
if (segmentTimer) clearTimeout(segmentTimer);
|
|
297
|
+
segmentTimer = null;
|
|
298
|
+
recorder = null;
|
|
299
|
+
wanted = false;
|
|
300
|
+
recording = false;
|
|
301
|
+
foreground = true;
|
|
302
|
+
capturing = false;
|
|
303
|
+
pendingFull = true;
|
|
304
|
+
lastFullAt = 0;
|
|
305
|
+
segment = [];
|
|
306
|
+
segmentBytes = 0;
|
|
307
|
+
segmentSessionId = '';
|
|
308
|
+
flushedSessionId = '';
|
|
309
|
+
lastTouchMove = 0;
|
|
310
|
+
}
|