Merge pull request #62 from ibs0d/claude/fix-zoom-statistics-WFvOm

fix: enable stats collection when onStatsUpdate callback is provided
This commit is contained in:
ibs0d 2026-03-16 21:18:39 +11:00 committed by GitHub
commit 85a8fef628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -325,7 +325,7 @@ export default function LivePlayer({
className={`size-full ${liveReady ? "" : "hidden"}`}
camera={streamName}
playbackEnabled={cameraActive || liveReady}
getStats={showStats}
getStats={showStats || !!onStatsUpdate}
setStats={setStats}
audioEnabled={playAudio}
volume={volume}
@ -347,7 +347,7 @@ export default function LivePlayer({
audioEnabled={playAudio}
volume={volume}
playInBackground={playInBackground}
getStats={showStats}
getStats={showStats || !!onStatsUpdate}
setStats={setStats}
onPlaying={playerIsPlaying}
pip={pip}