decord/source/7869_sessionTimingIntegration.js

31 lines
845 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7869
// Function ID: 7870
2026-07-29 08:29:29 +00:00
// Name: sessionTimingIntegration
2026-08-24 06:08:38 +00:00
// Dependencies: [7790, 7832]
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
// Module 7869 (sessionTimingIntegration)
import setupIntegration from "setupIntegration" /* 7832 */;
2026-07-29 08:29:29 +00:00
export const sessionTimingIntegration = setupIntegration.defineIntegration(() => {
2026-08-24 06:08:38 +00:00
let obj = _require(7790);
2026-07-29 08:29:29 +00:00
_require = 1000 * obj.timestampInSeconds();
obj = {
name: "SessionTiming",
processEvent(extra) {
2026-08-24 06:08:38 +00:00
let obj = callback(closure_1_1[0]);
2026-07-29 08:29:29 +00:00
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;
});