Skip to content

Fix duration updates when media duration changes#2042

Open
wanxiankai wants to merge 1 commit into
cookpete:masterfrom
wanxiankai:fix/playlist-duration-metadata
Open

Fix duration updates when media duration changes#2042
wanxiankai wants to merge 1 commit into
cookpete:masterfrom
wanxiankai:fix/playlist-duration-metadata

Conversation

@wanxiankai

Copy link
Copy Markdown

Summary

  • detect duration changes during progress/timeupdate events and dispatch a durationchange event when providers update duration without emitting one
  • keep the duration cache reset on loadstart so playlist/internal media changes can refresh metadata
  • make the server-safe test globals compatible with read-only global accessors in newer Node versions

Fixes #1987.

Tests

  • npm run lint
  • npm test
  • npm run types

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playlist progresses to next video but does not update duration in the metadata in demo

1 participant