@mux/ai 0.13.0 → 0.13.1
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/dist/index.d.ts +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/workflows/index.js +8 -3
- package/dist/workflows/index.js.map +1 -1
- package/package.json +1 -1
package/dist/workflows/index.js
CHANGED
|
@@ -3736,9 +3736,14 @@ async function generateEngagementInsights(assetId, options = {}) {
|
|
|
3736
3736
|
}
|
|
3737
3737
|
const { hotspots, heatmap } = engagementResult.value;
|
|
3738
3738
|
if (hotspots.length === 0) {
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3739
|
+
return {
|
|
3740
|
+
assetId,
|
|
3741
|
+
momentInsights: [],
|
|
3742
|
+
overallInsight: {
|
|
3743
|
+
summary: `No engagement data available for asset ${assetId} in timeframe ${timeframe}. Video may not have been viewed yet, not contain notable engagement patterns, or engagement tracking is not enabled.`,
|
|
3744
|
+
trends: []
|
|
3745
|
+
}
|
|
3746
|
+
};
|
|
3742
3747
|
}
|
|
3743
3748
|
let transcriptText = "";
|
|
3744
3749
|
if (transcriptResult.status === "fulfilled") {
|