Skip to content

Multiple instance issues on play and pause #2008

@fangyibkk

Description

@fangyibkk

Some CRA instance that make some multiple instance

        <ReactPlayer
          key={1}
          src="https://vimeo.com/112xxxx"
          playing={true}
          muted={true}
        />
        <ReactPlayer
          key={2}
          src="https://vimeo.com/112xxxx"
          playing={true}
          muted={true}
        />
        <ReactPlayer
          key={3}
          src="https://vimeo.com/112xxxx"
          playing={true}
          muted={true}
        />

Will throw the error like

The play() request was interrupted by a call to pause()
PlayInterrupted: The play() request was interrupted by a call to pause()

I'm trying to fix it but I found it is the already the factory method. So I look into getPlayer somehow but cannot find too.
So please guide me how to use or fix it.

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