[Freeswitch-users] javascript: session.recordFile

Stephen Crosby stevecrozz at gmail.com
Tue Apr 21 11:27:24 PDT 2009


You can do a timestamp comparison, but over some long recorded sessions (30+
minutes), I've run into some type of "drift" in the past that made this
method inaccurate enough for me to not use.

--Stephen

On Tue, Apr 21, 2009 at 11:06 AM, Michael Collins <msc at freeswitch.org>wrote:

> Just curious - could you not set a variable with the value of getTime()
> right before recording starts and then compare that to getTime() as soon as
> the recording ends?
>
> -MC
>
>
> On Tue, Apr 21, 2009 at 10:58 AM, Jonas Gauffin <jonas.gauffin at gmail.com>wrote:
>
>> Yes, to be able to determine if it's too short or not.
>>
>> On Tue, Apr 21, 2009 at 7:01 PM, Michael Collins <msc at freeswitch.org>wrote:
>>
>>>
>>>
>>> On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin at gmail.com>wrote:
>>>
>>>> I'm using session.recordFile in a javascript.
>>>> How do I check the length of the recorded file?
>>>>
>>>
>>> You mean once the file is recorded you want to know how many
>>> minutes/seconds long it is?
>>>
>>> -MC
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090421/954fb039/attachment-0002.html 


More information about the FreeSWITCH-users mailing list