Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center>
- <body bgcolor="#000000">
- <input type="textbox" enabled="false" id="tb" value="http://compulsivecoding.com/DJ%20BrU%20-%20Compulsive%20Revolution%20(Original%20Mix)%20(Full).mp3"><br>
- <body onload="url.play(document.querySelector('input').value)">Load URL</button></p>
- <script>
- this.tb.hidden=true;
- function AudioTagSample() {
- this.audio = new Audio();
- window.addEventListener('load', this.onload.bind(this), false);
- }
- AudioTagSample.prototype.onload = function() {
- this.source = context.createMediaElementSource(this.audio);
- this.filter = context.createBiquadFilter();
- this.filter.type = this.filter.HIGHPASS;
- this.filter.frequency.value = 500;
- this.source.connect(this.filter);
- this.filter.connect(context.destination);
- };
- AudioTagSample.prototype.play = function(url) {
- this.audio.src = url;
- this.audio.play(0);
- };
- var input = document.querySelector('input');
- var url = new AudioTagSample();
- sample.play(input.value);
- </script>
- </center>
- <center>
- <canvas id="canvas" width='1000' height='1900'></canvas>
- <body bgcolor="FFFFFF" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubleclick="drawe;">
- <video id="video" autoplay hidden>
- </video>
- <canvas id="canvas" width="1000" height="1000"style="opacity:1.0;fillColor:none;">
- <script>
- var ii=1;
- var video = document.getElementById("video");
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var canvas = document.getElementById('canvas');
- var context = canvas.getContext('2d');
- var video = document.getElementById('video');
- var mediaConfig = { video: true,audio:false};
- function drawe(){
- }
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- video.src = this.window.URL.createObjectURL(stream);
- video.play();
- video.addEventListener("play", function() {i = window.setInterval(function() {
- canvas.style.opacity+=0.1;
- ctx.drawImage(video,ii*Math.random()*23,Math.random()*23)},1);
- ctx.draw();
- },true);
- });
- </script>
- </center>
- <center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement