|
|
|
|
|
by SeanAnderson
1242 days ago
|
|
Mmm, best I've got is when the big G was mad at my Chrome Extension for not showing YouTube visuals inside of the pop-up UI. It's not possible to host the entire <video> inside of the extension's visible UI because the page is destroyed when closed which kills the audio. There is an invisible, permanent background page which can host the <video>, but then there's no way to show the visuals. They told me they'd pull the extension if I didn't find a way to show the UI and that I had ~1 day to ship a new version. So, I found a way. :) Managed to read through the minified YT source and split the video from the audio, pipe the video to a separate page, and run the two in-sync. This meant that destroying the foreground page didn't pause the audio. They didn't really care for my technical solution and it didn't change anything long-term, but I felt super badass in the moment as I launched what I thought was a clever, technical solution to resolve their concern with little notice. https://medium.com/@MeoMix/beautifully-buffered-bytes-ff798e... I wrote about it here. |
|