We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Should render the player
Throws error The width and height of the container cannot be 0
The width and height of the container cannot be 0
use ` in a React component in a condition like: (even if wrapping into a container with defined fixed width and height)
function Wrapper() { if (someThin) return <div>other thing</div> return ( <ArtplayerComponent option={{ url: editingAsset.asset.attributes.url, theme: '#acadee', volume: 0.5, muted: false, autoplay: false, setting: true, }} /> ) }
Mac OS Catalina 10.15.5
artplayer-react.js:8 Uncaught ArtPlayerError: The width and height of the container cannot be 0
The text was updated successfully, but these errors were encountered:
You should specify a fixed size for ArtplayerComponent, for example: demo
Or you can use a percentage: width:100%; height:100%, and then give the parent element of ArtplayerComponent a fixed size
width:100%; height:100%
Sorry, something went wrong.
aha, I see, ok thanks
No branches or pull requests
Expected behaviour
Should render the player
Actual behaviour
Throws error
The width and height of the container cannot be 0
Steps to reproduce
use ` in a React component in a condition like:
(even if wrapping into a container with defined fixed width and height)
Environment
Mac OS Catalina 10.15.5
Package versions
Console errors (if any)
artplayer-react.js:8 Uncaught ArtPlayerError: The width and height of the container cannot be 0
The text was updated successfully, but these errors were encountered: