From 8ff5c4090f364f99122390b9d00a26ba803a7363 Mon Sep 17 00:00:00 2001 From: Andriy Lysnevych Date: Fri, 22 Mar 2024 12:21:42 +0200 Subject: [PATCH] Fix Clappr player stats --- demo/src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demo/src/App.tsx b/demo/src/App.tsx index 3248ee6d..4c7abe39 100644 --- a/demo/src/App.tsx +++ b/demo/src/App.tsx @@ -141,6 +141,8 @@ function App() { const initHlsClapprPlayer = (url: string) => { const p2pEngine = new HlsJsP2PEngine(); + p2pEngine.addEventListener("onSegmentLoaded", onSegmentLoaded); + /* eslint-disable */ const clapprPlayer = new window.Clappr.Player({