Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Sync #11

Open
wants to merge 381 commits into
base: main-talview
Choose a base branch
from
Open

Sync #11

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
381 commits
Select commit Hold shift + click to select a range
3124fbc
feat: stats for timeToLoadedData, appendsToLoadedData, mainAppendsToL…
brandonocasey May 27, 2021
5405c18
feat: do fast rendition changes on fullscreen changes and user action…
gesinger Jun 9, 2021
44905d4
feat: allow clients to limit the number of times a playlist attempts …
evanfarina Jun 11, 2021
39782c6
feat: Caption services (608/708) metadata (#1138)
gkatsev Jun 11, 2021
0f35f7e
2.9.0
gkatsev Jun 11, 2021
4428e3a
fix: actually default maxPlaylistRetries to Infinity (#1142)
evanfarina Jun 22, 2021
55726af
test: moving average should not decay without new data (#1141)
gkatsev Jun 22, 2021
c22749b
fix: don't decay average bandwidth value if system bandwidth did not …
KVPasupuleti Jun 22, 2021
36a8be4
fix: ts segments that don't define all streams in the first pmt (#1144)
brandonocasey Jun 22, 2021
5c24086
2.9.1
gkatsev Jun 22, 2021
c504b0d
chore: update utils/stats (#1146)
gkatsev Jun 22, 2021
62f9c1c
chore: prevent debugger statement removal and soucemap updating via r…
brandonocasey Jun 23, 2021
063e163
chore: skip playback tests in forks (#1148)
brandonocasey Jun 23, 2021
93b293a
docs: update maxPlaylistRetries outline level
gkatsev Jun 24, 2021
297e2c7
fix: include all master playlists in default audio group (#1149)
brandonocasey Jun 24, 2021
253849a
fix: Prevent skipping frames in adts data via mux.js 5.11.3 (#1153)
brandonocasey Jul 1, 2021
b7942ff
chore: use the new npm cache option when setting up node (#1157)
brandonocasey Jul 6, 2021
1e2f7a4
chore: log transmuxer log events via segment loader (#1155)
brandonocasey Jul 9, 2021
df07176
test: cleanup/dispose transmuxers in tests (#1163)
brandonocasey Jul 12, 2021
1d6bb55
fix: Default to using segmentInfo.trackInfo over this.currentMediaInf…
brandonocasey Jul 13, 2021
d32801a
fix: encode correct video width/height in transmuxed mp4 (#1166)
brandonocasey Jul 14, 2021
bcc2949
2.9.2
brandonocasey Jul 14, 2021
8c10733
fix: Prevent audio groups without a playlist from being requested. (#…
brandonocasey Jul 19, 2021
8868569
2.9.3
brandonocasey Jul 19, 2021
464a365
fix: update vhs-utils to correctly detect mp4 starting with moof/moov…
brandonocasey Jul 26, 2021
b3d1ec0
test: refactor tests so that players/blob urls/ and media elements ar…
brandonocasey Jul 27, 2021
a0c0359
feat: add experimental pixel diff selector behind a flag defaulted of…
brandonocasey Jul 27, 2021
67a1201
feat: Add experimentalExactManifestTimings which forgoes TIME_FUDGE_F…
brandonocasey Jul 27, 2021
5f60612
chore: add tests/sources for manifest object urls (#1168)
brandonocasey Jul 27, 2021
de5baa7
fix: exclude playlists on DRM key status of output-restricted (#1171)
brandonocasey Jul 28, 2021
413fee3
fix: Generate the correct number of segments for segment template mul…
brandonocasey Jul 28, 2021
a11f258
2.10.0
brandonocasey Jul 28, 2021
55f0bde
chore: update the demo page (#1184)
gkatsev Aug 17, 2021
ff34277
chore: consistent source selection on demo start (#1185)
brandonocasey Aug 17, 2021
e8230a9
chore: add a github-release action to automate github releases on ver…
brandonocasey Aug 17, 2021
8b3533c
fix: keep media update timeout alive so live playlists can recover fr…
brandonocasey Aug 17, 2021
eef29d4
chore: various demo page fixes and enhancements (#1186)
brandonocasey Aug 17, 2021
d53fa6c
2.10.1
brandonocasey Aug 17, 2021
37b4b04
fix: update mpd-parser and mux.js to fix an xmldom vulnerability (#1190)
brandonocasey Aug 24, 2021
269f66e
2.10.2
brandonocasey Aug 24, 2021
9aeb77b
fix: only register reloadSourceOnError once (#1191)
brandonocasey Aug 31, 2021
61b8eef
fix: We should skip gaps that are seeked into. (#1192)
brandonocasey Sep 3, 2021
8160019
2.10.3
brandonocasey Sep 3, 2021
1517386
test: fix ie 11 race condition in tests (#1200)
brandonocasey Sep 15, 2021
a8d3c1a
fix: use URL to add searchParams for LLHLS (#1199)
brandonocasey Sep 15, 2021
324af10
fix: mark global/window/document as external globals (#1205)
gkatsev Sep 22, 2021
9d6505a
fix: Only check/fix bad seeks after seeking, without seeked, and an a…
brandonocasey Sep 22, 2021
6d0cbd1
test: skip test on ie 11 (#1206)
brandonocasey Sep 22, 2021
e2b46e7
feat: Add ability to pass encoding value for 708 captions via caption…
alex-barstow Sep 22, 2021
0dc0b61
fix: do not try to save expired segment information for gaps greater …
jontsnz Sep 22, 2021
7566ca0
chore: upgrade to node 14 (#1207)
gkatsev Sep 22, 2021
14b8a7b
2.11.0
gkatsev Sep 22, 2021
a83ea37
fix: reset transmuxer in resetEverything to fix seeking backwards in …
brandonocasey Oct 14, 2021
fc83109
chore: add mux's ll-hls test stream (#1214)
gkatsev Oct 14, 2021
7420296
fix(package): update mpd-parser to 0.19.2 (#1211)
gkatsev Oct 14, 2021
d7f6b63
fix(package): update mux.js to 5.14.1 (#1215)
brandonocasey Oct 14, 2021
1fe2df1
2.11.1
brandonocasey Oct 14, 2021
bf4a458
fix: Various fixes for llhls so that we start closer to live, and sta…
brandonocasey Oct 20, 2021
25c33ca
2.11.2
gkatsev Oct 27, 2021
061cf3c
feat: Add an option to use the NetworkInformation API, when available…
evanfarina Nov 8, 2021
aaedde3
test: Don't run networkInfo tests against ie11 (#1221)
evanfarina Nov 8, 2021
cf9451f
2.12.0
gkatsev Nov 8, 2021
4f9ce7a
fix: support legacy hls option for overrideNative (#1222)
gkatsev Nov 16, 2021
bfd0ad0
fix: mp4 sources that use bigint numbers (#1217)
brandonocasey Nov 29, 2021
3d8755c
fix: fix seekable not updating after the first change for live stream…
gesinger Dec 10, 2021
7495ead
test: add a test to verify that seekable updates with a live stream (…
gkatsev Dec 10, 2021
b66e124
test(playack): make live dash test take 5 seconds (#1235)
gkatsev Dec 10, 2021
630218f
2.12.1
gkatsev Dec 10, 2021
f109078
feat: use new mpd-parser API for handling live DASH refreshes (#1231)
gesinger Dec 17, 2021
3ed24a4
feat: set up required key sessions on waitingforkey event (#1232)
gesinger Dec 20, 2021
159545c
test: fix failing IE11 test due to late initialize of EME keys (#1241)
gesinger Dec 20, 2021
4800b25
2.13.0
gesinger Dec 20, 2021
aed1931
fix(package): update mux.js to 6.0.1 (#1242)
gesinger Dec 20, 2021
0964cb4
2.13.1
gesinger Dec 20, 2021
211cbe8
fix: clarify hls option deprecation warning (#1257)
gkatsev Mar 2, 2022
42fe383
docs: add A Walk Through VHS (#1253)
gesinger Mar 14, 2022
450eb2d
feat: add dts-based timestamp offset calculation with feature toggle …
dzianis-dashkevich Mar 14, 2022
073c2ca
2.14.0
misteroneill Mar 14, 2022
e492fe8
fix: ArrayBuffer.isView may not be available everywhere (#1258)
gkatsev Apr 5, 2022
b98877d
2.14.1
gkatsev Apr 6, 2022
5fbac16
fix: retain playlist attributes when refreshing live media playlists …
mister-ben Apr 13, 2022
8013830
2.14.2
mister-ben Apr 13, 2022
44c12ea
chore: update karma-config to 8 to drop ie11 and older browsers (#1227)
gkatsev Dec 1, 2021
3ad3120
feat: remove handleManifestRedirects and always use XHR.responseURL i…
gkatsev Dec 15, 2021
43fce26
fix: remove deprecation hls options, properties, and events; add migr…
gkatsev Dec 15, 2021
6041014
refactor: Remove deprecated smooth quality change (#1268)
harisha-swaminathan Jun 3, 2022
f85c153
feat: Skip gaps immediately (#1267)
harisha-swaminathan Jun 3, 2022
d79d783
refactor: rename 'blacklist' to 'exclude' (#1274)
harisha-swaminathan Jun 23, 2022
325a98e
fix: add Video.js 8 to the dep version range (#1307)
gkatsev Aug 15, 2022
5ba3a77
chore: remove old-index since IE is no longer supported (#1308)
gkatsev Aug 16, 2022
206f099
feat: update tooling to remove ie 11 transpiling, update tests (#1306)
alex-barstow Aug 17, 2022
54cbab3
feat: rename many things to `main` (#1309)
gkatsev Aug 17, 2022
c7aa9c1
chore: update package-lock.json (#1319)
gkatsev Aug 17, 2022
02c3c77
feat: enable LLHLS support by default and remove experimental prefix …
kchang-brightcove Aug 19, 2022
ca3162b
refactor: clean up parameters of excludePlaylist (#1304)
gesinger Aug 19, 2022
128b3d7
test: change source for live DASH playback test to fix test failures …
gesinger Aug 19, 2022
9ae6695
chore(package): update dependencies to use new ES6 builds (#1320)
misteroneill Aug 19, 2022
6100750
chore(docs): Remove outdated information in collaborators' guide (#1271)
mister-ben May 2, 2022
66a5b17
fix: cache aes keys for text tracks (#973) (#1228)
phloxic May 26, 2022
57c0e72
test: fix IE11 encrypted VTT tests by using an actual encrypted VTT s…
gesinger Jul 6, 2022
1c62a98
fix: output-restricted event handling for unplayable streams (#1305)
alex-barstow Aug 17, 2022
8954a40
3.0.0-0
misteroneill Aug 19, 2022
b9d26e5
feat: add compatibility layer for video.js 7 and 8 (#1322)
misteroneill Aug 24, 2022
1806b46
chore: update package-lock
gkatsev Sep 14, 2022
fd2898f
feat: add frameRate property to the representation class. (#1289)
gjanblaszczyk Sep 14, 2022
fe15751
chore(package): update m3u8-parser to v6.0.0 (#1330)
Essk Sep 30, 2022
465a6a1
3.0.0-1
Essk Sep 30, 2022
4ee1006
3.0.0-2
Essk Sep 30, 2022
7ff95b9
chore: update mpd-parser (#1337)
mister-ben Oct 21, 2022
969589e
fix: resume loading on segment timeout for `bufferBasedABR` (#1333)
gesinger Nov 18, 2022
cf340f2
fix: Restart mainPlaylistLoader after media change (#1339)
alex-barstow Nov 18, 2022
afb1ff7
3.0.0
misteroneill Nov 21, 2022
d7e8713
fix: Linear DASH multiperiod label issue (#1352)
adrums86 Dec 20, 2022
6ba70e0
Fix: In-manifest VTT iOS MSE issue (#1360)
dzianis-dashkevich Jan 24, 2023
d14730e
3.0.1
adrums86 Jan 24, 2023
343f682
chore(changelog): add missing bug fix (#1362)
adrums86 Feb 23, 2023
1bd22c9
chore: update mux.js (#1372)
adrums86 Feb 24, 2023
7c3e08e
fix: CMAF HLS. Source buffer change type is called with wrong codecs …
dzianis-dashkevich Feb 27, 2023
0890578
3.0.2
Feb 27, 2023
e5b4bf6
chore: npm publish for release workflow (#1376)
dzianis-dashkevich Mar 1, 2023
906f29e
feat: add fmp4 emsg ID3 support (#1370)
adrums86 Mar 6, 2023
ce7edd9
3.1.0
adrums86 Mar 7, 2023
93a2bfd
feat: Remove remnants of IE and old Edge (#1343)
mister-ben Mar 15, 2023
12acbdd
refactor: remove nested loop from removeDuplicateCuesFromTrack functi…
alex-barstow Mar 20, 2023
915bdee
chore: update mpd-parser to 1.1.0 (#1384)
adrums86 Mar 20, 2023
d258fae
fix: error on undefined metadata frames (#1383)
adrums86 Mar 23, 2023
369ee66
chore(package): update dependencies to de-dupe m3u8-parser in the tre…
misteroneill Mar 31, 2023
9520070
chore: update mpd-parser to 1.1.1 (#1387)
adrums86 Apr 1, 2023
c90863c
fix: allow audio fmp4 emsg probe (#1385)
adrums86 Apr 1, 2023
6bd98d0
feat: add an option to support forced subtitles (#1329)
amtins Apr 3, 2023
f6b9498
feat: add event stream support (#1382)
adrums86 Apr 3, 2023
b4f44e4
fix(docs): Remove confusion around including VHS separately (#1367)
mister-ben Apr 4, 2023
e6d8b08
fix: use audio offset for id3 with audio-only (#1386)
mister-ben Apr 4, 2023
bdd842a
3.2.0
adrums86 Apr 4, 2023
2356c34
feat(xhr): add request and response hook API (#1393)
adrums86 May 3, 2023
b3a508d
feat: Start at offset from EXT-X-START (#1389)
mister-ben May 3, 2023
d28a33b
3.3.0
adrums86 May 3, 2023
19539ea
fix: onRequest hooks called too late (#1396)
adrums86 May 15, 2023
12b378a
chore: Update CI and release workflows (#1397)
philjhale May 15, 2023
f557851
3.3.1
adrums86 May 15, 2023
0026717
chore(package): update m3u8-parser v6.2.0 (#1403)
adrums86 May 25, 2023
f9a392f
feat: add support for independentSegments (#1399)
adrums86 May 25, 2023
3580d1e
fix(llhls): watcher causes playback failure (#1398)
adrums86 May 25, 2023
a21182d
3.4.0
adrums86 Jun 1, 2023
fe25a04
chore: update m3u8-parser version and fix tests (#1407)
harisha-swaminathan Jul 11, 2023
7c0e968
feat: add daterange support (#1402)
harisha-swaminathan Jul 24, 2023
3c5a5bc
feat: enable caption positioning (#1408)
wseymour15 Jul 24, 2023
2079454
refactor: add dateTimeObject and dateTimeString to Cues for backward …
harisha-swaminathan Jul 24, 2023
0d8a7a3
fix(live): only reset playlist loader for LLHLS (#1410)
adrums86 Jul 25, 2023
a9ff947
3.5.0
harisha-swaminathan Jul 25, 2023
9723e6d
fix(live): cue end time not finite (#1411)
adrums86 Jul 25, 2023
4153b8a
3.5.1
adrums86 Jul 26, 2023
5e425c0
fix: restore dateTimeObject and dateTimeString usage (#1412)
harisha-swaminathan Aug 7, 2023
de183c8
3.5.2
harisha-swaminathan Aug 7, 2023
323bb32
fix: remove segment loader abort in setCurrentTime (#1415)
adrums86 Aug 14, 2023
bf0a300
fix: reduce playlist exclusion defaults (#1413)
adrums86 Aug 14, 2023
4590bdd
fix: fastQualityChange refactor (#1414)
adrums86 Aug 14, 2023
4ca3cab
fix: demo page representation selector (#1416)
adrums86 Aug 14, 2023
6cdf147
3.5.3
Aug 14, 2023
c246ca1
chore: update mpd-parser to v1.2.1 (#1420)
wseymour15 Aug 16, 2023
9ab8c88
chore: update mpd-parser to v1.2.2 (#1422)
wseymour15 Aug 30, 2023
86d5327
feat: request Content Steering manifest (#1419)
adrums86 Aug 30, 2023
04451d4
feat: content steering demo page tab (#1425)
adrums86 Sep 6, 2023
2355ddc
feat: Add feature flag to calculate timestampOffset for each segment …
dzianis-dashkevich Sep 25, 2023
c94c8dd
3.6.0
Sep 25, 2023
dd5e2af
feat: content steering switching (#1427)
wseymour15 Sep 26, 2023
53edf72
fix: clamp seekable end (#1433)
dzianis-dashkevich Oct 12, 2023
fcd2e8a
fix: fmp4 captions regression (#1434)
adrums86 Oct 12, 2023
2eedfba
chore: update mux.js to v7.0.1 (#1435)
wseymour15 Oct 12, 2023
409e8f2
3.7.0
wseymour15 Oct 12, 2023
beccfa1
fix: wrap onwarn values in a message object (#1428)
ianjaku Oct 18, 2023
719b7f4
fix: prevent wrapping in resetMainLoaderReplaceSegments (#1439)
pulsejet Oct 30, 2023
532aa4d
fix: content steering bug fixes and tests (#1430)
adrums86 Nov 7, 2023
731058b
feat: Content Steering HLS Pathway Cloning (#1432)
wseymour15 Nov 7, 2023
cc22082
docs: add docs for content steering (#1442)
adrums86 Nov 20, 2023
dc78d78
fix: use startTime instead of 0 for finiteDuration (#1448)
adrums86 Nov 21, 2023
9f2a4de
feat: public function for updating VHS options (#1446)
wseymour15 Nov 21, 2023
f294133
chore: fix tests, remove qunit only (#1449)
dzianis-dashkevich Nov 27, 2023
28413f8
fix: Do not call load after mediachange for hls playlist loader (#1447)
dzianis-dashkevich Nov 27, 2023
b22f6f1
chore: Update mux.js 7.0.1 to 7.0.2 (#1450)
dzianis-dashkevich Nov 27, 2023
af39ba5
fix: replaceSegmentsUntil flag resetting too early (#1444)
adrums86 Nov 27, 2023
3bbc6ef
fix: fix several issues with calculate timestamp offset for each segm…
dzianis-dashkevich Nov 28, 2023
b4dd748
fix: check for transmuxer for vtt-segment-loader (#1452)
dzianis-dashkevich Nov 28, 2023
a5579b0
fix: Always use VOD sync-point for VOD streams (#1456)
dzianis-dashkevich Nov 30, 2023
a891580
docs: Update arch.md (#1459)
gkatsev Dec 1, 2023
e304c20
feat: media-sequence sync strategy, remove calculateTimestampOffsetFo…
dzianis-dashkevich Dec 4, 2023
c726760
3.8.0
Dec 4, 2023
39dbe77
chore: update mpd-parser to v1.3.0 (#1461)
adrums86 Dec 13, 2023
7d7c639
feat: enable playlists with 'usable' keystatus (#1460)
adrums86 Dec 13, 2023
2878b27
3.9.0
adrums86 Dec 14, 2023
88a5671
fix: toLowerCase keyIds from manifest and use fastQualityChange (#1466)
adrums86 Dec 18, 2023
7debc17
fix: select next if we are at the of the current segment (#1467)
dzianis-dashkevich Dec 19, 2023
f12c197
fix: keyId filtering loadedplaylist listener and improvements (#1468)
adrums86 Dec 21, 2023
455b020
fix: Account for difference between duration info in the playlist and…
dzianis-dashkevich Dec 27, 2023
da10a36
3.9.1
Jan 2, 2024
8e8a341
feat: handle rollover for VTT cues (#1472)
dzianis-dashkevich Jan 12, 2024
e2ab570
fix: Check if change to the provided type is supported (#1463) (#1475)
dzianis-dashkevich Jan 16, 2024
ceb780a
3.10.0
Essk Jan 17, 2024
5b87f69
feat: add request types (#1479)
dzianis-dashkevich Jan 24, 2024
8f3a4d1
feat: error type enhancement (#1478)
wseymour15 Jan 25, 2024
823f072
fix: fix repeated segments issue during bandwidth update (#1477)
dzianis-dashkevich Jan 25, 2024
dbd022b
3.11.0
wseymour15 Jan 25, 2024
64376db
chore: Replace old quality selector (#1482)
mister-ben Feb 3, 2024
4e51778
fix: changeType on full codec change only (#1474)
adrums86 Feb 3, 2024
ef71ff3
3.11.1
Feb 12, 2024
75f7b1a
revert: "fix: fix repeated segments issue during bandwidth update (#1…
dzianis-dashkevich Feb 21, 2024
39a5622
3.11.2
Feb 21, 2024
ed8f6bd
fix: fix repeated segments (#1489)
dzianis-dashkevich Feb 28, 2024
e46247f
3.11.3
Feb 28, 2024
c50ba7e
chore(demo): Remove error on iOS on demo page (#1493)
mister-ben Feb 28, 2024
0e9d9d8
feat: Custom Pixel Ratio (#1497)
wseymour15 Mar 8, 2024
bebcafd
chore: update mux.js to v7.0.3 (#1498)
wseymour15 Mar 12, 2024
ddc9374
3.12.0
wseymour15 Mar 12, 2024
f5d1209
fix: llHLS does not need forcedTimestampOffset (#1501)
adrums86 Apr 2, 2024
e50ecb1
fix: enableFunction not passing playlist to fastQualityChange (#1502)
adrums86 Apr 4, 2024
e4acc57
docs: removing duplicated step (#1476)
bzenky Apr 12, 2024
be289f6
3.12.1
adrums86 Apr 16, 2024
bdfe0e0
fix: use paren media sequence sync for audio and vtt, since they are …
dzianis-dashkevich Apr 22, 2024
b6ff608
3.12.2
Apr 22, 2024
c94a230
feat: streaming events and errors (#1508)
adrums86 May 16, 2024
e46ba74
chore: update contrib-eme to v5.3.1 (#1512)
adrums86 May 17, 2024
5f2af5f
3.13.0
adrums86 May 21, 2024
a542ec8
fix: requestId init tag (#1518)
adrums86 Jun 12, 2024
0a7a362
3.13.1
adrums86 Jun 12, 2024
d6851cc
fix: videoTimestampOffset in sourceUpdater (#1519)
adrums86 Jun 14, 2024
bb9133c
chore: Update codecov action (#1523)
mister-ben Jul 4, 2024
0b4da7c
chore: Add log export to the demo page (#1522)
mister-ben Jul 10, 2024
28cb9fd
fix: fastQualitySwitch stability (#1525)
adrums86 Jul 17, 2024
e3d1c42
chore: Switch to our quality selector (#1527)
mister-ben Jul 19, 2024
7c63f4e
fix: bad timeline changes (#1526)
adrums86 Jul 22, 2024
7ec606f
fix: remove extra abort call (#1528)
adrums86 Jul 22, 2024
d23539a
3.13.2
adrums86 Jul 22, 2024
876ed8c
fix: audio segment on incorrect timeline (#1530)
wseymour15 Aug 12, 2024
7083c5e
3.13.3
wseymour15 Aug 12, 2024
1ecf115
fix: Resolve issue where live dash manifests without audio would hang…
mwaltza Aug 23, 2024
dba1b79
chore: update m3u8-parser, vhs-utils and aes-decrypter (#1535)
mister-ben Aug 23, 2024
247047a
feat: Add experimental support for ManagedMediaSource (#1453)
mister-ben Aug 23, 2024
11a159e
3.14.0
mister-ben Aug 23, 2024
2125ecf
fix: allow vtt rollover with MPEGTS of 0 (#1537)
adrums86 Aug 30, 2024
96a3dc5
3.14.1
adrums86 Sep 9, 2024
e4e0c2d
fix: audio segment on incorrect timeline HLS (#1539)
wseymour15 Sep 11, 2024
f6a4f79
3.14.2
Essk Sep 17, 2024
bfc17b4
feat: Add Airplay support when overriding native HLS in Safari/iOS (#…
alex-barstow Oct 9, 2024
ae1ae70
feat: Add support for ManagedMediaSource 'startstreaming' and 'endstr…
alex-barstow Oct 9, 2024
a9dd790
chore: update mpd-parser to v1.3.1 (#1544)
wseymour15 Oct 9, 2024
8456cb3
3.15.0
wseymour15 Oct 10, 2024
9f1c4ad
feat: parse mp4 webvtt segments (#1545)
adrums86 Oct 29, 2024
6b4b7e2
fix: issues with live playback timing (#1553)
alex-barstow Nov 18, 2024
2f8d0af
3.16.0
alex-barstow Nov 18, 2024
6fe7d9c
fix: multi-period DASH VOD fixes (#1551)
dzianis-dashkevich Nov 21, 2024
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Before opening an issue see if your problem can be resolved with the [troublesho

## Description
Briefly describe the issue.
Include a [reduced test case](https://css-tricks.com/reduced-test-cases/), we have a [starter template](https://jsbin.com/gejugat/edit?html,output) on JSBin you can use.
Include a [reduced test case](https://css-tricks.com/reduced-test-cases/), we have a [starter template](https://codepen.io/gkatsev/pen/GwZegv) on JSBin you can use.

## Sources
Is a certain source or a certain segment affected? please provide a public (accessible over the internet) link to it below.
Expand Down
92 changes: 92 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: ci

on: [push, pull_request]

jobs:
should-skip:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should-skip-job: ${{steps.skip-check.outputs.should_skip}}
steps:
- id: skip-check
uses: fkirc/[email protected]
with:
github_token: ${{github.token}}

# generate our test-type matrix, forks should not run playback tests
test-type-matrix:
runs-on: ubuntu-latest
outputs:
test-type: ${{steps.test-type-fork.outputs.test_type || steps.test-type.outputs.test_type}}
steps:
- id: test-type-fork
if: ${{github.event.pull_request.head.repo.fork}}
run: echo 'test_type=["unit", "coverage"]' >> $GITHUB_OUTPUT
- id: test-type
if: ${{!github.event.pull_request.head.repo.fork}}
run: echo 'test_type=["unit", "playback", "playback-min", "coverage"]' >> $GITHUB_OUTPUT


ci:
needs: [should-skip, test-type-matrix]
# 1. always run tests on main, otherwise skip tests if should-skip is true.
if: ${{github.ref == 'refs/heads/main' || needs.should-skip.outputs.should-skip-job != 'true'}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
test-type: ${{fromJson(needs.test-type-matrix.outputs.test-type)}}
env:
BROWSER_STACK_USERNAME: ${{secrets.BROWSER_STACK_USERNAME}}
BROWSER_STACK_ACCESS_KEY: ${{secrets.BROWSER_STACK_ACCESS_KEY}}
CI_TEST_TYPE: ${{matrix.test-type}}
runs-on: ${{matrix.os}}
steps:
- name: checkout code
uses: actions/checkout@v3

- name: read node version from .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
shell: bash
id: nvm

- name: update apt cache on linux w/o browserstack
run: sudo apt-get update
if: ${{startsWith(matrix.os, 'ubuntu')}}

- name: install ffmpeg/pulseaudio for firefox on linux w/o browserstack
run: sudo apt-get install ffmpeg pulseaudio
if: ${{startsWith(matrix.os, 'ubuntu')}}

- name: start pulseaudio for firefox on linux w/o browserstack
run: pulseaudio -D
if: ${{startsWith(matrix.os, 'ubuntu')}}

- name: setup node
uses: actions/setup-node@v3
with:
node-version: '${{steps.nvm.outputs.NVMRC}}'
cache: npm

# turn off the default setup-node problem watchers...
- run: echo "::remove-matcher owner=eslint-compact::"
- run: echo "::remove-matcher owner=eslint-stylish::"
- run: echo "::remove-matcher owner=tsc::"

- name: npm install
run: npm i --prefer-offline --no-audit

- name: run npm test
uses: coactions/setup-xvfb@v1
with:
run: npm run test

- name: coverage
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
files: './test/dist/coverage/coverage-final.json'
fail_ci_if_error: true
if: ${{startsWith(env.CI_TEST_TYPE, 'coverage')}}
76 changes: 76 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: release
on:
push:
tags:
# match semver versions
- "v[0-9]+.[0-9]+.[0-9]+"
# match semver pre-releases
- "v[0-9]+.[0-9]+.[0-9]+-*"
jobs:
release:
env:
NETLIFY_BASE: 'videojs-http-streaming.netlify.app'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# We neeed to fetch the entire history as conventional-changelog needs
# access to any number of git commits to build the changelog.
with:
fetch-depth: 0

- name: read node version from .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
shell: bash
id: nvm

- name: setup node
uses: actions/setup-node@v3
with:
node-version: '${{steps.nvm.outputs.NVMRC}}'
cache: npm
# this line is required for the setup-node action to be able to run the npm publish below.
registry-url: 'https://registry.npmjs.org'

- name: npm install
run: npm i --prefer-offline --no-audit

# publish runs build for us via a prepublishOnly script
- name: npm release
run: npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Check if this is a pre-release
run: echo "IS_PRE_RELEASE=$(npx -p not-prerelease is-prerelease && echo "true" || echo "false")" >> $GITHUB_OUTPUT
id: pre-release-check

- name: truncate CHANGELOG.md so that we can get the current versions changes only
run: truncate -s 0 CHANGELOG.md

- name: Generate current release changelog
run: npx -p @videojs/update-changelog vjs-update-changelog --run-on-prerelease

- name: get dashed package version for netlify
run: echo "VERSION=$(node -e "process.stdout.write(require('./package.json').version.split('.').join('-'))")" >> $GITHUB_OUTPUT
id: get-version
shell: bash
if: env.NETLIFY_BASE != ''

- name: add netlify preview to release notes
run: |
echo "" >> CHANGELOG.md
echo "[netlify preview for this version](https://v${{steps.get-version.outputs.VERSION}}--${{env.NETLIFY_BASE}})" >> CHANGELOG.md
if: env.NETLIFY_BASE != ''

- name: Create Github release
uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG.md
token: ${{github.token}}
prerelease: ${{steps.pre-release-check.outputs.IS_PRE_RELEASE}}
files: |
dist/**/*.js
dist/**/*.css
discussion_category_name: Releases

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/dubnium
14
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

Loading