Comments (8)
Look at my web site, for that would make seeking for your player: http://master255.org/?file=/res/Музыка/last_add.m3u8
from aurora.js.
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.
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.
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.
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.
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.
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.
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)
- How do I decode to raw, resample to 44,1khz and split stereo into dual mono buffers?
- "Something is wrong in HTTPSource.loop" while using AV.Asset.fromURL(remoteUrl)
- [Solved]switch backend from Speaker to PortAudio(naudiodon)
- Aurora not playing certain flac files with no error
- Live decoding on Android
- Node example HOT 1
- No default jsDelivr CDN file set
- Problems with 24-bit WAV files
- Questions about memory manage.
- Is decoding a specific part of a gargantuan file supported efficiently? HOT 3
- HTTP requests still sending to server even if HTTP error is returned
- Unit tests fail on master branch
- Chrome browser change for same site cookies
- gyp build fail HOT 1
- build for browser
- m4a demuxer fails when processing a file with co64 atom
- Window Not Defined
- decode fail
- How to install additional codecs? HOT 1
- Uncaught SyntaxError: Unexpected identifier 'key'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aurora.js.