fork download
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <h1>My First Heading</h1>
  6.  
  7. <p>My first paragraph.</p>
  8.  
  9. </body>
  10. <script>
  11. var getUserMedia;
  12. var browserUserMedia = navigator.webkitGetUserMedia || // WebKit
  13. navigator.mozGetUserMedia || // Mozilla FireFox
  14. navigator.getUserMedia; // 2013...
  15. if ( !browserUserMedia ) console.log( 'Your browser doesn\'t support WebRTC');
  16.  
  17. getUserMedia = browserUserMedia.bind( navigator );
  18. getUserMedia(
  19. {
  20. audio: true,
  21. video: true
  22. },
  23. function( stream ) {
  24. console.log( stream );
  25. },
  26. function( err ) {
  27. console.log( err );
  28. }
  29. );
  30. </script>
  31. </html>
  32.  
  33.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty