[Freeswitch-users] Verto

Gregor Nanger gregor at infomedia.si
Mon Apr 25 17:59:04 MSD 2016


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.

Regarding tag. Here is initialization code:
new jQuery.verto({
                    login: data.login
                    passwd: data.password,
                    socketUrl: data.wsURL,
                    ringFile: "/sounds/bell_ring2.wav",
                    tag: "webcam",
...........

and you need to add video element in html of page with id="webcam"

Best regards, Gregor




2016-04-23 4:34 GMT+02:00 Jack Loranger <jack at livematch.com>:

> Gregor,
>   I am experiencing the same thing with the sinkid.
> Do you mind being specific about where you changed
> I set useSpeak: true, insted objectId of device :-((
> Does this mean you had to use a specific objectId or you ended up using
> useSpeak:true ?
> and where you added  tag:'webcam' in verto initialization.
> Thanks,
>  Jack
>
>
> On 4/22/2016 7:50 AM, Gregor Nanger wrote:
>
> Justo for info. I managed to solve problem.
>
> This error:
> Cannot read property 'sinkId' of undefined.
>
> is caused if developer make mistake :-)))
>
> I set useSpeak: true, insted objectId of device :-((
>
> But I found that I didn't know and maybe it will help to someone.
>
> 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.
>
> I set: <video width=800 id="webcam" autoplay="autoplay"
> hidden="true"></video>
> and add tag:'webcam' in verto initialization.
>
> Now everything works as expected, except 2 sec delay in audio stream from
> browser to endpoint.
>
> 2016-04-22 0:31 GMT+02:00 Gregor Nanger <gregor at infomedia.si>:
>
>> Thank you for answer.
>>
>> 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.
>>
>> How can I be sure that I am using latest lib? Should I just download
>> latest branch?
>>
>>
>>
>>
>>
>>
>>
>> 2016-04-21 19:59 GMT+02:00 Ítalo Rossi < <italo at freeswitch.org>
>> italo at freeswitch.org>:
>>
>>> Hey Gregor,
>>>
>>> Can you double check if you're using the most recent version of verto js
>>> lib?
>>>
>>> On Thu, Apr 21, 2016 at 4:49 AM, Gregor Nanger < <gregor at infomedia.si>
>>> gregor at infomedia.si> wrote:
>>>
>>>> ​I am building my web phone with verto from scratch and using this
>>>> tutorial:
>>>>
>>>>
>>>> <http://t.sidekickopen04.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJN7t5XZsfmT10W5wLWvl4WYKY2W3MhGXn56dLgFf1Tdg-W02?t=http%3A%2F%2Fevoluxbr.github.io%2Fverto-docs%2F&si=5036397111279616&pi=4ee20dcc-e112-4624-b439-d58b5ba336b7>
>>>> http://evoluxbr.github.io/verto-docs/
>>>>
>>>> BAsically everything is ok, I can register and make calls, but I cannot
>>>> hear audio. Mic is working, but not speakers. I see error:
>>>>
>>>> Cannot read property 'sinkId' of undefined. This is error line:
>>>>
>>>> $.verto.dialog.prototype.setAudioPlaybackDevice = function(sinkId,
>>>> callback, arg) {
>>>> var dialog = this;
>>>> var element = dialog.audioStream;
>>>>
>>>> * if (typeof element.sinkId !== 'undefined') {*
>>>>
>>>> I get dialog object without audioStream property and hence element is
>>>> null.
>>>>
>>>> I am using self signed certificate. Could this be cause?
>>>>
>>>> Best regards, Gregor
>>>>>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>
>>>
>>>
>>> --
>>> Ítalo Rossi
>>> italo at freeswitch.org
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>>
>> --
>> Gregor Nanger
>>
>> *CTO*
>> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
>> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
>> • www.infomedia.si
>>
>
>
>
> --
> Gregor Nanger
>
> *CTO*
> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
> • www.infomedia.si
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2016.0.7539 / Virus Database: 4556/12081 - Release Date: 04/22/16
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Gregor Nanger

*CTO*
t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
• www.infomedia.si
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160425/4c74939f/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list