github video-dev/hls.js v0.0.9

latest releases: v1.5.17, v1.6.0-beta.1, v1.5.16...
9 years ago

improvement

hls API:

  • hls constructor can now take an optional configuration object, refer to https://github.com/dailymotion/hls.js#configuration-parameters
    • it is now possible to override default xhr loader (useful for testing/P2P)
  • add hls.stats getter, provides playback session statistics. refer to https://github.com/dailymotion/hls.js#hlsstats
  • add hls.recoverError() : calling this function will destroy and reinstanciate both MediaSource and SourceBuffer(s).it helps recovering playback if any video error happens (in case of audio codec switch for example)

hls Events:

  • remove useless VIDEO_ERROR event. it can already be retrieved through standard HTML Video Element
  • introduce new FRAG_APPENDING_ERROR event.this event will be raised in case of source buffer appending error.
  • FRAG_PARSING_DATA: add nb of parsed samples in event data. this will be useful to detect frames drop.
  • replace LOAD_ERROR event by FRAG_LOAD_ERROR/LEVEL_LOAD_ERROR
  • introduce FRAG_LOAD_TIMEOUT/LEVEL_LOAD_TIMEOUT

behavior change:

  • buffer controller : max buffer Length is now max(60MB of buffer size,30s of buffer duration), instead of min.
    This allows longer buffer if bandwidth is "low".
  • upon fragment or level load error/timeout, hls.js will notify error event(s) and try to reload.

Packaging/Formatting

  • move from 6to5ify to Babel
  • use String templates
  • remove a couple of globals
  • demo page : display hls.stats, hide metrics by default, allow video width customization

bugfixes

  • Firefox: properly signal audio codecs to avoid SourceBuffer append error while switching between AAC/HE-AAC streams (fix issue with x2qm99a)
  • avoid appending empty buffer in case audio or video are advertised in manifest but not present in the TS (fix playback of x2sex2v)
  • Chrome : fix standard AAC 22kHz codec handling
  • Chrome: fix video error while trying to playback streams with mono audio AAC with freq >= 24 kHz
  • TS demuxer : fix sourceBuffer append error when seeking back to position 0, with seek level != startLevel. if there is any drift between level & startLevel, initPTS/initDTS could become negative and lead to sourcebuffer append errors
  • live playlist : fix random out of order segment loading
  • live playlist : fix playback being stuck when end of buffer moves out of live sliding window.when this happens, seek to 3 fragments from live sliding edge

Don't miss a new hls.js release

NewReleases is sending notifications on new releases.