user-media-request-crash.html 432 B

12345678910111213141516171819202122232425262728
  1. <html>
  2. <head>
  3. <meta http-equiv="refresh" content="2"/>
  4. <script>
  5. function error() {
  6. }
  7. function getUserMedia(dictionary, callback) {
  8. try {
  9. navigator.webkitGetUserMedia(dictionary, callback, error);
  10. } catch (e) {
  11. }
  12. }
  13. function gotStream1(s) {
  14. }
  15. function start() {
  16. getUserMedia({audio:true}, gotStream1);
  17. }
  18. </script>
  19. </head>
  20. <body onload="start()">
  21. <h1>Test passes if it does not crash.</h1>
  22. </body>
  23. </html>