<div dir="ltr"><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif">Yes, if you want to use specific speaker than you need to supply objectid. But I just remove useSpeak, because verto than use Any. I think that then default audio device in system is selected.</div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif"><br></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif">Regarding tag. Here is initialization code:</div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif"><div class="gmail_default">new jQuery.verto({</div><div class="gmail_default">                    login: data.login</div><div class="gmail_default">                    passwd: data.password,</div><div class="gmail_default">                    socketUrl: data.wsURL,</div><div class="gmail_default">                    ringFile: &quot;/sounds/bell_ring2.wav&quot;,</div><div class="gmail_default">                    tag: &quot;webcam&quot;,</div><div class="gmail_default">...........</div><div class="gmail_default"><br></div><div class="gmail_default">and you need to add video element in html of page with id=&quot;webcam&quot;</div><div class="gmail_default"><br></div><div class="gmail_default">Best regards, Gregor</div><div class="gmail_default"><br></div></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif"><br></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif"><br></div><img src="http://t.sidekickopen04.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dbp0W3MPnzY4XrbSMW8q-f_43LvrVvW59BB4r1k1H6H0?si=5036397111279616&amp;pi=4ee20dcc-e112-4624-b439-d58b5ba336b7" style="display:none!important" height="1" width="1"></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-23 4:34 GMT+02:00 Jack Loranger <span dir="ltr">&lt;<a href="mailto:jack@livematch.com" target="_blank">jack@livematch.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Gregor,<br>
      I am experiencing the same thing with the sinkid.  <br>
    Do you mind being specific about where you changed <br><span class="">
    <div class="gmail_default"><span style="font-size:12.8px">I set useSpeak:
        true, insted objectId of device :-(( <br>
      </span></div></span>
    Does this mean you had to use a specific objectId or you ended up
    using useSpeak:true ?<br>
    and where you added  tag:&#39;webcam&#39; in verto initialization.<br>
    Thanks,<br>
     Jack<div><div class="h5"><br>
    <br>
    <div>On 4/22/2016 7:50 AM, Gregor Nanger
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div class="gmail_default">Justo for info. I managed to solve problem.</div>
        <div class="gmail_default"><br>
        </div>
        <div class="gmail_default">This error: </div>
        <div class="gmail_default"><span style="font-size:12.8px">Cannot read
            property &#39;sinkId&#39; of undefined. </span><br>
        </div>
        <div class="gmail_default"><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_default"><span style="font-size:12.8px">is caused if
            developer make mistake :-)))</span></div>
        <div class="gmail_default"><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_default"><span style="font-size:12.8px">I set useSpeak:
            true, insted objectId of device :-((</span></div>
        <div class="gmail_default"><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_default"><span style="font-size:12.8px">But I found
            that I didn&#39;t know and maybe it will help to someone.</span></div>
        <div class="gmail_default"><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_default"><span style="font-size:12.8px">Even if you
            want to use verto only for audio calls, there still needs to
            be set video object (can be hidden) in html. Otherwise
            incoming audio is not working. </span></div>
        <div class="gmail_default"><br>
        </div>
        <div class="gmail_default">I set: &lt;video width=800 id=&quot;webcam&quot;
          autoplay=&quot;autoplay&quot; hidden=&quot;true&quot;&gt;&lt;/video&gt;</div>
        <div class="gmail_default">and add tag:&#39;webcam&#39; in verto initialization.</div>
        <div class="gmail_default"><br>
        </div>
        <div class="gmail_default">Now everything works as expected, except 2 sec
          delay in audio stream from browser to endpoint.</div>
        <img src="http://t.sidekickopen04.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dbp0W3MPnzY4XrbSMW8q-f_43LvrVvW59BB4r1k1H6H0?si=5036397111279616&amp;pi=3f764866-0826-4268-83ae-32dc99ce9fc6" style="display:none!important" height="1" width="1"></div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-04-22 0:31 GMT+02:00 Gregor Nanger
          <span dir="ltr">&lt;<a href="mailto:gregor@infomedia.si" target="_blank">gregor@infomedia.si</a>&gt;</span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thank you for answer.</div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
              </div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I think that something is conflicting
                with other javascript library. I am integrating verto in
                other solution (angularjs and bunch of other
                javascripts). Demo is also working ok in my environment.</div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
              </div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif">How can I be sure that I am using latest
                lib? Should I just download latest branch?</div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
              </div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
              </div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
              </div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
              </div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
              </div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
              </div>
              <img src="http://t.sidekickopen04.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dbp0W3MPnzY4XrbSMW8q-f_43LvrVvW59BB4r1k1H6H0?si=5036397111279616&amp;pi=603fc205-d4e4-4c60-d726-8075be917011" style="display:none!important" height="1" width="1"></div>
            <div class="gmail_extra">
              <div>
                <div><br>
                  <div class="gmail_quote">2016-04-21 19:59 GMT+02:00
                    Ítalo Rossi <span dir="ltr">&lt;<a href="mailto:italo@freeswitch.org" target="_blank"></a><a href="mailto:italo@freeswitch.org" target="_blank">italo@freeswitch.org</a>&gt;</span>:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">Hey Gregor,
                        <div><br>
                        </div>
                        <div>Can you double check if you&#39;re using the
                          most recent version of verto js lib?</div>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">
                          <div>
                            <div>On Thu, Apr 21, 2016 at 4:49 AM, Gregor
                              Nanger <span dir="ltr">&lt;<a href="mailto:gregor@infomedia.si" target="_blank"></a><a href="mailto:gregor@infomedia.si" target="_blank">gregor@infomedia.si</a>&gt;</span>
                              wrote:<br>
                            </div>
                          </div>
                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                            <div>
                              <div>
                                <div dir="ltr">
                                  <div class="gmail_default">​I am building my
                                    web phone with verto from scratch
                                    and using this tutorial:</div>
                                  <div class="gmail_default"><br>
                                  </div>
                                  <div class="gmail_default"><a href="http://t.sidekickopen04.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJN7t5XZsfmT10W5wLWvl4WYKY2W3MhGXn56dLgFf1Tdg-W02?t=http%3A%2F%2Fevoluxbr.github.io%2Fverto-docs%2F&amp;si=5036397111279616&amp;pi=4ee20dcc-e112-4624-b439-d58b5ba336b7" target="_blank"></a><a href="http://evoluxbr.github.io/verto-docs/" target="_blank">http://evoluxbr.github.io/verto-docs/</a></div>
                                  <div class="gmail_default"><br>
                                  </div>
                                  <div class="gmail_default">BAsically everything
                                    is ok, I can register and make
                                    calls, but I cannot hear audio. Mic
                                    is working, but not speakers. I see
                                    error:</div>
                                  <div class="gmail_default"><br>
                                  </div>
                                  <div class="gmail_default">Cannot read property
                                    &#39;sinkId&#39; of undefined. This is error
                                    line:</div>
                                  <div class="gmail_default">
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif"><br>
                                      </font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif">$.verto.dialog.prototype.setAudioPlaybackDevice
                                        = function(sinkId, callback,
                                        arg) {</font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif"><span style="white-space:pre-wrap">        </span>var
                                        dialog = this;</font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif"><span style="white-space:pre-wrap">        </span>var
                                        element = dialog.audioStream;</font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif"><br>
                                      </font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif"><b><span style="white-space:pre-wrap">        </span>if
                                          (typeof element.sinkId !==
                                          &#39;undefined&#39;) {</b></font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif"><b><br>
                                        </b></font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif">I
                                        get dialog object without
                                        audioStream property and hence
                                        element is null.</font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif"><br>
                                      </font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif">I
                                        am using self signed
                                        certificate. Could this be
                                        cause?</font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif"><br>
                                      </font></div>
                                    <div class="gmail_default"><font face="trebuchet ms, sans-serif">Best
                                        regards, Gregor</font></div>
                                  </div>
                                  <div class="gmail_default">​</div>
                                  <img src="http://t.sidekickopen04.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dbp0W3MPnzY4XrbSMW8q-f_43LvrVvW59BB4r1k1H6H0?si=5036397111279616&amp;pi=49bfd464-38dc-4f0b-aef2-878c95c4e5fe" style="display:none!important" height="1" width="1"></div>
                                <br>
                              </div>
                            </div>
_________________________________________________________________________<br>
                            Professional FreeSWITCH Consulting Services:<br>
                            <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                            <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
                            <br>
                            Official FreeSWITCH Sites<br>
                            <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
                            <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
                            <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
                            <br>
                            FreeSWITCH-users mailing list<br>
                            <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                            <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                            UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                            <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><span><font color="#888888"><br>
                              </font></span></blockquote>
                        </div>
                        <span><font color="#888888"><br>
                            <br clear="all">
                            <div><br>
                            </div>
                            -- <br>
                            <div>
                              <div dir="ltr">Ítalo Rossi
                                <div><a href="mailto:italo@freeswitch.org" target="_blank">italo@freeswitch.org</a></div>
                              </div>
                            </div>
                          </font></span></div>
                      <br>
_________________________________________________________________________<br>
                      Professional FreeSWITCH Consulting Services:<br>
                      <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                      <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
                      <br>
                      Official FreeSWITCH Sites<br>
                      <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
                      <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
                      <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
                      <br>
                      FreeSWITCH-users mailing list<br>
                      <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                      <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                      UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                      <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <div><br>
                  </div>
                  -- <br>
                </div>
              </div>
              <div>
                <div dir="ltr">
                  <table style="font-size:12px;border:1px dashed rgb(187,187,187);font-family:sans-serif;width:537px" border="0">
                    <tbody style="border-spacing:2px;border:0px none rgb(128,128,128)">
                      <tr style="border-spacing:2px;border:0px none rgb(128,128,128)" valign="top">
                        <td style="color:rgb(32,32,32);margin:8px;border-width:0px 1px 0px 0px;border-style:none solid none none;border-color:rgb(32,32,32) rgb(0,161,230) rgb(32,32,32) rgb(32,32,32);font-weight:bold;letter-spacing:1px;text-transform:capitalize;vertical-align:top;padding:1px 8px 1px 1px;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px"><span style="color:rgb(0,161,230);outline:rgb(0,161,230) none 0px;border-spacing:2px;border:0px none rgb(0,161,230)"><font size="2" face="georgia, serif">Gregor Nanger</font></span>
                          <div style="font-size:17px;font-family:sans-serif;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px;border:0px none rgb(32,32,32)"> </div>
                        </td>
                        <td style="margin:8px;border:0px none rgb(80,80,80);vertical-align:top;padding:1px 1px 1px 6px;width:354px;outline:rgb(80,80,80) none 0px;border-spacing:2px"><font size="1" face="georgia, serif"><b>CTO</b><br>
                            t./f.: 00386 (0) 7 6000 308/309 • m:. 00386
                            (0)41 756485 <br>
                            • Infomedia d.o.o. • Jerebova 3, Novo mesto,
                            Slovenia <br>
                            • <a href="http://www.infomedia.si" target="_blank">www.infomedia.si</a></font></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div>
          <div dir="ltr">
            <table style="font-size:12px;border:1px dashed rgb(187,187,187);font-family:sans-serif;width:537px" border="0">
              <tbody style="border-spacing:2px;border:0px none rgb(128,128,128)">
                <tr style="border-spacing:2px;border:0px none rgb(128,128,128)" valign="top">
                  <td style="color:rgb(32,32,32);margin:8px;border-width:0px 1px 0px 0px;border-style:none solid none none;border-color:rgb(32,32,32) rgb(0,161,230) rgb(32,32,32) rgb(32,32,32);font-weight:bold;letter-spacing:1px;text-transform:capitalize;vertical-align:top;padding:1px 8px 1px 1px;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px"><span style="color:rgb(0,161,230);outline:rgb(0,161,230) none 0px;border-spacing:2px;border:0px none rgb(0,161,230)"><font size="2" face="georgia,
                        serif">Gregor Nanger</font></span>
                    <div style="font-size:17px;font-family:sans-serif;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px;border:0px none rgb(32,32,32)"> </div>
                  </td>
                  <td style="margin:8px;border:0px none rgb(80,80,80);vertical-align:top;padding:1px 1px 1px 6px;width:354px;outline:rgb(80,80,80) none 0px;border-spacing:2px"><font size="1" face="georgia, serif"><b>CTO</b><br>
                      t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41
                      756485 <br>
                      • Infomedia d.o.o. • Jerebova 3, Novo mesto,
                      Slovenia <br>
                      • <a href="http://www.infomedia.si" target="_blank">www.infomedia.si</a></font></td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><p color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
        Version: 2016.0.7539 / Virus Database: 4556/12081 - Release
        Date: 04/22/16</p>
    </blockquote>
    <br>
  </div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><table border="0" style="font-size:12px;border:1px dashed rgb(187,187,187);font-family:sans-serif;width:537px"><tbody style="border-spacing:2px;border:0px none rgb(128,128,128)"><tr valign="top" style="border-spacing:2px;border:0px none rgb(128,128,128)"><td style="color:rgb(32,32,32);margin:8px;border-width:0px 1px 0px 0px;border-style:none solid none none;border-color:rgb(32,32,32) rgb(0,161,230) rgb(32,32,32) rgb(32,32,32);font-weight:bold;letter-spacing:1px;text-transform:capitalize;vertical-align:top;padding:1px 8px 1px 1px;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px"><span style="color:rgb(0,161,230);outline:rgb(0,161,230) none 0px;border-spacing:2px;border:0px none rgb(0,161,230)"><font face="georgia, serif" size="2">Gregor Nanger</font></span><div style="font-size:17px;font-family:sans-serif;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px;border:0px none rgb(32,32,32)"> </div></td><td style="margin:8px;border:0px none rgb(80,80,80);vertical-align:top;padding:1px 1px 1px 6px;width:354px;outline:rgb(80,80,80) none 0px;border-spacing:2px"><font face="georgia, serif" size="1"><b>CTO</b><br>t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 <br>• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia <br>• <a href="http://www.infomedia.si" target="_blank">www.infomedia.si</a></font></td></tr></tbody></table></div></div>
</div>