Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- body{
- overflow: visible;
- position:center;
- width: 100%;
- height: 100%;
- filter:invert(1.0);
- }
- .container{
- position: center;
- width: Math.random()*5vmax+1vmax;
- height: Math.random()*15vmax+10vmax;
- top: 50%;
- left: 50%;
- }
- </style>
- <center>
- <video id="video" width="1000" height="500" autoplay></video>
- <canvas id="canvas" width="500" height="500"></canvas>
- <script>
- var canvas = document.getElementById('canvas');
- var context = canvas.getContext('2d');
- var video = document.getElementById('video');
- var mediaConfig = {video:true,audio:true};
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- video.src = window.URL.createObjectURL(stream);
- video.play();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement