Chrome extension for YouTube #2690
Replies: 2 comments 1 reply
-
@BickleNack it would depend on if you have the source url of the video as audio format to render it. You can try using the following project which uses videojs and wavesurferjs combined for using videos as the source. Regarding the chrome extension accessing local files, the user would need to provide access to do this for security reasons but you can try the following:
|
Beta Was this translation helpful? Give feedback.
-
AFAIR, a Chrome extension consists of three parts: a popup, a background script and a content script. You need the latter if you're planning to inject the waveform into the page. wavesufer.js downloads the media file via XHR, so that might be an issue on YouTube because of streaming and CORS. That said, I don't see why wavesurfer.js wouldn't work in an extension. It's just like any other browser JS. Just not with Youtube videos for the above reason. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I'm wondering if it's possible to integrate wavesurfer into a chrome extension? Essentially I'd like to generate an audio waveform for a youtube video directly beneath it. I have the extension set up and a div inserted and ready to go but I can seem to get it to work even when using a local file to test that it is rendering properly when given a source. Any ideas here would be great.
Beta Was this translation helpful? Give feedback.
All reactions