Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch/v1.4.4 doris #82

Merged
merged 118 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
0d7db5b
reference v1 jsdelivr url in v1 api doc
tjenkinson Apr 12, 2023
aacecab
chore(deps): update dependency @rollup/plugin-alias to v4.0.4
renovate[bot] Apr 12, 2023
df4f46a
Merge pull request #5382 from video-dev/renovate/rollup-plugin-alias-4.x
hlsjs-ci Apr 12, 2023
be37eb8
chore(deps): update dependency @microsoft/api-documenter to v7.21.7
renovate[bot] Apr 12, 2023
cde8f56
Merge pull request #5386 from video-dev/renovate/microsoft-api-docume…
hlsjs-ci Apr 12, 2023
80070b4
chore(deps): update dependency @rollup/plugin-typescript to v11.1.0
renovate[bot] Apr 12, 2023
83d0c6f
Merge pull request #5384 from video-dev/renovate/rollup-plugin-typesc…
hlsjs-ci Apr 12, 2023
abad27c
chore(deps): update dependency @rollup/plugin-node-resolve to v15.0.2
renovate[bot] Apr 12, 2023
b1ba59c
Merge pull request #5383 from video-dev/renovate/rollup-plugin-node-r…
hlsjs-ci Apr 12, 2023
3bd4336
chore(deps): update dependency wrangler to v2.15.0
renovate[bot] Apr 12, 2023
c7ce6b6
Merge pull request #5388 from video-dev/renovate/wrangler-2.x
hlsjs-ci Apr 12, 2023
eb6c74f
chore(deps): update dependency @rollup/plugin-alias to v5
renovate[bot] Apr 12, 2023
c176f5a
Merge pull request #5385 from video-dev/renovate/rollup-plugin-alias-5.x
tjenkinson Apr 12, 2023
8c528d3
Fix readme logos & add Mux logo (#5390)
luwes Apr 12, 2023
c6ef93a
chore(deps): update dependency lint-staged to v13.2.1
renovate[bot] Apr 14, 2023
b0e88cf
Merge pull request #5394 from video-dev/renovate/lint-staged-13.x
hlsjs-ci Apr 14, 2023
9432d5f
chore(deps): update dependency typescript to v5.0.4
renovate[bot] Apr 14, 2023
e2cd057
Merge pull request #5395 from video-dev/renovate/typescript-5.x
hlsjs-ci Apr 15, 2023
7b39d16
chore(deps): update dependency eslint to v8.38.0
renovate[bot] Apr 15, 2023
54707a9
Merge pull request #5396 from video-dev/renovate/eslint-8.x
hlsjs-ci Apr 15, 2023
baf16ed
chore(deps): update dependency es-check to v7.1.1
renovate[bot] Apr 16, 2023
9501245
Merge pull request #5397 from video-dev/renovate/es-check-7.x
hlsjs-ci Apr 16, 2023
7773229
chore(deps): update dependency @rollup/plugin-terser to v0.4.1
renovate[bot] Apr 16, 2023
7782205
Merge pull request #5398 from video-dev/renovate/rollup-plugin-terser…
hlsjs-ci Apr 17, 2023
c4aa95f
chore(deps): update typescript-eslint monorepo to v5.58.0
renovate[bot] Apr 17, 2023
b2e4460
Merge pull request #5399 from video-dev/renovate/typescript-eslint-mo…
hlsjs-ci Apr 17, 2023
507a316
chore(deps): update dependency semver to v7.4.0
renovate[bot] Apr 17, 2023
3dc48f5
Merge pull request #5400 from video-dev/renovate/semver-7.x
hlsjs-ci Apr 18, 2023
6f7deea
chore(deps): update dependency @rollup/plugin-commonjs to v24.1.0
renovate[bot] Apr 18, 2023
4aecfeb
Merge pull request #5401 from video-dev/renovate/rollup-plugin-common…
hlsjs-ci Apr 19, 2023
4398ba2
chore(deps): update dependency semver to v7.5.0
renovate[bot] Apr 19, 2023
e5eca3d
Merge pull request #5404 from video-dev/renovate/semver-7.x
hlsjs-ci Apr 20, 2023
17a8737
chore(deps): update typescript-eslint monorepo to v5.59.0
renovate[bot] Apr 20, 2023
ebd7993
Merge pull request #5405 from video-dev/renovate/typescript-eslint-mo…
hlsjs-ci Apr 20, 2023
a9afcd5
Setup npm provenance statements (#5406)
tjenkinson Apr 20, 2023
ca60d2c
chore(deps): update dependency chromedriver to v112 (#5393)
renovate[bot] Apr 20, 2023
f5c74a4
set `internalChecksAsSuccess` renovate option
tjenkinson Apr 21, 2023
c0a0063
chore(deps): update dependency wrangler to v2.15.1
renovate[bot] Apr 21, 2023
70dbfbe
Merge pull request #5408 from video-dev/renovate/wrangler-2.x
hlsjs-ci Apr 21, 2023
3982190
set renovate `prNotPendingHours` to 0
tjenkinson Apr 21, 2023
be549a8
chore(deps): update dependency wrangler to v2.16.0
renovate[bot] Apr 21, 2023
e741ee3
Merge pull request #5411 from video-dev/renovate/wrangler-2.x
hlsjs-ci Apr 22, 2023
7f98e45
chore(deps): update dependency rollup to v3.20.3
renovate[bot] Apr 23, 2023
21cb856
Merge pull request #5414 from video-dev/renovate/rollup-3.x
hlsjs-ci Apr 23, 2023
8fbdae6
chore(deps): update dependency rollup to v3.20.7
renovate[bot] Apr 23, 2023
48a0e97
Merge pull request #5415 from video-dev/renovate/rollup-3.x
hlsjs-ci Apr 23, 2023
b774318
chore(deps): update dependency rollup to v3.21.0
renovate[bot] Apr 23, 2023
666780e
Merge pull request #5416 from video-dev/renovate/rollup-3.x
hlsjs-ci Apr 24, 2023
0e14626
chore(deps): update tjenkinson/gh-action-auto-merge-dependency-update…
renovate[bot] Apr 24, 2023
569054a
tweak renovate options again
tjenkinson Apr 24, 2023
0b1e939
reset remainderData in resetContiguity (#5410)
WilliamChiu Apr 24, 2023
7802cfc
docs: add Media Chrome for custom UI (#5391)
luwes Apr 26, 2023
77ced53
Perform playlist retries before redundant failover and level switch (…
robwalch Apr 26, 2023
0fb288d
chore(deps): update dependency sinon to v15.0.4
renovate[bot] Apr 27, 2023
badbaa1
Merge pull request #5427 from video-dev/renovate/sinon-15.x
hlsjs-ci Apr 27, 2023
1181cfa
chore(deps): update dependency karma-chrome-launcher to v3.2.0
renovate[bot] Apr 27, 2023
07cca66
Merge pull request #5428 from video-dev/renovate/karma-chrome-launche…
hlsjs-ci Apr 27, 2023
c8e95b6
chore(deps): update dependency selenium-webdriver to v4.9.0
renovate[bot] Apr 28, 2023
163442d
Merge pull request #5429 from video-dev/renovate/selenium-webdriver-4.x
hlsjs-ci Apr 28, 2023
8d142ec
Update audio-track-controller.ts (#5431)
agajassi Apr 28, 2023
3c615c1
chore(deps): update dependency eslint to v8.39.0
renovate[bot] Apr 28, 2023
2d26c77
Merge pull request #5434 from video-dev/renovate/eslint-8.x
hlsjs-ci Apr 28, 2023
ef60b22
chore(deps): update dependency karma to v6.4.2
renovate[bot] Apr 28, 2023
2c2e0e9
Merge pull request #5435 from video-dev/renovate/karma-6.x
hlsjs-ci Apr 29, 2023
10b5f73
chore(deps): update dependency prettier to v2.8.8
renovate[bot] Apr 30, 2023
69e9c1d
Merge pull request #5437 from video-dev/renovate/prettier-2.x
hlsjs-ci Apr 30, 2023
1dd74bb
Fix incorrect HEVC main profile codec id (#5438)
StaZhu May 1, 2023
9082342
fix: move `types` condition to the front (#5439)
Andarist May 1, 2023
1c30a1f
chore(deps): update dependency wrangler to v2.17.0
renovate[bot] May 1, 2023
d7c4ec9
Merge pull request #5441 from video-dev/renovate/wrangler-2.x
hlsjs-ci May 1, 2023
b26542f
chore(deps): update typescript-eslint monorepo to v5.59.1
renovate[bot] May 1, 2023
e70c3aa
Merge pull request #5442 from video-dev/renovate/typescript-eslint-mo…
hlsjs-ci May 1, 2023
31b0b04
chore(deps): update typescript-eslint monorepo to v5.59.2
renovate[bot] May 1, 2023
89ca104
Merge pull request #5443 from video-dev/renovate/typescript-eslint-mo…
hlsjs-ci May 1, 2023
f4629d3
Fix Low-Latency part and fragment tracking (#5423)
robwalch May 3, 2023
4c5bc20
chore(deps): update dependency lint-staged to v13.2.2
renovate[bot] May 3, 2023
4aec275
Merge pull request #5449 from video-dev/renovate/lint-staged-13.x
hlsjs-ci May 3, 2023
2105ade
Always use MediaSource returned by utils module (#5448)
robwalch May 3, 2023
d18b676
chore(deps): update dependency @microsoft/api-documenter to v7.22.0
renovate[bot] May 4, 2023
bb5072e
Merge pull request #5453 from video-dev/renovate/microsoft-api-docume…
hlsjs-ci May 4, 2023
36bc6b9
chore(deps): update dependency @microsoft/api-documenter to v7.22.4
renovate[bot] May 4, 2023
b0a72ff
Merge pull request #5454 from video-dev/renovate/microsoft-api-docume…
hlsjs-ci May 4, 2023
b6d49f2
chore(deps): update babel monorepo to v7.21.5
renovate[bot] May 5, 2023
64db092
Merge pull request #5462 from video-dev/renovate/babel-monorepo
hlsjs-ci May 5, 2023
d28d590
chore(deps): update dependency @microsoft/api-extractor to v7.34.5
renovate[bot] May 5, 2023
90c1659
Merge pull request #5458 from video-dev/renovate/microsoft-api-extrac…
hlsjs-ci May 5, 2023
ddab001
chore(deps): update dependency @babel/core to v7.21.8
renovate[bot] May 5, 2023
dcf4024
Merge pull request #5463 from video-dev/renovate/babel-monorepo
hlsjs-ci May 6, 2023
c591fb7
chore(deps): update dependency @microsoft/api-extractor to v7.34.6
renovate[bot] May 6, 2023
7fa4bbf
Merge pull request #5464 from video-dev/renovate/microsoft-api-extrac…
hlsjs-ci May 6, 2023
bcbdbbf
chore(deps): update dependency @microsoft/api-extractor to v7.34.8
renovate[bot] May 6, 2023
8838613
Merge pull request #5465 from video-dev/renovate/microsoft-api-extrac…
hlsjs-ci May 6, 2023
d5dbe60
chore(deps): update dependency @types/chai to v4.3.5
renovate[bot] May 6, 2023
f6e4693
Merge pull request #5466 from video-dev/renovate/chai-4.x
hlsjs-ci May 6, 2023
67cd7b6
chore(deps): update dependency rollup to v3.21.1
renovate[bot] May 6, 2023
8fe2639
Merge pull request #5467 from video-dev/renovate/rollup-3.x
hlsjs-ci May 6, 2023
8637280
chore(deps): update dependency rollup to v3.21.5
renovate[bot] May 6, 2023
df1cc11
Merge pull request #5468 from video-dev/renovate/rollup-3.x
hlsjs-ci May 6, 2023
8f11b06
chore(deps): update dependency eventemitter3 to v5.0.1
renovate[bot] May 7, 2023
6ae60ad
Merge pull request #5470 from video-dev/renovate/eventemitter3-5.x
hlsjs-ci May 7, 2023
ef718d2
fix: partial audiovideo fragments not being treated as partial (#5460)
TroyKomodo May 8, 2023
9ed55f1
Fix AV desync regression in v1.4.0 when mp4 audio track timestamps st…
robwalch May 9, 2023
d32731e
chore(deps): update dependency wrangler to v2.18.0
renovate[bot] May 9, 2023
54f745f
Merge pull request #5472 from video-dev/renovate/wrangler-2.x
hlsjs-ci May 9, 2023
f22f296
chore(deps): update dependency chromedriver to v112.0.1
renovate[bot] May 9, 2023
989091c
Merge pull request #5474 from video-dev/renovate/chromedriver-112.x
hlsjs-ci May 9, 2023
0f7b5e0
chore(deps): update dependency wrangler to v2.20.0
renovate[bot] May 9, 2023
680947f
Merge pull request #5475 from video-dev/renovate/wrangler-2.x
hlsjs-ci May 9, 2023
fc5e295
Allow live level loading to recover from net::ERR_NETWORK_IO_SUSPENDE…
robwalch May 9, 2023
8befacd
Remove startLoad() as recovery method from API.md doc (#5478)
robwalch May 10, 2023
093a41c
Fix first fragment ejection tracking (#5480)
robwalch May 11, 2023
a58ce98
Provide light ESM dist file (#5486)
Chocobozzz May 16, 2023
ca3a288
Playlist loading errors are fatal after all levels and retries exhaus…
robwalch May 24, 2023
93dae54
Adjust parsed TS AVC samples when start PTS overlaps with last DTS (#…
robwalch May 25, 2023
3152e97
Fix TS probing false positives by requiring 2-3 packet start bytes to…
robwalch May 25, 2023
15d9ef3
Use input timescale when normalizing metadata cue timestamps (#5505)
robwalch May 25, 2023
4c6d174
Merge branch 'patch/v1.4.x-doris' into patch/v1.4.4-doris
yajin2021 May 26, 2023
6d419fd
chore: change package.json
yajin2021 May 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ const configs = Object.entries({
format: FORMAT.umd,
minified: true,
}),
lightEsm: buildRollupConfig({
type: BUILD_TYPE.light,
format: FORMAT.esm,
minified: false,
}),
worker: {
input: './src/demux/transmuxer-worker.ts',
onwarn: (e) => {
Expand Down
39 changes: 19 additions & 20 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ See [API Reference](https://hlsjs-dev.video-dev.org/api-docs/) for a complete li
- [Fourth step: control through `<video>` element](#fourth-step-control-through-video-element)
- [Fifth step: error handling](#fifth-step-error-handling)
- [Fatal Error Recovery](#fatal-error-recovery)
- [`hls.startLoad()`](#hlsstartload)
- [`hls.recoverMediaError()`](#hlsrecovermediaerror)
- [Error recovery sample code](#error-recovery-sample-code)
- [`hls.swapAudioCodec()`](#hlsswapaudiocodec)
Expand Down Expand Up @@ -258,17 +257,19 @@ video.play();

All errors are signalled through a unique single event.

Each error is categorized by:
Each error is categorized by an error type, error details, and whether or not is is `fatal`:

- its type:
- Error Types:
- `Hls.ErrorTypes.NETWORK_ERROR` for network related errors
- `Hls.ErrorTypes.MEDIA_ERROR` for media/video related errors
- `Hls.ErrorTypes.KEY_SYSTEM_ERROR` for EME related errors
- `Hls.ErrorTypes.MUX_ERROR` for demuxing/remuxing related errors
- `Hls.ErrorTypes.OTHER_ERROR` for all other errors
- its details:
- Error Details:
- refer to [Errors details](#Errors)
- its fatality:
- `false` if error is not fatal, hls.js will try to recover it
- `true` if error is fatal, an action is required to (try to) recover it.
- Error is `fatal`:
- `false` if error is not fatal, hls.js will try to recover.
- `true` if error is fatal, all attempts to recover have been performed. See [LoadPolicies](#fragloadpolicy--keyloadpolicy--certloadpolicy--playlistloadpolicy--manifestloadpolicy--steeringmanifestloadpolicy) details on how to configure retries.

Full details are described [below](#Errors)

Expand All @@ -292,11 +293,7 @@ hls.on(Hls.Events.ERROR, function (event, data) {

#### Fatal Error Recovery

hls.js provides means to 'try to' recover fatal network and media errors, through these 2 methods:

##### `hls.startLoad()`

Should be invoked to recover network error.
hls.js provides means to 'try to' recover fatal media errors, through these methods:

##### `hls.recoverMediaError()`

Expand All @@ -308,15 +305,17 @@ Should be invoked to recover media error.
hls.on(Hls.Events.ERROR, function (event, data) {
if (data.fatal) {
switch (data.type) {
case Hls.ErrorTypes.NETWORK_ERROR:
// try to recover network error
console.log('fatal network error encountered, try to recover');
hls.startLoad();
break;
case Hls.ErrorTypes.MEDIA_ERROR:
console.log('fatal media error encountered, try to recover');
hls.recoverMediaError();
break;
case Hls.ErrorTypes.NETWORK_ERROR:
console.error('fatal network error encountered', data);
// All retries and media options have been exhausted.
// Immediately trying to restart loading could cause loop loading.
// Consider modifying loading policies to best fit your asset and network
// conditions (manifestLoadPolicy, playlistLoadPolicy, fragLoadPolicy).
break;
default:
// cannot recover
hls.destroy();
Expand Down Expand Up @@ -1639,13 +1638,13 @@ Static getter: return hls.js dist version number.

## Network Loading Control API

By default, hls.js will automatically start loading quality level playlists, and fragments after `Hls.Events.MANIFEST_PARSED` event has been triggered (and video element has been attached).
By default, hls.js will automatically start loading quality level playlists, and fragments after `Hls.Events.MANIFEST_PARSED` event has been triggered.

However if `config.autoStartLoad` is set to `false`, the following method needs to be called to manually start playlist and fragments loading:
However, if `config.autoStartLoad` is set to `false`, then `hls.startLoad()` needs to be called to manually start playlist and fragments loading.

### `hls.startLoad(startPosition=-1)`

Start/restart playlist/fragment loading. this is only effective if MANIFEST_PARSED event has been triggered and video element has been attached to hls object.
Start/restart playlist/fragment loading. this is only effective if MANIFEST_PARSED event has been triggered.

startPosition is the initial position in the playlist.
If startPosition is not set to -1, it allows to override default startPosition to the one you want (it will bypass hls.config.liveSync\* config params for Live for example, so that user can start playback from whatever position)
Expand Down
Loading