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

How block native browser fullscreen? #88

Open
itivao opened this issue Oct 8, 2020 · 0 comments
Open

How block native browser fullscreen? #88

itivao opened this issue Oct 8, 2020 · 0 comments

Comments

@itivao
Copy link

itivao commented Oct 8, 2020

I try to make my own controls component. And I don't understand how to block native browser controls and add custom on full screen. Can someone help with this?
<Media> {mediaProps => ( <UpWrapper onMouseEnter={ () => this.setState({inScreen: true}) } onMouseLeave={ () => this.setState({inScreen: false}) } > <VideoTitle inScreen={this.state.inScreen} >{ this.props.name }</VideoTitle> <VideoPlayer src={url} no onKeyDown={keyboardControls.bind(null, mediaProps)} onFullScree /> <PlayControlWrapper inScreen={this.state.inScreen} > <PlayPause/> <SeekBar /> <MuteUnmute /> <Volume /> <Fullscreen /> </PlayControlWrapper> </UpWrapper> )} </Media>

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

No branches or pull requests

1 participant