Skip to content

Commit 84cd78d

Browse files
authored
Merge branch 'main' into type-enhancements
2 parents 88aead4 + 9537534 commit 84cd78d

8 files changed

Lines changed: 47 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
NETLIFY_BASE: 'videojs-preview.netlify.app'
1313
runs-on: ubuntu-latest
1414
permissions:
15-
contents: read
15+
contents: write # Required for creating a release
16+
discussions: write # Required for creating a release
1617
id-token: write # Required for provenance
1718
packages: write # Required for publishing
1819
steps:

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
<a name="8.23.3"></a>
2+
## [8.23.3](https://github.com/videojs/video.js/compare/v8.23.2...v8.23.3) (2025-04-16)
3+
4+
### Bug Fixes
5+
6+
* update release workflow `discussion` permission ([#9031](https://github.com/videojs/video.js/issues/9031)) ([1a09554](https://github.com/videojs/video.js/commit/1a09554))
7+
8+
<a name="8.23.2"></a>
9+
## [8.23.2](https://github.com/videojs/video.js/compare/v8.23.1...v8.23.2) (2025-04-16)
10+
11+
### Bug Fixes
12+
13+
* update release workfow permissions ([#9027](https://github.com/videojs/video.js/issues/9027)) ([e0b2521](https://github.com/videojs/video.js/commit/e0b2521))
14+
15+
<a name="8.23.1"></a>
16+
## [8.23.1](https://github.com/videojs/video.js/compare/v8.23.0...v8.23.1) (2025-04-15)
17+
18+
### Bug Fixes
19+
20+
* controlText for text track modal ([#8989](https://github.com/videojs/video.js/issues/8989)) ([751ac56](https://github.com/videojs/video.js/commit/751ac56))
21+
* only change focus from BPB if not tap or mouse click ([#9015](https://github.com/videojs/video.js/issues/9015)) ([76aadfe](https://github.com/videojs/video.js/commit/76aadfe))
22+
* update text-track-cue styles on useractive ([#9023](https://github.com/videojs/video.js/issues/9023)) ([8e1889c](https://github.com/videojs/video.js/commit/8e1889c))
23+
124
<a name="8.23.0"></a>
225
# [8.23.0](https://github.com/videojs/video.js/compare/v8.22.0...v8.23.0) (2025-03-11)
326

@@ -85,7 +108,7 @@
85108

86109
### Features
87110

88-
* Add methods to add and remove <source> elements ([#8886](https://github.com/videojs/video.js/issues/8886)) ([eddda97](https://github.com/videojs/video.js/commit/eddda97)), closes [1000#0](https://github.com/1000/issues/0)
111+
* Add methods to add and remove <source> elements ([#8886](https://github.com/videojs/video.js/issues/8886)) ([eddda97](https://github.com/videojs/video.js/commit/eddda97)), closes [#8886](https://github.com/videojs/video.js/issues/8886)
89112

90113
### Bug Fixes
91114

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Video.js was started in the middle of 2010 and is now used on over ~~50,000~~ ~~
2222
Thanks to the awesome folks over at [Fastly][fastly], there's a free, CDN hosted version of Video.js that anyone can use. Add these tags to your document's `<head>`:
2323

2424
```html
25-
<link href="//vjs.zencdn.net/8.23.0/video-js.min.css" rel="stylesheet">
26-
<script src="//vjs.zencdn.net/8.23.0/video.min.js"></script>
25+
<link href="//vjs.zencdn.net/8.23.3/video-js.min.css" rel="stylesheet">
26+
<script src="//vjs.zencdn.net/8.23.3/video.min.js"></script>
2727
```
2828

2929
Alternatively, you can include Video.js by getting it from [npm](https://videojs.com/getting-started/#install-via-npm), downloading it from [GitHub releases](https://github.com/videojs/video.js/releases) or by including it via [unpkg](https://unpkg.com) or another JavaScript CDN, like CDNjs.
@@ -34,12 +34,12 @@ Alternatively, you can include Video.js by getting it from [npm](https://videojs
3434
<script src="https://unpkg.com/video.js/dist/video.min.js"></script>
3535

3636
<!-- unpkg : use a specific version of Video.js (change the version numbers as necessary) -->
37-
<link href="https://unpkg.com/[email protected].0/dist/video-js.min.css" rel="stylesheet">
38-
<script src="https://unpkg.com/[email protected].0/dist/video.min.js"></script>
37+
<link href="https://unpkg.com/[email protected].3/dist/video-js.min.css" rel="stylesheet">
38+
<script src="https://unpkg.com/[email protected].3/dist/video.min.js"></script>
3939

4040
<!-- cdnjs : use a specific version of Video.js (change the version numbers as necessary) -->
41-
<link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.23.0/video-js.min.css" rel="stylesheet">
42-
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.23.0/video.min.js"></script>
41+
<link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.23.3/video-js.min.css" rel="stylesheet">
42+
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.23.3/video.min.js"></script>
4343
```
4444

4545
Next, using Video.js is as simple as creating a `<video>` element, but with an additional `data-setup` attribute. At a minimum, this attribute must have a value of `'{}'`, but it can include any Video.js [options][options] - just make sure it contains valid JSON!

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "video.js",
33
"description": "An HTML5 video player that supports HLS and DASH with a common API and skin.",
4-
"version": "8.23.0",
4+
"version": "8.23.3",
55
"main": "./dist/video.cjs.js",
66
"module": "./dist/video.es.js",
77
"style": "./dist/video-js.css",

src/js/big-play-button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class BigPlayButton extends Button {
4646
handleClick(event) {
4747
const playPromise = this.player_.play();
4848

49-
// exit early if clicked via the mouse
50-
if (this.mouseused_ && 'clientX' in event && 'clientY' in event) {
49+
// exit early if tapped or clicked via the mouse
50+
if (event.type === 'tap' || this.mouseused_ && 'clientX' in event && 'clientY' in event) {
5151
silencePromise(playPromise);
5252

5353
if (this.player_.tech(true)) {

src/js/tracks/text-track-display.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ class TextTrackDisplay extends Component {
124124
};
125125

126126
player.on('loadstart', (e) => this.toggleDisplay(e));
127+
player.on('useractive', updateDisplayTextHandler);
128+
player.on('userinactive', updateDisplayTextHandler);
127129
player.on('texttrackchange', updateDisplayTextHandler);
128130
player.on('loadedmetadata', (e) => {
129131
this.updateDisplayOverlay();
@@ -262,11 +264,14 @@ class TextTrackDisplay extends Component {
262264
}
263265

264266
/**
265-
* Update the displayed TextTrack when a either a {@link Player#texttrackchange} or
266-
* a {@link Player#fullscreenchange} is fired.
267+
* Update the displayed {@link TextTrack} when either a {@link Player#texttrackchange},
268+
* a {@link Player#fullscreenchange}, a {@link Player#useractive}, or a
269+
* {@link Player#userinactive} is fired.
267270
*
268271
* @listens Player#texttrackchange
269272
* @listens Player#fullscreenchange
273+
* @listens Player#useractive
274+
* @listens Player#userinactive
270275
*/
271276
updateDisplay() {
272277
const tracks = this.player_.textTracks();

src/js/tracks/text-track-settings-controls.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ class TrackSettingsControls extends Component {
1616
super(player, options);
1717

1818
// Create DOM elements
19-
const defaultsDescription = this.localize('restore all settings to the default values');
20-
2119
const resetButton = new Button(player, {
22-
controlText: defaultsDescription,
20+
controlText: this.localize('restore all settings to the default values'),
2321
className: 'vjs-default-button'
2422
});
2523

@@ -28,14 +26,15 @@ class TrackSettingsControls extends Component {
2826

2927
this.addChild(resetButton);
3028

29+
const doneText = this.localize('Done');
3130
const doneButton = new Button(player, {
32-
controlText: defaultsDescription,
31+
controlText: doneText,
3332
className: 'vjs-done-button'
3433
});
3534

3635
// Remove unrequired style classes
3736
doneButton.el().classList.remove('vjs-control', 'vjs-button');
38-
doneButton.el().textContent = this.localize('Done');
37+
doneButton.el().textContent = doneText;
3938

4039
this.addChild(doneButton);
4140
}

0 commit comments

Comments
 (0)