-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html5 sound delay #23
Comments
Thanks for reporting this.
That should only happen if your connection has limited bandwidth, some jitter or if the browser is running slowly. This code was added in Xpra-org/xpra#1341#comment:6 (16 months ago), see also Xpra-org/xpra#845 The MediaSource (mozilla docs here: MediaSource API does have an attribute that may allow us to figure out if the browser is buffering too much (not sure how reliable implementations are going to be - ie: Safari will probably just crash if we ask): media.buffered: The buffered attribute must return a new static normalized TimeRanges object that represents the ranges of the media resource, if any, that the user agent has buffered, at the time the attribute is evaluated. Users agents must accurately determine the ranges available, even for media streams where this can only be determined by tedious inspection.. |
Oh, what a mess. I'm pretty sure things have changed since the HTML5 mediasource code was merged. My browsers seem to be playing the stream too fast and changing the sample rate at the gstreamer source pipeline doesn't make any difference. Neither does changing the playback rate in javascript.
PS: chrome 62+ now supports flac+mp4, we could enable it with a version check. Here's a patch which dumps information to the javascript console:
|
The solution may be found here: Decode it like it's 1999: WebAudio for Live Streaming: ... With this, you can string very short PCM buffers together without any artefacts. You only have to calculate the start time for the next buffer by continuously adding the duration of all previous ones. |
Switching codecs makes no difference. |
See also #16 |
So, it seems that we have no way of knowing how much is buffered internally by the browser with MSE? And that changing the playback rate does not allow us to get back to a small buffer size.. And we also have the problem of Xpra-org/xpra#2322. Also, using |
This could well be aurora bug(s):
|
FWIW: increasing Beats me. |
The solution is very likely to be #64 |
Issue migrated from trac ticket # 1775
component: html5 | priority: minor
2018-02-28 15:01:14: mviereck created the issue
The text was updated successfully, but these errors were encountered: