hcloud-sdk 22.5.0 → 22.6.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/changelog.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
## [22.
|
|
1
|
+
## [22.6.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.5.0...v22.6.0) (2026-07-23)
|
|
2
2
|
|
|
3
3
|
### Features
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* implement endpoint to get thumbnail at specific timecode ([c6ea1b0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c6ea1b0e1da03afa6cd02c2ab07ca650f4de1662))
|
|
@@ -265,6 +265,16 @@ export declare class CosmoAsset extends Base {
|
|
|
265
265
|
getAssetWaveform<R extends boolean = false>(orgName: string, spaceName: string, assetId: string, raw?: {
|
|
266
266
|
raw: R;
|
|
267
267
|
}): Promise<MaybeRaw<R, AudioWaveformItem>>;
|
|
268
|
+
/**
|
|
269
|
+
* Get a thumbnail of a video asset at a specific timecode.
|
|
270
|
+
*
|
|
271
|
+
* @param orgName Name of the Organization
|
|
272
|
+
* @param spaceName Name of the Space
|
|
273
|
+
* @param assetId ID of the video asset
|
|
274
|
+
* @param thumbnailTime Time in milliseconds to grab the thumbnail from
|
|
275
|
+
* @returns the thumbnail image as an ArrayBuffer (application/octet-stream)
|
|
276
|
+
*/
|
|
277
|
+
getThumbnailWithTimecode(orgName: string, spaceName: string, assetId: string, thumbnailTime: number): Promise<ArrayBuffer>;
|
|
268
278
|
/**
|
|
269
279
|
* Subscribe to notifications for a specific asset or all assets in a space.
|
|
270
280
|
*
|
|
@@ -403,6 +403,21 @@ class CosmoAsset extends Base_1.default {
|
|
|
403
403
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* Get a thumbnail of a video asset at a specific timecode.
|
|
408
|
+
*
|
|
409
|
+
* @param orgName Name of the Organization
|
|
410
|
+
* @param spaceName Name of the Space
|
|
411
|
+
* @param assetId ID of the video asset
|
|
412
|
+
* @param thumbnailTime Time in milliseconds to grab the thumbnail from
|
|
413
|
+
* @returns the thumbnail image as an ArrayBuffer (application/octet-stream)
|
|
414
|
+
*/
|
|
415
|
+
getThumbnailWithTimecode(orgName, spaceName, assetId, thumbnailTime) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/assets/${assetId}/thumbnail`), { thumbnailTime }, { responseType: "arraybuffer" });
|
|
418
|
+
return resp.data;
|
|
419
|
+
});
|
|
420
|
+
}
|
|
406
421
|
/**
|
|
407
422
|
* Subscribe to notifications for a specific asset or all assets in a space.
|
|
408
423
|
*
|