Code Monkey home page Code Monkey logo

Comments (5)

ISIA-DASHR avatar ISIA-DASHR commented on September 25, 2024

for the first problem, it comes from this.duration = (e.bytesTotal / (e.bytesLoaded / this.sound.length));
it's not representing the real duration but the time until we can seek

from audio5js.

zohararad avatar zohararad commented on September 25, 2024

@ISIA-DASHR I'll look at the flash timeupdate issue asap.

Can you provide link to jsfiddle or code examples that reproduces issue 2?

from audio5js.

zohararad avatar zohararad commented on September 25, 2024

Regarding issue 1 with inaccurate playback duration, this will be hard to fix, since it relies on ActionScript's ability to determine the length of the sound object. Unfortunately, AS3 cannot accurately determine the sound object's length while the sound hasn't downloaded completely, so the audio duration is only estimated, and is constantly changing while audio is downloaded into the browser.

from audio5js.

ISIA-DASHR avatar ISIA-DASHR commented on September 25, 2024

yes unfortunately i saw that too...

For the second issue, with firefox, you can reproduce by putting a callback with wrong code in it (this.BLOAUAH() for exemple...), it won't fire any error and events such as timeupdate will stop happening for about 5-6 seconds.

from audio5js.

zohararad avatar zohararad commented on September 25, 2024

@ISIA-DASHR, after looking into this, i think it'll be cleaner to leave the code as is, rather than wrap flash event handlers in try/catch blocks for the off chance that someone introduced an error in their code.

I'm sorry I cannot be more accommodating in this respect.

from audio5js.

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.