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
pip prop is not working #538
Comments
Are you doing anything differently to the demo app? That seems to work when setting |
I'm just doing the following: For example, adding or removing "controls" prop will add/remove controls from the video, and I tried the same thing with "pip" prop. Am I doing something wrong? |
Sorry.. I completely misunderstood your problem. There is a SO post here that has some useful information. There is a new [ <ReactPlayer
controls
playing
url='http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'
config={{ file: { attributes: { disablepictureinpicture: 'true' }}}}
/> https://jsfiddle.net/86ewraov/ Note that I'm not sure what browsers support this, but latest Chrome seems to work correctly. |
I've found those information, but wasn't sure how to tell React to pass it on to the DOM ( wasn't aware that option is available on config.file.attributes ). Thank you for the response and for the solution. |
Funny though, you cannot pass a false or 'false' to it so you cannot programatically turn it on for some and off for others unless you make the entire config into a variable. |
Hi @cookpete This seems to work in chrome but not in Firefox. I tried putting this line of code: |
This is probably because Firefox doesn't support This thread about it only mentions Chrome and Safari supporting it: facebook/react#15333 (comment) |
Okay, Thank you @cookpete for the quick response |
When I pass pip props to ReactPlayer and set it's value to false ( default value ), it won't hide the picure-in-picture option from video...
The text was updated successfully, but these errors were encountered: