Giter Club home page Giter Club logo

Comments (8)

master255 avatar master255 commented on July 2, 2024 1

Look at my web site, for that would make seeking for your player: http://master255.org/?file=/res/Музыка/last_add.m3u8

from aurora.js.

devongovett avatar devongovett commented on July 2, 2024

Yep, we should be handling the underflow errors during seeking, that's a bug. Leaving this issue open for that.

As for HTTP, there are some known issues that we cannot solve due to limitations of the browser's XMLHttpRequest interface. So there are a few things that are dependent on your server. Make sure the server supports both HEAD and Range requests. The HTTPSource first does a HEAD request to get the file size, and then loads chunks using range requests. If your server wasn't configured to support both of those things, it could result in the entire file being downloaded at once instead, which would definitely slow down startup time. Let me know if that's the issue.

from aurora.js.

andrei4002 avatar andrei4002 commented on July 2, 2024

the server is working properly, and I also subclassed the HTTPSource to not
use the head request since I already have the file size before downloading
the file (I'm simply initializing the @Length var with the filesize and
skipping the head request) - No matter, it's the same result with/without
my custom source

I also tried modifying the chunk size but got basically the same result (as
in having enough buffer to play the song but not being 'ready')

On Wednesday, September 11, 2013, Devon Govett wrote:

Yep, we should be handling the underflow errors during seeking, that's a
bug. Leaving this issue open for that.

As for HTTP, there are some known issues that we cannot solve due to
limitations of the browser's XMLHttpRequest interface. So there are a few
things that are dependent on your server. Make sure the server supports
both HEAD and Range requests. The HTTPSource first does a HEAD request to
get the file size, and then loads chunks using range requests. If your
server wasn't configured to support both of those things, it could result
in the entire file being downloaded at once instead, which would definitely
slow down startup time. Let me know if that's the issue.


Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-24266318
.

from aurora.js.

devongovett avatar devongovett commented on July 2, 2024

Yeah I just want to make sure that the server isn't sending back the whole file when the first range is requested and ignoring the range. That would definitely slow it down. Could you add some logging or check the chrome network inspector to see if multiple chunks are being returned? If adjusting the chunk size has no effect, this sounds more plausible.

If that's not it, it could be the file you're playing. Some formats like M4A support putting the audio format metadata at the end of the file instead of the beginning, which would force the whole file to be downloaded before playback could occur.

from aurora.js.

andrei4002 avatar andrei4002 commented on July 2, 2024

Multiple chunks are being returned (sequentially), and I tried doing something like have a first and/or second chunk smaller, but it downloads more chunks until it gets a too reasonable (high) buffer to start playing. I'm only doing mp3 as a file type. I could give you a (private) link to check things out.

I also saw some strange things like the progress going nuts on (at least I think) VBR mp3's

from aurora.js.

andrei4002 avatar andrei4002 commented on July 2, 2024

I kind of solved my previous issues, but right now I'm clueless of how I should approach a 'seek anywhere' feature. I do have a custom HTTPSource working, but I'm only emitting data sequentially.

If I make a request for a buffer that's way ahead of the loaded file, what would be the proper way to send it forward for playback? Can the decoder work with sort of incomplete files? I'm not even sure I'm asking the right questions

from aurora.js.

NekR avatar NekR commented on July 2, 2024

Hi guys, so is there a way to seek to yet not loaded time/buffer? Can asset sources also support seeking so it HTTPSource could download needed buffer instead of downloading them in a sequence?

from aurora.js.

sspilleman avatar sspilleman commented on July 2, 2024

Question. How would you seek? If I look at the docs I see a property currentTime... But that is a getter only I believe... Am I missing something?

from aurora.js.

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.