Created
May 2, 2017 18:58
-
-
Save kigiri/48752e826ab457823a81ebb403cdd1c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// copy paste this in the console from youtube | |
const ctx = new AudioContext() | |
const L = ctx.createGain() | |
const R = ctx.createGain() | |
const splitter = ctx.createChannelSplitter(2) | |
ctx.createMediaElementSource($('video')).connect(splitter, 0, 0) | |
splitter.connect(L, 0) | |
splitter.connect(R, 1) | |
L.connect(ctx.destination, 0) | |
R.connect(ctx.destination, 0) | |
window.soundLevel = level => | |
gainL.gain.value = gainR.gain.value = level |
Thank you! It works.
It works but I can't increase or decrease the speed after pasting the code on console. Can you fix that ?
It works but I can't increase or decrease the speed after pasting the code on console. Can you fix that ?
Sorry @Utshaw no clues
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This perfectly solves problems with some videos!!! Thanks a lot!