Skip to content

fix: Add playback click event handling in WebEngineView#423

Open
ptfpinho23 wants to merge 1 commit into
Stremio:masterfrom
ptfpinho23:fix/video-playback-event-propagation
Open

fix: Add playback click event handling in WebEngineView#423
ptfpinho23 wants to merge 1 commit into
Stremio:masterfrom
ptfpinho23:fix/video-playback-event-propagation

Conversation

@ptfpinho23
Copy link
Copy Markdown

@ptfpinho23 ptfpinho23 commented Nov 24, 2024

Summary

Addresses the issue where playback controls - play & pause - were not working in the stremio desktop apps. The problem - as stated in the issue - stems from click events on the <video> element not being propagated correctly within WebEngineView QML.

Changes made:

  • attach click event listeners onto embedded video element to control playback
  • add observer to dynamically reapply listeners, whenever DOM updates/changes
  • wrap shellEvents.emit to reapply listeners on availabilityChanged
  • Improve error handling to prevent attaching duplicate attachments

Testing Steps

  1. Open the app & load a video
  2. Click on the vidoe & verify playback toggles (pause/play)

fix - #422

- attach click event listeners onto embedded video element to control playback
- add observer to dynamically reapply listeners, whenever DOM updates/changes
- wrap `shellEvents.emit` to reapply listeners on `availabilityChanged`
- Improve error handling to prevent attaching duplicate attachments
@ptfpinho23
Copy link
Copy Markdown
Author

ptfpinho23 commented Dec 15, 2025

@kKaskak whenever you have some time - could you double check the above? Would this be interesting to be merged? Shall we close? - my wife's been begging for this for quiet some time to be included on a release lol

@kKaskak
Copy link
Copy Markdown
Member

kKaskak commented Dec 15, 2025

@kKaskak whenever you have some time - could you double check the above? Would this be interesting to be merged? Shall we close? - my wife's been begging for this for quiet some time to be included on a release lol

Does v5 have this issue?

@TRr4M
Copy link
Copy Markdown

TRr4M commented Jan 6, 2026

I'd like to know if there is any reason why this hasn't been merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants