Skip to content

MP4 file autoplays when playing props is set to false #14

@clementoriol

Description

@clementoriol

Hi,
Thanks for the player, it looks promising.

There's an issue with mp4 files, they autoplay even if playing={false} is passed as a prop.

It's related with the play() call in players/Base.js componentDidMount.
It seems required to init some players (Youtube, SoundCloud...) since they're initialized in the play method. Maybe moving the initalization part in a separate method, and calling this in componentDidMount could avoid this issue.

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