Skip to content

onStateChange does not fire on firefox. #414

@anjitpariyar

Description

@anjitpariyar

I've discovered an issue where the onStateChange event is not firing when using Firefox. The functionality works as expected on other browsers (e.g., Chrome, Safari), but no event is triggered in Firefox.

Initially, I suspected this might be an issue with the YouTube player itself. However, after manually rendering the YouTube video using a script (without this library), the onStateChange event fires correctly. This leads me to believe the issue is related to this library's implementation, rather than a problem with Firefox or the YouTube player API.

I've reviewed the library's documentation and available options but couldn't find any configuration or setting that addresses this behavior.

Steps to Reproduce

  • Use the latest version of Firefox.
  • Integrate a YouTube player using the library.
  • Trigger an action that should fire the onStateChange event (e.g., playing, pausing, or ending the video).

Expected Behavior

The onStateChange event should fire, and the corresponding state change should be detected.

Actual Behavior

The onStateChange event does not fire, and no state change is detected within the Firefox browser when using this library.

I'd be happy to provide additional information or a code snippet to help with debugging if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions