buzz/mediainfo.js

Query Specific Data

Closed this issue · 1 comments

I got an example working great.

Now Im trying to come up with a way to extract specific data.

For example. Frame rate.

Im thinking the syntax should be something like this with result.frameRate

`

      mediainfo
              .analyzeData(getSize, readChunk)
               .then((result) => {
                   consoleLog("Frame: "+ result.frameRate)
                   //output.value = result
               })
               .catch((error) => {
                   output.value = `An error occured:\n${error.stack}`
               })`

but I cant figure out the exact syntax. Can you help point me in the right direction?

buzz commented

Duplicate of #49