decord/source/7487_sessionTimingIntegration.js

31 lines
831 B
JavaScript
Raw Normal View History

2026-08-07 06:50:47 +00:00
// Module ID: 7487
// Function ID: 7488
2026-07-29 08:29:29 +00:00
// Name: sessionTimingIntegration
2026-08-07 06:50:47 +00:00
// Dependencies: [7408, 7450]
2026-07-29 08:29:29 +00:00
2026-08-07 06:50:47 +00:00
// Module 7487 (sessionTimingIntegration)
2026-07-29 08:29:29 +00:00
import setupIntegration from "setupIntegration";
export const sessionTimingIntegration = setupIntegration.defineIntegration(() => {
2026-08-07 06:50:47 +00:00
let obj = _require(7408);
2026-07-29 08:29:29 +00:00
_require = 1000 * obj.timestampInSeconds();
obj = {
name: "SessionTiming",
processEvent(extra) {
let obj = callback(outer1_1[0]);
const result = 1000 * obj.timestampInSeconds();
obj = {};
const merged = Object.assign(extra);
obj = {};
const merged1 = Object.assign(extra.extra);
obj["session:start"] = callback;
obj["session:duration"] = result - callback;
obj["session:end"] = result;
obj.extra = obj;
return obj;
}
};
return obj;
});