From 2018b0900f6f8eadd069ee0697ba166357ccd77d Mon Sep 17 00:00:00 2001 From: Chase Adams Date: Mon, 10 Jun 2024 16:21:55 -0700 Subject: [PATCH] fix: resolved metrics listener error on fallback (#553) * fix: resolved metrics listener error on fallback * lint: fix * fix: broken lockfile? --- .changeset/tall-oranges-crash.md | 8 ++++ .../src/lib/broadcast-components.ts | 1 + apps/docs-embed/src/lib/code-components.ts | 1 + apps/docs-embed/src/lib/player-components.ts | 1 + apps/lvpr-tv/next.config.js | 2 +- .../src/pages/alternative-player.tsx | 1 - .../components/chat/context/ChatContext.tsx | 6 +-- packages/core/src/media/metrics.ts | 34 +++++++------- packages/core/src/version.ts | 4 +- pnpm-lock.yaml | 47 ++++++++++++------- 10 files changed, 65 insertions(+), 40 deletions(-) create mode 100644 .changeset/tall-oranges-crash.md diff --git a/.changeset/tall-oranges-crash.md b/.changeset/tall-oranges-crash.md new file mode 100644 index 00000000..418531c9 --- /dev/null +++ b/.changeset/tall-oranges-crash.md @@ -0,0 +1,8 @@ +--- +"@livepeer/core": patch +"@livepeer/core-react": patch +"@livepeer/core-web": patch +"@livepeer/react": patch +--- + +**Fix:** fixes a bug where the metrics listener would not send logs in some situations after the player fell back to HLS playback. diff --git a/apps/docs-embed/src/lib/broadcast-components.ts b/apps/docs-embed/src/lib/broadcast-components.ts index 071b6a64..8200cec2 100644 --- a/apps/docs-embed/src/lib/broadcast-components.ts +++ b/apps/docs-embed/src/lib/broadcast-components.ts @@ -758,3 +758,4 @@ export default () => { ); };`; + diff --git a/apps/docs-embed/src/lib/code-components.ts b/apps/docs-embed/src/lib/code-components.ts index d55966e1..74cc81aa 100644 --- a/apps/docs-embed/src/lib/code-components.ts +++ b/apps/docs-embed/src/lib/code-components.ts @@ -67,3 +67,4 @@ export const CodeWithExampleServer = async ({ ); };`; + diff --git a/apps/docs-embed/src/lib/player-components.ts b/apps/docs-embed/src/lib/player-components.ts index 66648286..c9684728 100644 --- a/apps/docs-embed/src/lib/player-components.ts +++ b/apps/docs-embed/src/lib/player-components.ts @@ -1411,3 +1411,4 @@ export default () => { ); };`; + diff --git a/apps/lvpr-tv/next.config.js b/apps/lvpr-tv/next.config.js index 24f1a900..91ef62f0 100644 --- a/apps/lvpr-tv/next.config.js +++ b/apps/lvpr-tv/next.config.js @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - reactStrictMode: false, + reactStrictMode: true, }; module.exports = nextConfig; diff --git a/examples/next-pages/src/pages/alternative-player.tsx b/examples/next-pages/src/pages/alternative-player.tsx index 620d678a..369d74fb 100644 --- a/examples/next-pages/src/pages/alternative-player.tsx +++ b/examples/next-pages/src/pages/alternative-player.tsx @@ -29,7 +29,6 @@ export default function Page() { return (
- {/* biome-ignore lint/a11y/useMediaCaption: */}