diff --git a/package-lock.json b/package-lock.json index 01e8c21..51bdd32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mediabunny", - "version": "1.4.1", + "version": "1.4.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mediabunny", - "version": "1.4.1", + "version": "1.4.2", "license": "MPL-2.0", "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", diff --git a/package.json b/package.json index ade2876..1694167 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mediabunny", "author": "Vanilagy", - "version": "1.4.1", + "version": "1.4.2", "description": "Pure TypeScript media toolkit for reading, writing, and converting media files, directly in the browser.", "type": "module", "main": "./dist/bundles/mediabunny.cjs", diff --git a/src/sample.ts b/src/sample.ts index 492aea8..29f8954 100644 --- a/src/sample.ts +++ b/src/sample.ts @@ -236,6 +236,7 @@ export class VideoSample { return new VideoSample(this._data.clone(), { timestamp: this.timestamp, duration: this.duration, + rotation: this.rotation, }); } else if (this._data instanceof Uint8Array) { return new VideoSample(this._data.slice(), { @@ -245,6 +246,7 @@ export class VideoSample { timestamp: this.timestamp, duration: this.duration, colorSpace: this.colorSpace, + rotation: this.rotation, }); } else { return new VideoSample(this._data, { @@ -254,6 +256,7 @@ export class VideoSample { timestamp: this.timestamp, duration: this.duration, colorSpace: this.colorSpace, + rotation: this.rotation, }); } }