Skip to content

fix(deps): update dependency hls.js to ^1.6.0#326

Merged
renovate[bot] merged 1 commit intomainfrom
renovate/hls.js-1.x
Apr 4, 2025
Merged

fix(deps): update dependency hls.js to ^1.6.0#326
renovate[bot] merged 1 commit intomainfrom
renovate/hls.js-1.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 29, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
hls.js ^1.5.20 -> ^1.6.0 age adoption passing confidence

Release Notes

video-dev/hls.js (hls.js)

v1.6.0

Compare Source

Summary

HLS.js v1.6.0 introduces support for HLS Interstitials with new API features, media support, and playback enhancements.

New features in release version 1.6

API changes in release version 1.6

  • Added config.detectStallWithCurrentTimeMs
  • Added config.nudgeOnVideoHole
  • Added config.enableInterstitialPlayback set to false to disable Interstitial playback without turning off Interstitials parsing and events
  • Added config.interstitialsController set to null to disable Interstitials support completely
  • Added config.interstitialAssetListLoadPolicy defines the loading policy of X-ASSET-LIST JSON
  • Added config.liveSyncOnStallIncrease (#​6455) @​vk342
  • Added config.maxDevicePixelRatio to limit browser value when capping level to media element dimensions (#​6825) @​signalwerk
  • Added config.videoPreference.videoCodec video codec selection preference option (#​6483)
  • Added config options specifically for Interstitial asset player instances:
    • config.primarySessionId identifies the parent player session that spawned the asset player (read from hls.sessionId)
    • config.assetPlayerId identifies logs from asset players
    • config.timelineOffset offsets MSE appends for gapless playback
  • Support config.fetchSetup optional async result (#​6714) @​zce
  • Added hls.bufferedToEnd read-only indicates when EOS has been appended (media is buffered from currentTime to end of stream)
  • Added hls.bufferingEnabled read-only flag toggled with pauseBuffering() and resumeBuffering()
  • Added hls.hasEnoughToStart getter returns whether enough is buffered to seek to start position (#​6571)
  • Added hls.inFlightFragments
  • Added hls.interstitialsManager read-only InterstitialsManager or null. The InterstitialsManager is an interface for accessing program information and methods for seeking across items and skipping Interstitials.
  • Added hls.latestLevelDetails read-only LevelDetails object of the most up-to-date HLS variant Playlist data
  • Added hls.loadLevelObj read-only Level object of selected level (variant) or null
  • Added hls.loadingEnabled read-only flag toggled with hls.startLoad() and hls.stopLoad()
  • Added hls.pathwayPriority Content-Steering setting (#​6295) @​PavelFomin90
  • Added hls.pathways getter (#​6997) @​grabofus
  • Added hls.sessionId read-only Hls instance UUID - used to assign a value to the _HLS_primary_id query parameter of interstitial requests
  • Added hls.startPosition read-only the resolved startPosition that playback will begin at once media is appended
  • Support setting hls.targetLatency (#​6473) @​vk342
  • Added hls.transferMedia() detaches and returns MediaSource and SourceBuffers non-destructively
  • Added hls.url read-only value of the currently playing url (from hls.loadSource(url)) (#​6411) @​ibobo
  • Added Events.MEDIA_ENDED event (#​6141)
  • Added Events.EVENT_CUE_ENTER (for internal use)
  • Added levelInfo: Level to LevelLoadingData and LevelLoadedData event data
  • Added track: MediaPlaylist to TrackLoadingData and TrackLoadedData event data (audio and subtitle events)
  • Added withoutMultiVariant: boolean to LevelLoadedData event
  • Added LevelDetais.expired read-only indicates live playlist data is no longer valid for fragment loading
  • Added LevelDetais.requestScheduled to improve live playlist reload scheduling
  • Added read-only Fragment.bitrate and Fragment.byteLength getters
  • Several Fragment properties have been replaced with accessors: get baseurl(), get/set stats(), get/set programDateTime(). Class property accessors are not enumerable. This impacts copying object properties and serialization. Fragment.stats remain enumerable with (#​6999)
  • Enhancements:
    • hls.startLoad() takes a second optional argument to skip seeking on start (otherwise, HLS.js seeks following to the first optional startPosition argument on append)
    • hls.attachMedia() supports transferring MediaSource and SourceBuffers from Hls instances with hls.transferMedia()
    • hls.recoverMediaError() seeks to the value of currentTime before the source reset is performed (#​6297)
  • New Events:
    • ASSET_LIST_LOADING when a request is made for an X-ASSET-LIST JSON object
    • ASSET_LIST_LOADED when a response is received for an X-ASSET-LIST JSON object
    • INTERSTITIALS_UPDATED when Interstitials are added, removed, or the schedule is updated following a variant playlist update or updated asset durations from X-ASSET-LIST JSON or asset playlist and media parsing
    • INTERSTITIALS_BUFFERED_TO_BOUNDARY when the forward buffer reaches the boundary of the following schedule item (Interstitial event or primary segment)
    • INTERSTITIAL_ASSET_PLAYER_CREATED when an asset player instance is created to stream an Interstitial asset (will always be before attaching media to the asset player)
    • INTERSTITIAL_STARTED when streaming of an Interstitial event containing one or more assets has begun (may occur before X-ASSET-LIST JSON is loaded or playback has started)
    • INTERSTITIAL_ENDED when streaming of an Interstitial event containing one or more assets has ended - before resuming primary or starting the next event
    • INTERSTITIAL_ASSET_STARTED when streaming of an Interstitial asset has begun (following the beginning of the event or the end of the last asset)
    • INTERSTITIAL_ASSET_ENDED when streaming of an Interstitial asset has ended (before the next asset or the event ending)
    • INTERSTITIAL_ASSET_ERROR when an error occurs starting or streaming an Interstitial asset (this can include non-fatal errors such as stalling and errors that will end streaming of the asset, resulting in the schedule advancing to the next asset or fallback to primary)
    • INTERSTITIALS_PRIMARY_RESUMED when playback of primary content has begun or resumed from an Interstitial event
    • BUFFERED_TO_END when the last audio and video segments in the playlist have been appended (EOS signaled on all SourceBuffers)
    • AUDIO_TRACK_UPDATED similar to LEVEL_UPDATED fired for any update to audio group playlists
    • SUBTITLE_TRACK_UPDATED similar to LEVEL_UPDATED fired for any update to subtitle group playlists
  • Updated Events
    • MEDIA_ATTACHING, MEDIA_ATTACHED, MEDIA_DETACHING, and MEDIA_DETACHED include additional information (depending on whether media is being transferred)
  • New Errors
    • Type: NETWORK_ERROR

      • details: ASSET_LIST_LOAD_ERROR network error loading asset list
      • details: ASSET_LIST_LOAD_TIMEOUT network timeout error loading asset list
      • details: ASSET_LIST_PARSING_ERROR asset list was not valid JSON or missing required data
    • Type: OTHER_ERROR

      • details: INTERSTITIAL_ASSET_ITEM_ERROR an issue interrupted or prevented asset playback. This will result in skipping the remainder of the asset or falling back to primary content. The event error will contain more details. This type of error differs from the INTERSTITIAL_ASSET_ERROR events forwarded from asset player errors.
      • details: ATTACH_MEDIA_ERROR when calling attachMedia with falsey media argument (#​6556) @​agajassi
      • Support more key system error detail (#​6807) @​JackPu
        • details: KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR
        • details: KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR
        • details: KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR

Enhancements

Project exports

Bug Fixes

Documentation

CI

API and breaking changes

If you are upgrading from version v0.14.17 or lower, see the MIGRATING guide for API changes between v0.14.x and v1.0.0.

If upgrading from version v1.3.x or lower, the introduction of ESM exports may require changes to hls.js import statements and WebWorker setup to achieve comparable performance (https://github.com/video-dev/hls.js/issues/7106#issuecomment-2737860461).

Feedback

Please provide feedback via Issues in GitHub. For more details on how to contribute to HLS.js, see our CONTRIBUTING guide.


Configuration

📅 Schedule: Branch creation - "before 5am" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 29, 2025
@renovate renovate bot force-pushed the renovate/hls.js-1.x branch 27 times, most recently from ae136ef to aef701f Compare April 3, 2025 18:22
@renovate renovate bot force-pushed the renovate/hls.js-1.x branch from aef701f to 42b97a3 Compare April 3, 2025 22:26
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 3, 2025

@renovate renovate bot merged commit 6734255 into main Apr 4, 2025
6 checks passed
@renovate renovate bot deleted the renovate/hls.js-1.x branch April 4, 2025 01:26
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2025

🎉 This PR is included in version 0.28.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants