PictoPy icon indicating copy to clipboard operation
PictoPy copied to clipboard

bug: NetflixStylePlayer control, volume, and fullscreen desync issues

Open MayankSharma-ops opened this issue 5 months ago • 8 comments

Describe the bug

The NetflixStylePlayer component has several bugs:

  1. Local file loading: Uses src={videoSrc} directly which fails in Tauri without convertFileSrc.
  2. Fullscreen desync: Pressing Esc to exit fullscreen doesn't update the isFullscreen state.
  3. NaN display: Time display renders NaN:NaN before the video metadata loads.
  4. Muted state desync: Changing the volume slider doesn't automatically unmute the video.
  5. Playback state desync: The play/pause button stays stuck on "Pause" when the video ends.

MayankSharma-ops avatar Jun 19 '26 10:06 MayankSharma-ops

👋 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 :)

github-actions[bot] avatar Jun 19 '26 10:06 github-actions[bot]

@rohan-pandeyy Can I work on this issue?

VanshajPoonia avatar Jun 20 '26 06:06 VanshajPoonia

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.

Mansi2007275 avatar Jun 20 '26 17:06 Mansi2007275

please assign me i would love to work on this ..issue

Mansi2007275 avatar Jun 20 '26 17:06 Mansi2007275

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).

VanshajPoonia avatar Jun 21 '26 13:06 VanshajPoonia

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.

rohan-pandeyy avatar Jun 22 '26 07:06 rohan-pandeyy

i would love to work on this

MayankSharma-ops avatar Jun 22 '26 16:06 MayankSharma-ops

Please go ahead @MayankSharma-ops

rohan-pandeyy avatar Jun 22 '26 16:06 rohan-pandeyy