From 336dbd90daaec4b9c4c5858d013c1b9d608aa47b Mon Sep 17 00:00:00 2001 From: Paul Berberian Date: Thu, 1 Aug 2024 15:53:30 +0200 Subject: [PATCH] Re-run prettier after dependency update --- .eslintrc.js | 2 +- CHANGELOG.md | 15 +++++---------- demo/tsconfig.json | 4 ++-- .../init/media_source_content_initializer.ts | 6 +++--- tsconfig.json | 4 ++-- 5 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 80d83ebd7c..3ed836646b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -173,7 +173,7 @@ module.exports = { "@typescript-eslint/no-unused-vars": [ "error", { - "args": "all", + args: "all", argsIgnorePattern: "^_", caughtErrors: "none", destructuredArrayIgnorePattern: "^_", diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a5f9488d6..9aa55b5518 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,7 @@ ### Bug fixes -- DASH: support absolute path in URL resolution with RFC 3986 implementation [#1443, - #1440] +- DASH: support absolute path in URL resolution with RFC 3986 implementation [#1443, #1440] - DASH: fix cases of blinking subtitles [#1416, #1424] - Fix precision issues of the `maxVideoBufferSize` API [#1421] - DASH: Prevent multiple loading of the same segment for some DASH low-latency contents @@ -23,8 +22,7 @@ - MULTI_THREAD: Perform several actions so that our `MULTI_THREAD` experimental feature now works on older browser and on the Playstation 4 [#1401, #1402] - Directfile/Compat: On safari on iOS no longer stay stuck in buffering when `autoPlay` is - set to `false` or not set and the video element has the attribute "playsinline" [#1408, - #1390] + set to `false` or not set and the video element has the attribute "playsinline" [#1408, #1390] - Directfile/compat: On safari mobile in directfile mode, do not stay in an infinite `LOADING` state if the `duration` is set to `NaN` (rare issue in a normally-unsupported multiple RxPlayer-per-media-element scenario) [#1393] @@ -663,8 +661,7 @@ - TypeScript: Add IBitrateEstimate, IPositionUpdate and IPlayerState types to the exported types [#1084] - Remove dependency on pinkie's promise ponyfill [#1058, #1090] -- tests: add performance tests, to better catch and avoid performance regressions [#1053, - #1062] +- tests: add performance tests, to better catch and avoid performance regressions [#1053, #1062] - DRM: Refactor DRM logic for better maintainability. DRM-linked logs are now prefixed by `DRM:` instead of `EME:` like previously [#1042] @@ -808,8 +805,7 @@ - Update used RxJS version to 7.0.0, which might bring with it a smaller size and better performances [#954] - demo: remove Chart.js dependency (we found that its new API documentation and errors - were too impenetrable) and replace the "Buffer Size" chart by a homemade one. [#955, - #957] + were too impenetrable) and replace the "Buffer Size" chart by a homemade one. [#955, #957] ## v3.24.0 (2021-04-01) @@ -817,8 +813,7 @@ - Add `inbandEvent` event for when an event is encountered in a media segment [#892] - DRM: Add `singleLicensePer` `keySystems` option to be able to signal in advance that the - current content has a single license, even if it has multiple encryption keys [#863, - #904] + current content has a single license, even if it has multiple encryption keys [#863, #904] - DRM: Add `keySystems[].licenseStorage.disableRetroCompatibility` boolean to unlock optimizations when compatibility with EME sessions persisted in older RxPlayer versions is not important [#919] diff --git a/demo/tsconfig.json b/demo/tsconfig.json index de7f3cfdb4..210285e60c 100644 --- a/demo/tsconfig.json +++ b/demo/tsconfig.json @@ -15,7 +15,7 @@ "types": [], "moduleResolution": "node", "jsx": "react", - "typeRoots": ["../node_modules/@types"], + "typeRoots": ["../node_modules/@types"] }, - "include": ["../src/globals.prod.d.ts", "./scripts/**/*"], + "include": ["../src/globals.prod.d.ts", "./scripts/**/*"] } diff --git a/src/main_thread/init/media_source_content_initializer.ts b/src/main_thread/init/media_source_content_initializer.ts index 6032969705..cf6276cdfb 100644 --- a/src/main_thread/init/media_source_content_initializer.ts +++ b/src/main_thread/init/media_source_content_initializer.ts @@ -873,7 +873,7 @@ export default class MediaSourceContentInitializer extends ContentInitializer { const lastObservation = coreObserver.getReference().getValue(); const position = lastObservation.position.isAwaitingFuturePosition() ? lastObservation.position.getWanted() - : coreObserver.getCurrentTime() ?? lastObservation.position.getPolled(); + : (coreObserver.getCurrentTime() ?? lastObservation.position.getPolled()); const isPaused = lastObservation.paused.pending ?? coreObserver.getIsPaused() ?? @@ -883,7 +883,7 @@ export default class MediaSourceContentInitializer extends ContentInitializer { const lastObservation = coreObserver.getReference().getValue(); const position = lastObservation.position.isAwaitingFuturePosition() ? lastObservation.position.getWanted() - : coreObserver.getCurrentTime() ?? lastObservation.position.getPolled(); + : (coreObserver.getCurrentTime() ?? lastObservation.position.getPolled()); // simple seek close to the current position // to flush the buffers if (position + 0.001 < lastObservation.duration) { @@ -924,7 +924,7 @@ export default class MediaSourceContentInitializer extends ContentInitializer { const lastObservation = coreObserver.getReference().getValue(); const currentPosition = lastObservation.position.isAwaitingFuturePosition() ? lastObservation.position.getWanted() - : coreObserver.getCurrentTime() ?? lastObservation.position.getPolled(); + : (coreObserver.getCurrentTime() ?? lastObservation.position.getPolled()); const isPaused = lastObservation.paused.pending ?? coreObserver.getIsPaused() ?? diff --git a/tsconfig.json b/tsconfig.json index 7e96af25bf..373b19d329 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,8 +16,8 @@ "noUnusedLocals": true, "moduleResolution": "node", "module": "es6", - "typeRoots": ["./src/globals.prod.d.ts", "./node_modules/@types"], + "typeRoots": ["./src/globals.prod.d.ts", "./node_modules/@types"] }, "include": ["./src/**/*.ts"], - "exclude": ["./src/**/*.test.ts", "./src/**/__tests__/**", "./src/globals.dev.d.ts"], + "exclude": ["./src/**/*.test.ts", "./src/**/__tests__/**", "./src/globals.dev.d.ts"] }