css-visualizer icon indicating copy to clipboard operation
css-visualizer copied to clipboard

Google Cast (Chromecast) functionality

Open likethemammal opened this issue 7 years ago • 0 comments

This is something I've wanted from the very beginning of this project. I've tried adding it in the past but Chromecast's version of Chrome is a bit different than the Desktop's. Someone recently asked me my thoughts so I thought I'd document them here for everyone.

--

Back when I tried, the Chromecast's chrome browser didnt have the Web Audio API functionality to visualize audio. So the data had to come from the Desktop/Laptop (Sender) that was casting.

I could either use WebRTC to send the data directly to the Chromecast or I could send it over the server. I tried both. Unfortunately, although Chromecasts use WebRTC to make casting work, the WebRTC API is (was) not openly available to the Sender. So I had to use a server-side approach. Tried Websockets and got visualizations showing up on the Chromecast but the FPS was waay to low. Something like 2 frames a second.

I stopped trying to do Chromecast from there. I'm guessing the software and hardware are better now, so its probably more possible. The chromecast branch has my work in it, but the rest of the project in that branch is pretty outdated https://github.com/likethemammal/css-visualizer/tree/chromecast

likethemammal avatar Mar 07 '17 19:03 likethemammal