mediainfo.js query specific data

I got an example working great.

Now Im trying to modify that working example and 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

see below where I tried console.log("Frame: "+ result.frameRate) also tried the Buzz suggestion of result.media.track[0].FrameRate neither suggestion works.

<button class="btn btn-default" id="getframe" onclick="onClickMediaButton()">Get Frame Rate</button>
<script type="text/javascript" src="https://unpkg.com/mediainfo.js/dist/mediainfo.min.js"></script>


        const onClickMediaButton = (filename) => {
            //const file = fileinput.files[0]
            const file = "D:\VLCrecords\Poldark-Episode6.mp4"
            if (file) {
                output222.value = 'Working…'

                const getSize = () => file.size

                const readChunk = (chunkSize, offset) =>
                    new Promise((resolve, reject) => {
                        const reader = new FileReader()
                        reader.onload = (event) => {
                            if (event.target.error) {
                                reject(event.target.error)
                            }
                            resolve(new Uint8Array(event.target.result))
                        }
                        reader.readAsArrayBuffer(file.slice(offset, offset + chunkSize))
                    })

                mediainfo
                    .analyzeData(getSize, readChunk)
                    .then((result) => {
                        consoleLog("Frame: " + result.media.track[0].FrameRate);
                        output222.value = result;
                    })
                    .catch((error) => {
                        output222.value = `An error occured:\n${error.stack}`
                    })
            }
        }

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

135 thoughts on “mediainfo.js query specific data”

  1. Pingback: buy generic viagra
  2. Pingback: herbal viagra
  3. Pingback: viagra online
  4. Pingback: cialis 5mg
  5. Pingback: cialisglass.com
  6. Pingback: cialis 2 mg
  7. Pingback: viagra buy
  8. Pingback: viagra gel caps
  9. Pingback: generic viagra
  10. Pingback: natural viagra
  11. Pingback: cialis 24 hours
  12. Pingback: generic for viagra
  13. Pingback: how to buy cialis
  14. hello my lovely stopforumspam member

    What are the Types of Loans in Ohio depending on the purpose
    Specific purpose payday loans in Ohio. Funds received in debt may be spent only for a specific purpose specified in the loan agreement.
    Non-purpose loan. The debtor may spend the money received at his discretion.
    Most popular specific purpose payday loans in Ohio are:

    House loan. The most common, of course, is a mortgage when the purchased property acts as collateral for a loan. Sometimes a youth loan is issued, with lighter conditions for debtors. Still quite common is a housing loan that does not imply purchased housing in the form of collateral.
    Car loan – payday loans in Ohio to a car or similar vehicle. The key is often the purchased goods, making the terms of the loan better. Also, loan conditions are improved: car insurance, life and health insurance of the borrower, and receiving a salary to the account of the creditor bank.
    Land loan. To purchase a plot for construction or agricultural activities.
    Consumer. For purchases in modern supermarkets, equipment stores, you can take a personal loan right at the point of sale. Often, specialists located there can contact the bank and get a regular or fast payday loans. Borrowed funds automatically pay for the goods, and the consultant explains when and how to re-pay the debt.
    Educational loan. It is issued to students, as well as to applicants who have passed the competition, to pay for tuition at universities, colleges, etc.
    Broker loan. For the circulation of securities, payday loans in Ohio are issued to an exchange broker, se-curities are purchased securities.
    Others. Objectives not related to those listed, but agreed and approved by the creditor.

    Reply
  15. hello my lovely stopforumspam member

    Welcome to Grosvenor Casinos, where you can play a wide range of casino games, from slots to poker, blackjack, and roulette! There’s something for everyone here – become a member of the casino to have the best of online casino gaming. Our Sportbook offers a range of sports betting odds and is available for pre event or in play bets 24/7 and 365 days of the year. Whether you’re here for football tournaments or the latest betting odds for horse racing, Tennis, Golf, Cricket and even Rugby Union, you are covered.

    Reply
  16. Pingback: mint tadalafil
  17. Pingback: cialis mg
  18. Pingback: sildenafil