Commit Graph
25 Commits
Author SHA1 Message Date
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>Tom Jenkinson
359197f20b chore(deps): update dependency prettier to v3 (#5646)
* chore(deps): update dependency prettier to v3

* run prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tom Jenkinson <tom@tjenkinson.me>
2023-08-22 11:24:59 +01:00
Rob WalchandGitHub b536883327 Initial selection and level filtering based on preferred codecs and MediaCapabilities (#5704)
* Make initial variant selection based on preferred codec rather than the first variant in the multivariant playlist

* Fix `minAutoLevel` and `ttfb` usage in abandon rules check

* Fix filtering of invalid video-ranges

* Log reason for ignoring start candidates with a particular codec

* Add rendition helper and move SCORE logic into getStartCodecTier

* Add support for MediaCapabilities video configuration filtering
FIxes #5707

* Add support for MediaCapabilities audio configuration filtering
Related to #5704 and #4072

* Add __USE_MEDIA_CAPABILITIES__ build const to remove MediaCapabilities checks from light build

* MediaCapabilities: Assume a framerate of 30fps since decodingInfo will throw with Level default of 0.

* Select variant with alternate video codec on video append error

* Use complete media-parsed codec name when determining if changeType should be appended

* Add `firstAutoLevel` to API.md
2023-08-21 15:24:26 -07:00
Casey OcchialiniandGitHub 4f01724667 Reset the cached clientRect when media is attached (#5070)
* Reset the cached clientRect when media is attached

* Add test for capLevelToPlayerSize event order independence
2022-11-29 12:20:45 -08:00
Michael Hallock 00a1d9632c Makes requested changes for PR 2021-04-16 20:04:50 -04:00
Michael Hallock f0c739a88f Fies tests 2021-03-28 16:21:05 -04:00
Rob Walch c353e56a0a Free up references when destroying player to prevent memory leaks / improve GC
Resolves #2104
2021-03-17 00:38:23 -04:00
Tom Jenkinson 729a36d409 switch to default print width 2020-12-24 13:31:43 +00:00
Tom Jenkinson 7342d4a6db run 'npm run prettier' 2020-12-23 20:15:35 +00:00
Rob Walch 9cb23b3a9a Merge branch 'upstream/master' into feature/v1.0.0
* upstream/master: (63 commits)
  [Security] Bump websocket-extensions from 0.1.3 to 0.1.4
  Bump netlify-cli from 2.52.0 to 2.53.0
  Bump typescript from 3.9.3 to 3.9.5
  Move hosting of "MP3 VOD demo" to fix failing tests
  Improve findFragmentByPTS and fragmentWithinToleranceTest with regards to selecting the next fragment and handling of tiny fragments Fixes #2776
  Bump @babel/core from 7.10.1 to 7.10.2
  Bump @babel/preset-env from 7.10.1 to 7.10.2
  Bump url-toolkit from 2.1.6 to 2.2.0
  Bump @babel/helper-module-imports from 7.8.3 to 7.10.1
  Bump @babel/plugin-proposal-object-rest-spread from 7.9.6 to 7.10.1
  Bump @babel/plugin-proposal-optional-chaining from 7.9.0 to 7.10.1
  Bump @babel/register from 7.9.0 to 7.10.1
  Bump netlify-cli from 2.51.0 to 2.52.0
  Bump @babel/plugin-transform-object-assign from 7.8.3 to 7.10.1
  Bump karma-coverage-istanbul-reporter from 3.0.2 to 3.0.3
  Bump @babel/core from 7.9.6 to 7.10.1
  Bump @babel/preset-env from 7.9.6 to 7.10.1
  Bump @babel/plugin-proposal-class-properties from 7.8.3 to 7.10.1
  Bump @babel/preset-typescript from 7.9.0 to 7.10.1
  Bump @types/mocha from 5.2.7 to 7.0.2
  ...

# Conflicts:
#	.eslintrc.js
#	package-lock.json
#	package.json
#	src/controller/cap-level-controller.ts
#	src/controller/eme-controller.ts
#	src/controller/fragment-finders.ts
#	src/controller/timeline-controller.ts
#	src/loader/fragment.ts
#	src/utils/texttrack-utils.ts
#	tests/functional/auto/setup.js
#	tests/functional/auto/testbench.js
#	tests/test-streams.js
2020-06-08 18:34:59 -04:00
Jamie Stackhouse 050694ff0a Update tests to have a first parameter as the event name. 2020-01-11 02:08:05 -04:00
Rob Walch 40c5d27ac2 Enforce one-var and add prefer-const eslint rules with fixes 2019-09-18 16:26:48 -04:00
John Bartos a6a7c29137 Initial merge (with errors) 2019-09-11 17:59:11 -04:00
John Bartos 2a9d2c957d Fix failing unit test 2019-08-21 14:35:46 -04:00
Darren NolanandJohn Bartos 44257703db Adding the ability for CapLevelController to be enabled/disabled dynamically (#1986)
* Adding the ability for CapLevelController to be enabled/disabled dynamically.

* Updating API docs to include capLevelToPlayerSize as getter/setter.

* Updated documentation to further clarify capLevelToPlayerSize

* Added test to ensure stop capping called when cap level controller destroyed.

* Added test that nextLevelSwitch is called when we stop capping.
2019-03-13 13:11:37 -04:00
John BartosandGitHub 86b4e15d53 Upgrade tests to Chai BDD & optimize runner (#2037)
* Convert tests to Chai BDD

* Invoke mocha with exit so that travis doesnt hang on func test completion
2019-01-25 18:29:37 -05:00
John Bartos cdac095234 Merge remote-tracking branch 'upstream/master' into feature/0.11.1 2018-11-27 12:00:08 -05:00
John BartosandGitHub 4da2107c1b Refactor sourceBuffer estimation to reflect how Hls.js intends to use the parsed manifest (#1993)
* Determine presence of video in a manifest based on number of levels instead of videoCodecFound

* Rework sourceBuffer count estimation to accurately refelct whether a playlist contains altAudio

* Refactor code to better reflect how BUFFER_CODEC events and pending tracks are related
2018-11-26 15:15:31 -05:00
John BartosandGitHub 2d601088f0 Improve unit tests (#173)
Convert unit tests from Node assertions to Chai BDD
2018-11-12 13:51:33 -05:00
John Bartos c44e19cc4d Fix lint rules & errors 2018-08-09 15:05:57 -04:00
Stephan Hesse 3baceab682 autofix lint error in tests 2018-07-23 14:31:56 +02:00
John BartosandGitHub bbc8b36740 Activate level capping only when a video codec is found (#1691)
- Start level capping on `BUFFER_CODECS` if a video codec was found and `MANIFEST_PARSED` previously did not signal a video stream
2018-05-14 14:48:48 -04:00
John Bartos 1efa40a118 Start capping in MANIFEST_PARSED if video codec was signaled 2018-04-30 19:08:06 -04:00
John Bartos 783da89cba Activate level capping only when a video codec is found JW8-1523 2018-04-27 16:27:41 -04:00
Stephan Hesse 4e4b2abf9f fix all auto lint errors 2018-03-05 10:53:55 +01:00
John Bartos b6267fd0f9 Improve cap-level-controller to choose the maximum level by both dimensions and bandwidth 2017-05-12 16:58:09 -04:00