@ascegu/teamily 1.0.27 → 1.0.28
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 +1 -1
- package/src/monitor.ts +3 -1
package/package.json
CHANGED
package/src/monitor.ts
CHANGED
|
@@ -305,10 +305,12 @@ export class TeamilyMonitor {
|
|
|
305
305
|
const snapshotFile = new File([new Uint8Array(MINIMAL_JPEG)], "snapshot.jpg", {
|
|
306
306
|
type: "image/jpeg",
|
|
307
307
|
});
|
|
308
|
+
// SDK expects a bare extension ("mp4"), not a MIME type ("video/mp4").
|
|
309
|
+
const videoExt = fileName.split(".").pop()?.toLowerCase() || "mp4";
|
|
308
310
|
const created = await sdk.createVideoMessageByFile({
|
|
309
311
|
videoPath: "",
|
|
310
312
|
duration: 0,
|
|
311
|
-
videoType:
|
|
313
|
+
videoType: videoExt,
|
|
312
314
|
snapshotPath: "",
|
|
313
315
|
videoUUID: crypto.randomUUID(),
|
|
314
316
|
videoUrl: "",
|