This commit is contained in:
skdhg committed 2023-07-15 18:44:16 +05:45
1 parent dd706e7f23
commit 12c4b0893d
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ export interface ProbeResult {
codec: JsCodecType codec: JsCodecType
/** The number of frames */ /** The number of frames */
nFrames: number nFrames: number
/** The duration of this media in seconds */ /** The approximate duration of this media in seconds */
duration: number duration: number
} }
export const enum CodecType { export const enum CodecType {
+2 -2
View File
@@ -34,8 +34,8 @@
}, },
"scripts": { "scripts": {
"artifacts": "napi artifacts", "artifacts": "napi artifacts",
"build": "yarn build:debug --release", "build": "napi build --platform --release --dts binding.d.ts --js binding.js ./lib",
"build:debug": "napi build --platform --dts binding.d.ts --js ./lib/binding.js ./lib", "build:debug": "napi build --platform --dts binding.d.ts --js binding.js ./lib",
"prepublishOnly": "napi prepublish -t npm", "prepublishOnly": "napi prepublish -t npm",
"test": "ava", "test": "ava",
"universal": "napi universal", "universal": "napi universal",
+1 -1
View File
@@ -24,7 +24,7 @@ pub struct JsProbeResult {
pub codec: JsCodecType, pub codec: JsCodecType,
/// The number of frames /// The number of frames
pub n_frames: u32, pub n_frames: u32,
/// The duration of this media in seconds /// The approximate duration of this media in seconds
pub duration: u32, pub duration: u32,
} }