Skip to content

Comments

Handy integration improvements#5576

Merged
WithoutPants merged 10 commits intostashapp:developfrom
dumdum7:issues/5575
Feb 28, 2025
Merged

Handy integration improvements#5576
WithoutPants merged 10 commits intostashapp:developfrom
dumdum7:issues/5575

Conversation

@dumdum7
Copy link
Contributor

@dumdum7 dumdum7 commented Dec 27, 2024

  • Fixes [Bug Report] Handy script starts playing before video finishes buffering #5575
  • Fixes issue where script can be unsynchronized due to video player issues. Solved by triggering a second /play API call a second after pressing play.
  • Fixes issue of timeupdate listener triggering tons of /play API calls because it doesn't wait for previous calls to finish.
  • Fixes issue of script being paused and resumed after 10 seconds due to activity tracker dependency changing.

I don't have much experience with React, so if there are better ways of doing things in React I would greatly appreciate any feedback.

@dumdum7 dumdum7 marked this pull request as draft December 27, 2024 12:52
@dumdum7 dumdum7 changed the title Fix Handy script playing before video finishes buffering Handy integration improvements Dec 27, 2024
Eliminates redundant API calls by only relying on playing and pause events. Handles edge cases for playback before script upload completion.
We don't need it anymore, listening for playing and pause events is enough.
@dumdum7 dumdum7 marked this pull request as ready for review December 29, 2024 18:52
@WithoutPants WithoutPants added the bug Something isn't working label Feb 28, 2025
@WithoutPants WithoutPants added this to the Version 0.28.0 milestone Feb 28, 2025
@WithoutPants WithoutPants merged commit bf3a0e7 into stashapp:develop Feb 28, 2025
2 checks passed
XGFan pushed a commit to XGFan/stash that referenced this pull request Mar 27, 2025
* Use playing event instead of play
* Remove unnecessary ensurePlaying() from timeupdate listener

Eliminates redundant API calls by only relying on playing and pause events. Handles edge cases for playback before script upload completion.

* Remove unnecessary video seeking event listener

We don't need it anymore, listening for playing and pause events is enough.

* Send second play event after a play event to adjust for video player issues
* Fix script being paused and played after 10 seconds because of activity tracker dependency change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report] Handy script starts playing before video finishes buffering

2 participants