Commit Graph
240 Commits
Author SHA1 Message Date
Evan Burton e0fbd4108a Bugfix: Patch for light player exception with audio groups (#6342)
* Don't look through audio groups if environment __USE_ALT_AUDIO__ is false
* Update entries 10 -> 13 to add tests to light build
2024-04-10 15:11:31 -07:00
renovate[bot]andTom Jenkinson 3e38f92ae2 chore(deps): replace dependency eslint-plugin-node with eslint-plugin-n 14.0.0 (#6296)
* chore(deps): replace dependency eslint-plugin-node with eslint-plugin-n 14.0.0

* Update references

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tom Jenkinson <tom@tjenkinson.me>
2024-03-30 18:07:52 +00:00
Rob Walch 529fe15024 Fix regression in hls.light.js selection (#6157)
Fixes #6151
2024-01-30 11:10:57 -08:00
Rob Walch 9674f80741 Add MEDIA_ENDED event (forwards "ended" event, or emits when stalling begins near end of VOD) (#6141) 2024-01-26 14:57:41 -08:00
Rob Walch 25eab103d0 Update functional tests to run on Safari using MacOS 13 (#6101)
* Update functional tests to run on Safari using MacOS 13

* Skip smooth switch test in Safari on streams with overlapping appends

* Omit VOD "ended" event tests with overlapping appends from Safari
2024-01-12 08:22:18 +00:00
Rob Walch ce6821a901 SourceBuffer controller cleanup (#5911)
* Cleanup MMS setup, source childen removal, handle muxed ("audiovideo") fmp4 main playlist setup

* Remove MMS `quality` capping and allow for some tolerance in `should buffer up to maxBufferLength` with MMS
2023-10-17 15:33:58 -07:00
renovate[bot]andTom 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 Walch 07db3b9d46 Prefer es5 trailing commas only in demo and tests/functional dirs 2023-08-21 15:38:55 -07:00
Tom Jenkinson 01b2a69100 do not use optional chain operator for functional tests (#5246)
* do not use optional chain operator for functional tests

because they need to be es5

* make both older chrome functional tests required

* also do not use optional chain in testbench

* set the step name to match what it was before
2023-02-20 20:33:28 +00:00
Tom Jenkinson fb959bd564 use optional chaining operator in more places (#5243)
to unblock https://github.com/video-dev/hls.js/pull/5039
2023-02-19 14:57:05 -04:00
Tom Jenkinson 87c3a3538e switch to node 18, unpin netlify-cli, and workaround npm ci then being broken (#5180)
* switch to node 18

which is now LTS

* unpin `netlify-cli`

* use `npm-ci-please` to workaound `npm ci` being broken

fixes #5115

* set version using `npm version`

which will also update the version in the package-lock

* be selective about what goes in artifact

to speed things up

* use newer `npm-ci-please`

* fix setting version on netlify

* fix permission on script

* listen on all interfaces for sauce labs

because otherwise with node 18 the server is not reachable through the proxy for some reason
2023-01-23 17:13:47 +00:00
Rob Walch 7733355c5d Light build optimizations and fixes (#5160) 2023-01-16 21:04:00 -08:00
Rob Walch 6dac6ac83f Log additional information for EOS test (#5130)
#5000
2022-12-21 16:21:36 -08:00
Tom Jenkinson e2a4f61712 sauce labs: switch to W3C WebDriver protocol (#4834)
* sauce labs: switch to W3C WebDriver protocol

see https://docs.saucelabs.com/dev/w3c-webdriver-capabilities/

* update `selenium-webdriver` to 4.4.0

* reenable auto updates for `selenium-webdriver`

* remove `build` from local test

* update min chrome version to 75

because

```
Misconfigured -- Unsupported Browser Version for W3C
[53](https://github.com/video-dev/hls.js/runs/7744598202?check_suite_focus=true#step:8:54)
The browser version selected does not support W3C web protocol tests.
[54](https://github.com/video-dev/hls.js/runs/7744598202?check_suite_focus=true#step:8:55)
To fix this, specify the browser version to be 75 or higher.
[55](https://github.com/video-dev/hls.js/runs/7744598202?check_suite_focus=true#step:8:56)
Or downgrade your test to JWP to test on older browser versions.
```

* skip drm test on chrome 75
2022-08-09 20:15:59 +01:00
Rob Walch 494eaba69a Fix functional test runner setup in Node.js LTS (v16) 2022-07-15 17:11:13 -07:00
Rob Walch ba317bc29b Lint unused vars 2021-04-14 13:38:53 -04:00
Tom Jenkinson 4cf5b1f490 set saucelabs ‘public’ capability (#3719) 2021-04-05 18:16:17 +00:00
Rob Walch d642557792 Do not allow object-shorthand and remove destructuring in functional test scripts (not supported by IE11) 2021-03-31 23:29:07 -04:00
Rob Walch d4c5ffc757 Update README for v1
Add `drift` to public API
Include Promise polyfill in functional tests for IE11 and legacy Edge browsers
2021-03-31 11:31:27 -04:00
Rob Walch 4a3b11bc4b Fix seek to end 'ended' test timeouts 2021-03-30 23:11:19 -04:00
Rob Walch 030193d1b7 Fix functional test TS conversion regression 2021-03-30 22:19:13 -04:00
Rob Walch 974717be3d Fix functional test regression 2021-03-27 13:00:05 -04:00
Tomohiro IKEDA 11538ec513 Merge remote-tracking branch 'upstream/master' into fix/delete-unused-vars 2021-03-26 04:21:45 +09:00
Tomohiro IKEDA d72adf41bf test: Convert to TypeScript 2021-03-26 04:14:05 +09:00
Rob Walch 0341fd7349 Improve fmp4 probing and codecs support
- Fallback to mp4 passthough when probing fails (not mp3 transmux)
- Add 'av01' to video codecs lookup table
- Improve mp4-tools codec parsing TODO and provide codec defaults for hvc1 and av01 segments
Resolves #3669
2021-03-24 15:45:20 -04:00
Rob Walch 874fc7a5cb Skip widevine test stream with Chrome 69
Improve smooth switch test
2021-02-21 22:42:05 -05:00
Rob Walch c456521c3b Run a very small subset of functional tests for the light build
#3493
2021-02-18 12:42:14 -05:00
Rob Walch cd4c841049 Add currentTime to logs for flakey "ended" event functional test 2021-01-22 20:03:22 -05:00
Rob Walch c0769f4703 Add promise-polyfill to demo and functional test runner 2021-01-06 09:45:52 -05:00
Rob Walch 8c431402a8 Fix support for AAC audio-only with no "com.apple.streaming.transportStreamTimestamp" ID3 or DISCONTINUITY tags
http://playertest.longtailvideo.com/adaptive/jazzy/prog_index.m3u8
2020-12-30 00:01:03 -05: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 6a8d72c680 Set media duration when attaching after level update
Fixes cause of intermittent functional test failures (+1 squashed commit)
Improve VOD seek functional test: fail on non-finite duration.
Logging fixes
2020-12-18 22:10:34 -05:00
Rob Walch 94ac7cb673 Update and expose tracks by level group-id
Fixes #2972
2020-12-17 15:03:48 -05:00
Rob Walch a0d120b819 Fix backtracking fragment loading 2020-11-06 13:58:57 -05:00
Rob Walch 7ab39e69c4 Merge branch 'master' into feature/v1.0.0
https://github.com/video-dev/hls.js/compare/d8fd4b1...master
2020-11-04 18:38:50 -05:00
Rob Walch ac9435bdf9 Merge branch 'master' into feature/v1.0.0
* master:
  do not fail test_functional_optional workflow
  Bump sinon from 9.2.0 to 9.2.1
  Bump @typescript-eslint/eslint-plugin from 4.5.0 to 4.6.0
  Bump netlify-cli from 2.65.7 to 2.67.0
  Bump typescript from 4.0.3 to 4.0.5
  Bump eslint from 7.12.0 to 7.12.1
  Bump eslint-config-standard from 15.0.0 to 15.0.1
  stop running functional tests on travis
  configure github actions for PR checks

# Conflicts:
#	package-lock.json
#	tests/functional/auto/setup.js
2020-10-29 12:40:12 -04:00
Tom Jenkinson fbb7ea1b6d configure github actions for PR checks 2020-10-27 21:41:13 +00:00
Rob Walch 10897c072c Merge master into feature/v1.0.0 2020-09-11 18:20:20 -04:00
Rob Walch 299bc1e482 Improve functional test results for trouble-shooting flakey tests 2020-09-11 16:35:29 -04:00
Rob Walch 8d2a076a5d Set sauce job status after test run and on test failure 2020-09-11 03:43:38 -04:00
Rob Walch 3d875834bb Clean up browser version in test run name 2020-09-10 23:39:05 -04:00
Rob Walch fab7413a3e Add TRAVIS_BRANCH to test run name 2020-09-10 23:13:35 -04:00
Rob Walch 1865018113 Update test run name 2020-09-10 22:52:24 -04:00
Rob Walch f61ab8a688 Use npm sauce-connect-launcher in functional tests run on travis 2020-09-10 18:39:16 -04:00
Rob Walch 0426b06a6e Add npm run test:func:sauce task to run tests against remote browser instances 2020-09-10 16:21:43 -04:00
Rob Walch ea9911c158 Merge branch 'upstream/master' into feature/v1.0.0 2020-08-07 15:11:12 -04:00
Rob Walch 33fc01b767 Allow for extra buffered range in seek to end test in stream with bad playlist durations 2020-08-06 18:10:58 -04:00
Rob Walch 929bba1815 Merge branch 'upstream/master' into feature/v1.0.0
* upstream/master:
  Disable flakey smooth switch test on stream with large start gap
  Require min cue duration of 0.25
  Package lock update.
  Minimal Logging on Functional Tests.
  Handle DTS wrapping in initial AVC CTS calculation
  Apply PTSNormalize to ID3 and Text samples to handle timestamp rollover
  Add method to find start pts #2930
  Fix PTS calculation on rollover.
  Bump netlify-cli from 2.58.0 to 2.59.0
  Use ES5 in JavaScript executed by webdriver (for IE11)
  Fix chart fragment rendering issue
  Do not flush audio on audio track switch when both tracks are main variant streams #2837
  Bump @types/mocha from 8.0.0 to 8.0.1
  Bump @babel/plugin-proposal-optional-chaining from 7.10.4 to 7.11.0
  Bump @babel/core from 7.10.5 to 7.11.0
  Improve demo video size menu
  Clear source buffers from chart when new ones are created
  Show multiple demo test tabs using modifier key
  Configure streams for audio and video buffer descrepency in buffer length test
2020-08-04 17:00:08 -04:00
Jamie Stackhouse 0ab4fc6e13 Minimal Logging on Functional Tests. 2020-08-04 00:08:27 -04:00