WebRTC. Not showing video
<p>I decided to study WebRTC, but not showing video. Help please.
What am I doing wrong? Using Chrome
My code:</p>

<pre><code>&lt;html&gt;

&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
&lt;/head&gt;

&lt;body&gt;
    &lt;script&gt;
        window.onload = function () {
            navigator.webkitGetUserMedia({ video: true }, getStream, noStream);
        };

        function getStream(stream) {
            var url = window.webkitURL.createObjectURL(stream);            
            var video = document.getElementById('video');
            video.src = url;
        }

        function noStream(faild) {

        }
    &lt;/script&gt;
    &lt;video id="video" autoplay="autoplay" width="400"&gt;&lt;/video&gt;
&lt;/body&gt;

&lt;/html&gt;
</code></pre>