pete-otaqui / avprober

Get media file data using avprobe
1 stars 3 forks source link

provide a callback-based invocation #1

Open MaxDesiatov opened 10 years ago

MaxDesiatov commented 10 years ago

Currently it seams unclear on how to use this library with other promises implementation, such as Q, because es6-promise is incompatible with Q. It would be nice if avprober presented a simple callback invocation in its API, so that library clients could adapt it to their promise implementations as needed.

pete-otaqui commented 10 years ago

You're probably right.

I think it would be alright to add optional callback arguments to the main function, and still return the standard es6 promise.