@eluvio/elv-player-js 1.0.134 → 1.0.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/PlayerControls.js +8 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eluvio/elv-player-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.136",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@eluvio/elv-client-js": "^4.0.62",
|
|
40
|
-
"dashjs": "
|
|
40
|
+
"dashjs": "~4.7.0",
|
|
41
41
|
"focus-visible": "^5.2.0",
|
|
42
|
-
"hls.js": "
|
|
42
|
+
"hls.js": "~1.4.12",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
44
|
"resize-observer-polyfill": "^1.5.1",
|
|
45
45
|
"url-join": "^4.0.1"
|
package/src/PlayerControls.js
CHANGED
|
@@ -307,9 +307,11 @@ class PlayerControls {
|
|
|
307
307
|
this.target.style.cursor = "unset";
|
|
308
308
|
};
|
|
309
309
|
|
|
310
|
-
// Play / Pause
|
|
311
|
-
this.video.addEventListener("play",
|
|
312
|
-
this.video.addEventListener("pause",
|
|
310
|
+
// Play / Pause / Volume / Seek events
|
|
311
|
+
this.video.addEventListener("play", PlayerMove);
|
|
312
|
+
this.video.addEventListener("pause", PlayerMove);
|
|
313
|
+
this.video.addEventListener("volumechange", PlayerMove);
|
|
314
|
+
this.video.addEventListener("seeking", PlayerMove);
|
|
313
315
|
|
|
314
316
|
// Mouse events
|
|
315
317
|
this.target.addEventListener("mousemove", PlayerMove);
|
|
@@ -325,10 +327,10 @@ class PlayerControls {
|
|
|
325
327
|
}
|
|
326
328
|
}), 2000);
|
|
327
329
|
|
|
328
|
-
window.addEventListener("blur",
|
|
330
|
+
window.addEventListener("blur", PlayerMove);
|
|
329
331
|
|
|
330
332
|
Array.from(this.target.querySelectorAll("button, input")).forEach(button => {
|
|
331
|
-
button.addEventListener("focus",
|
|
333
|
+
button.addEventListener("focus", PlayerMove);
|
|
332
334
|
});
|
|
333
335
|
|
|
334
336
|
PlayerMove();
|
|
@@ -795,6 +797,7 @@ class PlayerControls {
|
|
|
795
797
|
event.preventDefault();
|
|
796
798
|
break;
|
|
797
799
|
|
|
800
|
+
case "Enter":
|
|
798
801
|
case " ":
|
|
799
802
|
PlayPause(this.video, this.video.paused);
|
|
800
803
|
event.preventDefault();
|