bigscreen-player 8.2.3 → 8.2.4

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,5 +1,5 @@
1
1
  import { fromXML, generateISD, renderHTML } from 'smp-imsc';
2
- import { f as findSegmentTemplate, L as LoadUrl, a as DebugToolInstance, P as Plugins, U as Utils, D as DOMHelpers } from './main-73f2cc27.js';
2
+ import { f as findSegmentTemplate, L as LoadUrl, a as DebugToolInstance, P as Plugins, U as Utils, D as DOMHelpers } from './main-9f5984e2.js';
3
3
 
4
4
  const SEGMENTS_BUFFER_SIZE = 3;
5
5
  const LOAD_ERROR_COUNT_MAX = 3;
@@ -1,4 +1,4 @@
1
- import { D as DOMHelpers, a as DebugToolInstance, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-73f2cc27.js';
1
+ import { D as DOMHelpers, a as DebugToolInstance, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-9f5984e2.js';
2
2
 
3
3
  /**
4
4
  * Safely checks if an attribute exists on an element.
@@ -672,7 +672,8 @@ class DebugViewController {
672
672
  return Object.assign(Object.assign({}, entry), { category: "union", kind: "media-element-state", data: Object.assign(Object.assign({}, prevData), { [kind]: data }) });
673
673
  }
674
674
  cacheEntry(entry) {
675
- switch (entry.category) {
675
+ const { category } = entry;
676
+ switch (category) {
676
677
  case EntryCategory.METRIC:
677
678
  return this.cacheStaticEntry(this.isMerged(entry) ? this.mergeMediaState(entry) : entry);
678
679
  case EntryCategory.MESSAGE:
@@ -681,9 +682,7 @@ class DebugViewController {
681
682
  if (this.dynamicEntries.length >= DYNAMIC_ENTRY_LIMIT) {
682
683
  this.dynamicEntries = this.dynamicEntries.slice(-DYNAMIC_ENTRY_LIMIT);
683
684
  }
684
- return;
685
- default:
686
- throw new TypeError("Unrecognised entry type");
685
+ break;
687
686
  }
688
687
  }
689
688
  cacheStaticEntry(entry) {
@@ -5941,7 +5940,7 @@ BasicStrategy.getLiveSupport = () => LiveSupport.SEEKABLE;
5941
5940
  function StrategyPicker() {
5942
5941
  return new Promise((resolve, reject) => {
5943
5942
  if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
5944
- return import('./msestrategy-1d2f62f6.js')
5943
+ return import('./msestrategy-d0523552.js')
5945
5944
  .then(({ default: MSEStrategy }) => resolve(MSEStrategy))
5946
5945
  .catch(() => {
5947
5946
  reject({ error: "strategyDynamicLoadError" });
@@ -6388,7 +6387,7 @@ function CallCallbacks(callbacks, data) {
6388
6387
  }
6389
6388
  }
6390
6389
 
6391
- var Version = "8.2.3";
6390
+ var Version = "8.2.4";
6392
6391
 
6393
6392
  var sourceList;
6394
6393
  var source;
@@ -7739,7 +7738,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
7739
7738
 
7740
7739
  if (available()) {
7741
7740
  if (useLegacySubs) {
7742
- import('./legacysubtitles-01c656c7.js')
7741
+ import('./legacysubtitles-50fe640e.js')
7743
7742
  .then(({ default: LegacySubtitles }) => {
7744
7743
  subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
7745
7744
  callback(subtitlesEnabled);
@@ -7748,7 +7747,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
7748
7747
  Plugins.interface.onSubtitlesDynamicLoadError();
7749
7748
  });
7750
7749
  } else {
7751
- import('./imscsubtitles-1ea8981b.js')
7750
+ import('./imscsubtitles-eb0982a5.js')
7752
7751
  .then(({ default: IMSCSubtitles }) => {
7753
7752
  subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
7754
7753
  callback(subtitlesEnabled);
package/dist/esm/main.js CHANGED
@@ -1 +1 @@
1
- export { B as BigscreenPlayer, a as DebugTool, E as EntryCategory, b as LiveSupport, c as MediaKinds, M as MediaState, g as MockBigscreenPlayer, h as PauseTriggers, i as PlaybackStrategy, j as TransferFormat, T as TransportControlPosition, W as WindowTypes, k as isMessage, l as isMetric, m as isTrace } from './main-73f2cc27.js';
1
+ export { B as BigscreenPlayer, a as DebugTool, E as EntryCategory, b as LiveSupport, c as MediaKinds, M as MediaState, g as MockBigscreenPlayer, h as PauseTriggers, i as PlaybackStrategy, j as TransferFormat, T as TransportControlPosition, W as WindowTypes, k as isMessage, l as isMetric, m as isTrace } from './main-9f5984e2.js';
@@ -1,5 +1,5 @@
1
1
  import { MediaPlayer } from 'dashjs/index_mediaplayerOnly';
2
- import { W as WindowTypes, U as Utils, D as DOMHelpers, b as LiveSupport, a as DebugToolInstance, M as MediaState, P as Plugins, c as MediaKinds, d as TimeUtils, e as DynamicWindowUtils } from './main-73f2cc27.js';
2
+ import { W as WindowTypes, U as Utils, D as DOMHelpers, b as LiveSupport, a as DebugToolInstance, M as MediaState, P as Plugins, c as MediaKinds, d as TimeUtils, e as DynamicWindowUtils } from './main-9f5984e2.js';
3
3
 
4
4
  function filter(manifest, representationOptions) {
5
5
  const constantFps = representationOptions.constantFps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigscreen-player",
3
- "version": "8.2.3",
3
+ "version": "8.2.4",
4
4
  "type": "module",
5
5
  "description": "Simplified media playback for bigscreen devices.",
6
6
  "main": "dist/esm/main.js",
@@ -27,7 +27,6 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.23.7",
30
- "@babel/eslint-parser": "^7.23.3",
31
30
  "@babel/plugin-transform-runtime": "^7.23.9",
32
31
  "@babel/preset-env": "^7.23.8",
33
32
  "@babel/preset-typescript": "^7.23.3",
@@ -40,14 +39,11 @@
40
39
  "@rollup/plugin-replace": "^5.0.5",
41
40
  "@rollup/plugin-typescript": "^11.1.6",
42
41
  "@types/jest": "^29.5.11",
43
- "@typescript-eslint/eslint-plugin": "^6.18.1",
44
- "@typescript-eslint/parser": "^6.18.1",
45
42
  "babel-jest": "^29.7.0",
46
43
  "better-docs": "^2.7.3",
47
44
  "clean-jsdoc-theme": "^4.2.7",
48
- "eslint": "^8.27.0",
49
- "eslint-plugin-jest": "^27.1.4",
50
- "eslint-plugin-json": "^3.1.0",
45
+ "eslint": "^8.57.0",
46
+ "eslint-plugin-jest": "^27.9.0",
51
47
  "eslint-plugin-sonarjs": "^0.23.0",
52
48
  "eslint-plugin-unicorn": "^50.0.1",
53
49
  "husky": "^8.0.3",
@@ -63,7 +59,8 @@
63
59
  "rollup-plugin-visualizer": "^5.5.2",
64
60
  "ts-jest": "^29.1.1",
65
61
  "ts-node": "^10.9.2",
66
- "typescript": "^5.3.3"
62
+ "typescript": "^5.3.3",
63
+ "typescript-eslint": "^7.2.0"
67
64
  },
68
65
  "dependencies": {
69
66
  "dashjs": "github:bbc/dash.js#smp-v4.7.3-0",