bug: NetflixStylePlayer control, volume, and fullscreen desync issues
Describe the bug
The NetflixStylePlayer component has several bugs:
- Local file loading: Uses
src={videoSrc}directly which fails in Tauri withoutconvertFileSrc. - Fullscreen desync: Pressing
Escto exit fullscreen doesn't update theisFullscreenstate. - NaN display: Time display renders
NaN:NaNbefore the video metadata loads. - Muted state desync: Changing the volume slider doesn't automatically unmute the video.
- Playback state desync: The play/pause button stays stuck on "Pause" when the video ends.
👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)
@rohan-pandeyy Can I work on this issue?
Hi! I'd love to work on this if it's still available. I can start with the fullscreen Esc desync and muted state issues first, and tackle the others incrementally. Happy to be assigned alongside @VanshajPoonia if needed, or pick a different subset of these bugs to avoid duplicate work.
please assign me i would love to work on this ..issue
I've already root-caused all five issues and have a fix ready. Quick summary of what's going on:
- src={videoSrc} needs convertFileSrc for the Tauri asset protocol.
- isFullscreen is toggled manually, so an Esc-exit never updates it - needs a fullscreenchange listener.
- ?? 0 doesn't catch NaN (duration is NaN pre-metadata), so the time renders NaN:NaN; needs finite-guarding + state.
- handleVolumeChange never clears video.muted, so raising the slider after muting stays silent.
- isPlaying isn't driven by media events, so it sticks on Pause at ended. One extra thing not in the report: even with convertFileSrc, the media-src CSP in tauri.conf.json doesn't allow the asset protocol, so the video still won't load until that's added. I've got all of this implemented with jest regression tests for each bug (lint/typecheck/build all green).
I appreciate the interest, @VanshajPoonia and @Mansi2007275. However, we'll be following the long followed first-come, first-assigned approach for this issue.
@MayankSharma-ops, would you like to work on this issue? If not, I'll assign it to Vanshaj.
i would love to work on this
Please go ahead @MayankSharma-ops