@eluvio/elv-player-js 2.0.41 → 2.0.43

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.
@@ -1,4 +1,4 @@
1
- import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-DtdKAeva.mjs";
1
+ import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-BFZ3lR0c.mjs";
2
2
  class EA {
3
3
  constructor(I) {
4
4
  this.wasm = I;
@@ -629,9 +629,17 @@ export class EluvioPlayer {
629
629
  }
630
630
  }
631
631
 
632
- const profileSettings = (PlayerProfiles[this.playerOptions.playerProfile] || {}).hlsSettings || {};
632
+ let profileSettings = (PlayerProfiles[this.playerOptions.playerProfile] || {}).hlsSettings || {};
633
633
  const customProfileSettings = this.playerOptions.playerProfile === EluvioPlayerParameters.playerProfile.CUSTOM ? this.customHLSOptions : {};
634
634
 
635
+ // Increase maxBufferHole for channels
636
+ if(
637
+ this.sourceOptions.playoutParameters?.channel &&
638
+ Object.keys(customProfileSettings).length === 0
639
+ ) {
640
+ profileSettings.maxBufferHole = 4.2;
641
+ }
642
+
635
643
  this.hlsOptions = {
636
644
  capLevelToPlayerSize: this.playerOptions.capLevelToPlayerSize,
637
645
  xhrSetup: xhr => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "2.0.41",
3
+ "version": "2.0.43",
4
4
  "description": "![Eluvio Logo](lib/static/images/Logo.png \"Eluvio Logo\")",
5
5
  "main": "dist/elv-player-js.es.js",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "@eluvio/elv-client-js": "^4.0.123",
40
40
  "dashjs": "git+https://github.com/elv-zenia/dash.js.git#text-track-fix",
41
41
  "focus-visible": "^5.2.0",
42
- "hls.js": "~1.6.2",
42
+ "hls.js": "1.6.0",
43
43
  "mux-embed": "^4.30.0",
44
44
  "react": "^18.2.0",
45
45
  "react-dom": "^18.2.0",