GithubHelp home page GithubHelp logo

Comments (6)

nofaredanoren avatar nofaredanoren commented on June 12, 2024

Hey @Nico-VanHaaster
We found the bug and working on a fix. Will update you once resolved.

Thanks for letting us know!

from azure-video-indexer-samples.

Nico-VanHaaster avatar Nico-VanHaaster commented on June 12, 2024

@nofaredanoren Thanks for the update. Do you have any estimated timeframe for the fix?

from azure-video-indexer-samples.

nofaredanoren avatar nofaredanoren commented on June 12, 2024

You're welcome @Nico-VanHaaster
The fix was deployed, can you please verify from your side?

Thanks

from azure-video-indexer-samples.

Nico-VanHaaster avatar Nico-VanHaaster commented on June 12, 2024

@nofaredanoren Thanks again for the update and although the NaN:NaN:NaN is resolved I dont believe its actually correct. Looking at the new minified code it is handling the undefined correctly however now the video duration is now returning (from the example of duration: 634 duration in seconds) the value "634:00:00" which would indicate the video is 634 hours not 10 mins 34 seconds.

Code like below should solve this.

const duration = 634;
const hour = Math.floor(duration / (3600));
const minutes = Math.floor(duration / 60) % 60;
const seconds = duration % 60;

const durString = [hour, minutes, seconds]
  .map(t => String(!isNaN(t) ? t : 0).padStart(2, "0"))
  .join(":");

console.log(durString);

image

from azure-video-indexer-samples.

nofaredanoren avatar nofaredanoren commented on June 12, 2024

Thanks @Nico-VanHaaster for the suggestion! The widgets works a bit different and I appreciate your help.
Another fix was deployed, can you check again?
Thanks

from azure-video-indexer-samples.

Nico-VanHaaster avatar Nico-VanHaaster commented on June 12, 2024

@nofaredanoren Great thank you very much. I just tested the sample and our own usage of custom insights and this seems to be resolved. I really appreciate your quick turn around on these fixes.

I will close this for bug report.

from azure-video-indexer-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.