benwiley4000 / cassette

📼 A flexible media player component library for React that requires no up-front config
https://benwiley4000.github.io/cassette/styleguide
MIT License
184 stars 28 forks source link

Let PlayerContextGroup handle media outside of Cassette #427

Open benwiley4000 opened 5 years ago

benwiley4000 commented 5 years ago

It's possible we'll have media on the page other than normally embedded media elements, like a YouTube embed, which we'll want to play nice with other media on the page. We can add some new context props to a PlayerContextGroup consumer that would allow hooking in a custom media thing. For example, we would want to make it work with the YouTube Iframe Player API. https://developers.google.com/youtube/iframe_api_reference

The trouble is there doesn't seem to be a simple way to listen to volume changes, so we'll have to think about that...