Skip to content

Working fine but problem with event handler #110

@cell0901

Description

@cell0901
player.on('stateChange', (event) => {
    // event.data
});

while using event change when event.data === 0 basically the youtube player video ends to call a function but first time it works fine if i dont load the page or dont click anywhere else.

but while the video is playing and i click on other tab opened and came back to this tab the stateChange(i check logging the event.data) doesnt works and do whatever i told the function to do.

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