Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options={{controls: false}} doesn't work. #60

Open
ArtixZ opened this issue Oct 25, 2019 · 3 comments · May be fixed by brightcove/player-loader#65 or brightcove/player-loader#80
Open

options={{controls: false}} doesn't work. #60

ArtixZ opened this issue Oct 25, 2019 · 3 comments · May be fixed by brightcove/player-loader#65 or brightcove/player-loader#80

Comments

@ArtixZ
Copy link

ArtixZ commented Oct 25, 2019

Tried to remove controls with autoplay. Tried it in options, but it doesn't work.

@danielpetrariu25
Copy link

Is anyone looking actively into this or any plans to fix this soon?

@mosjeffinately
Copy link

I worked around this by doing the following:

    const onSuccessHandler = (success) => {
        success.ref.player().controlBar.hide();
    };

and to initialize the player:

            <ReactPlayerLoader
                accountId={accountId}
                onSuccess={onSuccessHandler}
                options={{
                    aspectRatio: '16:9',
                    autoplay: true,
                    controls: false,
                    fluid: true,
                    height: playerHeight,
                    loop: true,
                    muted: true,
                    playsInline: true,
                    responsive: true
                }}
                playerId={playerId}
                videoId={videoId}
            />

@edwinm
Copy link

edwinm commented Apr 15, 2021

I'm a bit astonished that a bug of such a common feature is still not fixed.

Everyboy is now using the hacky solution of @mosjeffinately, so there are probably not many complaints. But I think everybody using this solution now has less confidence in react-player-loader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants