xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Changes between Version 1 and Version 2 of Ticket #1775, comment 1


Ignore:
Timestamp:
03/13/18 05:29:46 (3 years ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1775, comment 1

    v1 v2  
    66This code was added in ticket:1341#comment:6 (16 months ago), see also #845
    77
    8 The [https://w3c.github.io/media-source/ MediaSource] (mozilla docs here: [https://developer.mozilla.org/en-US/docs/Web/API/MediaSource 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): [https://www.w3.org/TR/html51/semantics-embedded-content.html#dom-htmlmediaelement-buffered 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.''.
     8The [https://w3c.github.io/media-source/ MediaSource] (mozilla docs here: [https://developer.mozilla.org/en-US/docs/Web/API/MediaSource 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): [https://www.w3.org/TR/html51/semantics-embedded-content.html#dom-htmlmediaelement-buffered 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.''.