Skip to content

Conversation

@karthikeya-io
Copy link
Contributor

@karthikeya-io karthikeya-io commented Aug 7, 2025

Closes

Details

  • Removed global variables and assigned selectedSpeed and selectedQuality as properties on the player instance.
  • Removed DOM loop that applied playback rate across all video instances
Screen.Recording.2025-08-07.at.6.59.37.PM.mov

@karthikeya-io karthikeya-io marked this pull request as ready for review August 7, 2025 12:47
@Mukulsingh27 Mukulsingh27 requested a review from Copilot August 8, 2025 05:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where video speed and quality settings were applied globally across all video player instances instead of being player-specific. The changes remove global state variables and implement instance-specific settings storage.

  • Replaced global selectedSpeed and selectedQuality variables with player instance properties
  • Removed DOM loop that incorrectly applied playback rate changes to all video players on the page
  • Added initialization of default values for speed and quality settings in the constructor

@hbhalodia
Copy link
Contributor

Hi @karthikeya-io, Can you please resolve the copilot feedbacks?

@subodhr258 subodhr258 merged commit f9f6c9b into develop Aug 11, 2025
2 checks passed
@subodhr258 subodhr258 deleted the fix/settings-update-multiple-videos branch August 11, 2025 12:03
subodhr258 pushed a commit that referenced this pull request Aug 11, 2025
* Fix: Ensure video speed and quality settings are player-specific

* Refactor: Use logical nullish assignment
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.

5 participants