linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] web plugin, cannot set LinphoneCore.playFile p


From: Ghislain MARY
Subject: Re: [Linphone-developers] web plugin, cannot set LinphoneCore.playFile property
Date: Wed, 18 Feb 2015 13:59:34 +0100
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Alexander,

The following instruction is working properly:
    core.playFile = 'internal:///share/sounds/linphone/rings/toy-mono.wav';
It's just the getter (used when you try to print the value of core.playFile) that was not defined. I have fixed it and it will be available in the next release.

I also fixed the issue with the incoming call ring which was specific to the windows sound card filter in mediastreamer2.

Thanks for reporting these issues. If you want to try the fixes you can try the latest snapshot: http://linphone.org/snapshots/linphone-web/linphone-web-1.0.13-4-ge9e72c8-Win32.msi

Cheers,
Ghislain

Le 16/02/2015 15:40, Alexander Altshuler a écrit :
Hi

My first try to explain my problem was a bit vague, sorry.
I will try to be more clear.

I'm developing web based application using 1.0.12 web plugin.
It works in general fine, I can register, initiate outgoing calls and get incoming, etc.

There is linphone core property "playFile" exposed to JS.

Initially it is undefined. But plugin use some “beep” sound internally, for example when call is placed on-hold.
I need to change or disable this sound.
I'm trying to set it this way:

   console.log("playFile:"+core.playFile);
   core.playFile = 'internal:///share/sounds/linphone/rings/toy-mono.wav';
   console.log("playFile:"+core.playFile);
console output is:
   playFile:undefined
   playFile:undefined

So my attempt to set it fail.

At the same time code below works for another files:
   console.log('Ring file name: ' + core.ring);
   console.log('Ringback file name: ' + core.ringback);
   core.ring = 'internal:///share/sounds/linphone/rings/toy-mono.wav';
   core.ringback = 'internal:///share/sounds/linphone/ringback.wav';
   console.log('Ring file name: ' + core.ring);
   console.log('Ringback file name: ' + core.ringback);
Console output:
   Ring file name: ./share/sounds/linphone/rings/oldphone.wav
   Ringback file name: ./share/sounds/linphone/ringback.wav
   Ring file name: internal://C%3a/Users/Alex/AppData/Roaming/Mozilla/Firefox/Profiles/hvnnj79p.default/extensions/%7bA7F0040E-4481-4C03-952F-D8491E5036A3%7d/plugins/linphoneweb/share/sounds/linphone/rings/toy-mono.wav
   Ringback file name: internal://C%3a/Users/Alex/AppData/Roaming/Mozilla/Firefox/Profiles/hvnnj79p.default/extensions/%7bA7F0040E-4481-4C03-952F-D8491E5036A3%7d/plugins/linphoneweb/share/sounds/linphone/ringback.wav

I have found example of such “internal:///” URL within linphone-web-ui project.
I may change it and assign another sound.
BTW: linphone web plugin by default use stereo oldphone.wav file, so the incoming ring sound is really crazy.
I reset it to toy-mono.vaw and it work OK.

Can I do something with this “hold sound” while using linphone web plugin?

Regards
Alexander Altshuler


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]