MCPcopy Create free account
hub / github.com/AS-AIGC/TranscriptHub / run

Function run

apps/backend/utils.js:155–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 */
154function get_media_duration(file_path, done) {
155 const run = () => new Promise((resolve, reject) => {
156 get_media_duration_callback(file_path, (err, result) => {
157 if (err)
158 reject(err);
159 else
160 resolve(result?.duration ?? 0);
161 });
162 })
163
164 if (typeof done === 'function') {
165 run().then((duration) => done(null, duration)).catch((e) => done(e));

Callers 1

get_media_durationFunction · 0.85

Calls 1

Tested by

no test coverage detected