erikras / audiocard Goto Github PK
View Code? Open in Web Editor NEW⏯️ AudioCard - Opinionated, responsive, audio player compatible with Twitter Cards
Home Page: https://erikras.github.io/audiocard/
License: MIT License
⏯️ AudioCard - Opinionated, responsive, audio player compatible with Twitter Cards
Home Page: https://erikras.github.io/audiocard/
License: MIT License
Latest release is giving error of 'missing styles-component' package. I installed it using yarn.
So I added missing dependency separately to get it worked.
Please address this issue in next release.
Thanks
I'm getting two errors on the pages where I have an AudioCard. It doesn't seem to actually break anything. But it's definitely better for things not to error.
I think the cause could be that on the first render, maybe useDimensions
isn't returning the width/height yet.
react_devtools_backend.js:6 Warning:
NaN
is an invalid value for theheight
css style property.
in img (created by styled.img)
in styled.img (created by AudioCard)
in div (created by styled.div)
in styled.div (created by AudioCard)
react_devtools_backend.js:6 Warning: Received NaN for the
size
attribute. If this is expected, cast the value to a string.
in input (created by styled.input)
in styled.input (created by ProgressBar)
in div (created by styled.div)
in styled.div (created by ProgressBar)
in ProgressBar (created by AudioCard)
in div (created by styled.div)
in styled.div (created by AudioCard)
in div (created by styled.div)
in styled.div (created by AudioCard)
In case it's helpful, I'm using the following props:
<AudioCard
art={activeEpisode.image}
key={activeEpisode.uid}
link={`${prefix}/episodes/${activeEpisode.uid}`}
linkText="Show Notes"
skipBackSeconds={10}
skipForwardSeconds={30}
source={activeEpisode.audio}
title={`EP${activeEpisode.number} ${activeEpisode.title}`}
/>
If you're still updating this I'd use an update for this peer dep. I'm happy to spin it up if you'll take the PR
Howler looks pretty badass. Abstracts away a lot of the cumbersome <audio>
crap.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.