<div dir="ltr"><div>Ciao Fabrizio</div><div><br></div><div>Ho dato un occhiata al tuo codice. <br></div><div>La prima riga è come dici tu, assegna la prima funzione disponibile a getUserMedia.</div><div>Visto che questa funzione è obsoleta prova a sostituire la sua chiamata <br></div><div><br></div><div><span style="font-family:monospace"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"><span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-m_4655908588021433226gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">getUserMedia</span>(constraints, successCallback, errorCallback);</span></span></div><div><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"><br></span></div><div><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">con questo<br></span></div><div><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"><br></span></div><div><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"><span style="font-family:monospace">if (typeof navigator.mediaDevices.getUserMedia === 'undefined') {<br>    navigator.getUserMedia({<br>        audio: true<br>    }, successCallback, errorCallback);<br>} else {<br>    navigator.mediaDevices.getUserMedia({<br>        audio: true<br>    }).then(successCallback).catch(errorCallback);<br>}      </span><br></span></div><div><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"><br></span></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 16 ago 2019 alle ore 13:20 Fabrizio Carrai <<a href="mailto:fabrizio.carrai@gmail.com">fabrizio.carrai@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Ciao a tutti,<div>mi sto avvicinando al <a href="https://en.wikipedia.org/wiki/WebRTC" target="_blank">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" target="_blank">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-m_4655908588021433226gmail-highlight gmail-m_4655908588021433226gmail-tab-size gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC42" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"> <<span class="gmail-m_4655908588021433226gmail-pl-ent" style="box-sizing:border-box;color:rgb(34,134,58)">script</span>><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L43" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC43" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">getUserMedia_</span> <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> <span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">getUserMedia</span> <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">||</span> <span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">webkitGetUserMedia</span> <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">||</span> <span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">mozGetUserMedia</span>;</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L44" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC44" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">var</span> constraints <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> {audio<span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">:</span> <span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">false</span>, video<span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">:</span> <span class="gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L45" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC45" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">var</span> video <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> <span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">document</span>.<span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">querySelector</span>(<span class="gmail-m_4655908588021433226gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-m_4655908588021433226gmail-pl-pds" style="box-sizing:border-box">"</span>video<span class="gmail-m_4655908588021433226gmail-pl-pds" style="box-sizing:border-box">"</span></span>);</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L46" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC46" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L47" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC47" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">function</span> <span class="gmail-m_4655908588021433226gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">successCallback</span>(<span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">stream</span>) {</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L48" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC48" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-m_4655908588021433226gmail-pl-c" style="box-sizing:border-box;color:rgb(106,115,125)"><span class="gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L49" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC49" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">window</span>.<span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">stream</span> <span class="gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L50" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC50" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">video</span>.<span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">srcObject</span> <span class="gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L51" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC51" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">video</span>.<span class="gmail-m_4655908588021433226gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">onloadedmetadata</span> <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">=</span> <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">function</span>(<span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">e</span>) {</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L52" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC52" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">          <span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">video</span>.<span class="gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L53" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC53" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">        };</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L54" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC54" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">      }</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L55" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC55" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L56" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC56" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-m_4655908588021433226gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">function</span> <span class="gmail-m_4655908588021433226gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">errorCallback</span>(<span class="gmail-m_4655908588021433226gmail-pl-smi" style="box-sizing:border-box">error</span>) {</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L57" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC57" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">        <span class="gmail-m_4655908588021433226gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">console</span>.<span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">log</span>(<span class="gmail-m_4655908588021433226gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-m_4655908588021433226gmail-pl-pds" style="box-sizing:border-box">"</span>navigator.getUserMedia error: <span class="gmail-m_4655908588021433226gmail-pl-pds" style="box-sizing:border-box">"</span></span>, error);</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L58" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC58" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">      }</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L59" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC59" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L60" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC60" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box">      <span class="gmail-m_4655908588021433226gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">navigator</span>.<span class="gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L61" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC61" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"><span class="gmail-m_4655908588021433226gmail-pl-s1" style="box-sizing:border-box"></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-L62" class="gmail-m_4655908588021433226gmail-blob-num gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-file-webrtc-hello-world-example-html-LC62" class="gmail-m_4655908588021433226gmail-blob-code gmail-m_4655908588021433226gmail-blob-code-inner gmail-m_4655908588021433226gmail-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-wrap"></<span class="gmail-m_4655908588021433226gmail-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-m_4655908588021433226gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap">.</span><span class="gmail-m_4655908588021433226gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap"> </span><span class="gmail-m_4655908588021433226gmail-pl-k" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap"> </span><span class="gmail-m_4655908588021433226gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap">.</span><span class="gmail-m_4655908588021433226gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap"> </span><span class="gmail-m_4655908588021433226gmail-pl-k" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap"> </span><span class="gmail-m_4655908588021433226gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap">.</span><span class="gmail-m_4655908588021433226gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap"> </span><span class="gmail-m_4655908588021433226gmail-pl-k" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap"> </span><span class="gmail-m_4655908588021433226gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap">.</span><span class="gmail-m_4655908588021433226gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap">;</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-wrap"><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-wrap"><br></span></div>2) Cercando delle info su <span class="gmail-m_4655908588021433226gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-wrap">.</span><span class="gmail-m_4655908588021433226gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;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-m_4655908588021433226gmail-pl-smi" style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;box-sizing:border-box"><br></span></div>A presto e grazie<div><div><br></div><div>-- <br><div dir="ltr" class="gmail-m_4655908588021433226m_-5793576518283198205gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small"><i>Fabrizio</i><br></div></div></div></div></div></div>
_______________________________________________<br>
toscana mailing list<br>
<a href="mailto:toscana@lists.linux.it" target="_blank">toscana@lists.linux.it</a><br>
<a href="https://lists.linux.it/listinfo/toscana" rel="noreferrer" target="_blank">https://lists.linux.it/listinfo/toscana</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span>Marco Dei<br>Presidente Associazione Elsaglug<br><br>Elsaglug <a href="http://www.elsaglug.org" target="_blank">www.elsaglug.org</a></span></div></div>