eugeneware / eugeneware/ffprobe
Use in Google Cloud function
- Dominant language
- JavaScript
- Stars
- 102
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to use ffprobe in a Google Cloud Function. But all I get is an empty Promise no matter what my input is:
**Input:**
`https://ucarecdn.com/1ba97d0a-e709-4915-bb35-5ad9e1b42975/test2.mp3`
**Output**
`{"domain":{"domain":null,"_events":{},"_eventsCount":3,"members":[]}}`
What I'm I missing?
```
exports.helloWorld = (req, res) => {
const ffprobe = require('ffprobe'),
ffprobeStatic = require('ffprobe-static');
let message = req.query.message || req.body.message || 'Error';
let result = ffprobe(message, { path: ffprobeStatic.path }) || 'Error ffprobe';
res.status(200).send(result);
};
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.