<div dir="ltr">Ciao a tutti,<div>mi sto avvicinando al <a href="https://en.wikipedia.org/wiki/WebRTC">WebRTC</a> e come si conviene sono partito da un esempio "Hello World!":</div><div><br></div><div><a href="https://gist.github.com/greenido/6238800">https://gist.github.com/greenido/6238800</a></div><div><br></div><div>Non è proprio l'esempio di poche righe come si conviene nei linguaggi tradizionali, ma qui il contesto è differente. Premetto che conosco poco il JavaScript, probabilmente il mio problema è li.</div><div><br></div><div>Partiamo dalla cosa positiva : l' "Hello World" funziona!</div><div><br></div><div>Vediamo la sezione <script> della pagina:</div><div><br></div><div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;border-spacing:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-LC42" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"> <<span class="gmail-pl-ent" style="box-sizing:border-box;color:rgb(34,134,58)">script</span>><span class="gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L43" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC43" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-pl-smi" style="box-sizing:border-box">getUserMedia_</span> <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-pl-smi" style="box-sizing:border-box">getUserMedia</span> <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">||</span> <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-pl-smi" style="box-sizing:border-box">webkitGetUserMedia</span> <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">||</span> <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-pl-smi" style="box-sizing:border-box">mozGetUserMedia</span>;</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L44" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC44" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">var</span> constraints <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> {audio<span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">:</span> <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">false</span>, video<span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">:</span> <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">true</span>};</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L45" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC45" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">var</span> video <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">document</span>.<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">querySelector</span>(<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>video<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>);</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L46" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC46" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L47" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC47" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">function</span> <span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">successCallback</span>(<span class="gmail-pl-smi" style="box-sizing:border-box">stream</span>) {</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L48" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC48" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-pl-c" style="box-sizing:border-box;color:rgb(106,115,125)"><span class="gmail-pl-c" style="box-sizing:border-box">//</span> stream available to console so you could inspect it and see what this object looks like</span></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L49" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC49" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">window</span>.<span class="gmail-pl-smi" style="box-sizing:border-box">stream</span> <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> stream;</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L50" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC50" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-pl-smi" style="box-sizing:border-box">video</span>.<span class="gmail-pl-smi" style="box-sizing:border-box">srcObject</span> <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> stream;</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L51" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC51" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-pl-smi" style="box-sizing:border-box">video</span>.<span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">onloadedmetadata</span> <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">function</span>(<span class="gmail-pl-smi" style="box-sizing:border-box">e</span>) {</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L52" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC52" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">          <span class="gmail-pl-smi" style="box-sizing:border-box">video</span>.<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">play</span>();</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L53" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC53" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">        };</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L54" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC54" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">      }</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L55" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC55" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L56" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC56" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">function</span> <span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">errorCallback</span>(<span class="gmail-pl-smi" style="box-sizing:border-box">error</span>) {</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L57" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC57" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">console</span>.<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">log</span>(<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>navigator.getUserMedia error: <span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>, error);</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L58" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC58" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">      }</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L59" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC59" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L60" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC60" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">getUserMedia</span>(constraints, successCallback, errorCallback);</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L61" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC61" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-file-webrtc-hello-world-example-html-L62" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;color:rgba(27,31,35,0.3);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;line-height:20px;min-width:50px;text-align:right;vertical-align:top;white-space:nowrap;width:50px"></td><td id="gmail-file-webrtc-hello-world-example-html-LC62" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;overflow:visible;white-space:pre"></<span class="gmail-pl-ent" style="box-sizing:border-box;color:rgb(34,134,58)">script></span></td></tr></tbody></table><div><br></div><div>1) Cosa fa la prima istruzione ?<br><span class="gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(0,92,197)">
navigator</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">.</span><span class="gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box">getUserMedia</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"> </span><span class="gmail-pl-k" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(215,58,73)">=</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"> </span><span class="gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(0,92,197)">navigator</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">.</span><span class="gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box">getUserMedia</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"> </span><span class="gmail-pl-k" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(215,58,73)">||</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"> </span><span class="gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(0,92,197)">navigator</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">.</span><span class="gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box">webkitGetUserMedia</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"> </span><span class="gmail-pl-k" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(215,58,73)">||</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"> </span><span class="gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(0,92,197)">navigator</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">.</span><span class="gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box">mozGetUserMedia</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">;</span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"><br></span></div>Mi sembra di capire che testa l'esistenza delle diverse funzioni disponibili ...<div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"><br></span></div>2) Cercando delle info su <span class="gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(0,92,197)">navigator</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">.</span><span class="gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box">getUserMedia ho capito che la funzione è obsoleta, ma non riesco a capire come modificare il demo per farla funzionare.</span></div><div><span class="gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre;box-sizing:border-box"><br></span></div>A presto e grazie<div><div><br></div><div>-- <br><div dir="ltr" class="m_-5793576518283198205gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small"><i>Fabrizio</i><br></div></div></div></div></div></div>